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"