From e54c0213533f66b53909ae87fce75bff89ef037d Mon Sep 17 00:00:00 2001 From: shuting Date: Fri, 31 May 2019 16:57:39 -0700 Subject: [PATCH] update cli example --- examples/cli/policy_deployment.yaml | 4 ++-- examples/cli/resources/ghost.yaml | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/cli/policy_deployment.yaml b/examples/cli/policy_deployment.yaml index f307427428..5957912c55 100644 --- a/examples/cli/policy_deployment.yaml +++ b/examples/cli/policy_deployment.yaml @@ -27,12 +27,12 @@ spec : matchLabels : cli: test validate: - message: "The imagePullPolicy must be Always when :latest is used as a tag" + message: "The imagePullPolicy must be Always when using image nginx" pattern: spec: template: spec: containers: - - (name): "*:latest" + - (image): "nginx*" imagePullPolicy: Always diff --git a/examples/cli/resources/ghost.yaml b/examples/cli/resources/ghost.yaml index 8459622f2d..47ef19feb7 100644 --- a/examples/cli/resources/ghost.yaml +++ b/examples/cli/resources/ghost.yaml @@ -1,5 +1,5 @@ kind: "Deployment" -apiVersion: "extensions/v1beta1" +apiVersion: "apps/v1" metadata: name: "ghost" labels: @@ -28,8 +28,7 @@ spec: spec: containers: - name: "ghost" - image: "ghost:2.9.1-alpine" - imagePullPolicy: Always + image: "nginx:latest" ports: - containerPort: 8080 protocol: "TCP"