Skip to content

Commit

Permalink
re-enable gatekeeper test (#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu committed Jul 27, 2021
1 parent fbf1c46 commit 53b52cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Expand Up @@ -15,5 +15,3 @@
# One of the functions in the pipeline fails resulting in
# non-zero exit code and no changes in the resources.
exitCode: 1
# Skip for now because gatekeeper function output is not stable
skip: true
Expand Up @@ -4,7 +4,7 @@ metadata:
name: fnresults
exitCode: 1
items:
- image: gcr.io/kpt-fn/gatekeeper:0.1.0
- image: gcr.io/kpt-fn/gatekeeper:v0.1.3
exitCode: 0
results:
- message: |-
Expand All @@ -14,9 +14,8 @@ items:
resourceRef:
apiVersion: v1
kind: ConfigMap
metadata:
name: some-secret
namespace: default
name: some-secret
namespace: default
file:
path: resources.yaml
index: 4
Expand All @@ -27,9 +26,8 @@ items:
resourceRef:
apiVersion: v1
kind: ConfigMap
metadata:
name: some-secret
namespace: default
name: some-secret
namespace: default
file:
path: resources.yaml
index: 4
Expand All @@ -41,6 +39,7 @@ items:
resourceRef:
apiVersion: apps/v1
kind: Deployment
name: nginx-deployment
field:
path: selector
file:
Expand All @@ -50,15 +49,17 @@ items:
resourceRef:
apiVersion: apps/v1
kind: Deployment
name: nginx-deployment
field:
path: template
file:
path: resources.yaml
- message: "Invalid type. Expected: [integer,null], given: string"
- message: 'Invalid type. Expected: [integer,null], given: string'
severity: error
resourceRef:
apiVersion: apps/v1
kind: Deployment
name: nginx-deployment
field:
path: spec.replicas
file:
Expand Down
Expand Up @@ -4,7 +4,7 @@ metadata:
name: app
pipeline:
validators:
- image: gcr.io/kpt-fn/gatekeeper:0.1.0
- image: gcr.io/kpt-fn/gatekeeper:v0.1.3
- image: gcr.io/kpt-fn/kubeval:v0.1.1
configMap:
ignore_missing_schemas: "true"
Expand Down

0 comments on commit 53b52cd

Please sign in to comment.