Skip to content

Commit

Permalink
update for release branch kubeval/v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengqi Yu committed Jun 22, 2021
1 parent 3989095 commit 6f116b6
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/kubeval-imperative/.expected/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exitCode: 1
testType: eval
image: gcr.io/kpt-fn/kubeval:unstable
image: gcr.io/kpt-fn/kubeval:v0.1
args:
strict: 'true'
skip_kinds: MyCustom,MyOtherCustom
2 changes: 1 addition & 1 deletion examples/kubeval-imperative/.expected/results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: fnresults
exitCode: 1
items:
- image: gcr.io/kpt-fn/kubeval:unstable
- image: gcr.io/kpt-fn/kubeval:v0.1
exitCode: 1
results:
- message: Additional property templates is not allowed
Expand Down
6 changes: 3 additions & 3 deletions examples/kubeval-imperative/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ validate KRM resources.
Get the example package by running the following commands:

```shell
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/kubeval-imperative
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/kubeval-imperative@kubeval/v0.1
```

We have a `ReplicationController` in `app.yaml` that has 2 schema violations:
Expand All @@ -23,7 +23,7 @@ Get this example and try it out by running the following commands:

```shell
# We set `strict=true` to disallow unknown field and `skip_kinds=MyCustom,MyOtherCustom` to skip 2 kinds that we don't have schemas.
$ kpt fn eval kubeval-imperative --image gcr.io/kpt-fn/kubeval:unstable --results-dir /tmp -- strict=true skip_kinds=MyCustom,MyOtherCustom
$ kpt fn eval kubeval-imperative --image gcr.io/kpt-fn/kubeval:v0.1 --results-dir /tmp -- strict=true skip_kinds=MyCustom,MyOtherCustom
```

The key-value pair(s) provided after `--` will be converted to `ConfigMap` by
Expand All @@ -40,7 +40,7 @@ metadata:
name: fnresults
exitCode: 1
items:
- image: gcr.io/kpt-fn/kubeval:unstable
- image: gcr.io/kpt-fn/kubeval:v0.1
exitCode: 1
results:
- message: Additional property templates is not allowed
Expand Down
2 changes: 1 addition & 1 deletion examples/kubeval-simple/.expected/results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: fnresults
exitCode: 1
items:
- image: gcr.io/kpt-fn/kubeval:unstable
- image: gcr.io/kpt-fn/kubeval:v0.1
exitCode: 1
results:
- message: Additional property templates is not allowed
Expand Down
2 changes: 1 addition & 1 deletion examples/kubeval-simple/Kptfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: example
pipeline:
validators:
- image: gcr.io/kpt-fn/kubeval:unstable
- image: gcr.io/kpt-fn/kubeval:v0.1
configMap:
strict: 'true'
skip_kinds: MyCustom
6 changes: 3 additions & 3 deletions examples/kubeval-simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ validate KRM resources.
Get the example package by running the following commands:

```shell
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/kubeval-simple
$ kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-catalog.git/examples/kubeval-simple@kubeval/v0.1
```

The following is the `Kptfile` in this example:
Expand All @@ -22,7 +22,7 @@ metadata:
name: example
pipeline:
validators:
- image: gcr.io/kpt-fn/kubeval:unstable
- image: gcr.io/kpt-fn/kubeval:v0.1
configMap:
strict: 'true'
```
Expand Down Expand Up @@ -51,7 +51,7 @@ metadata:
name: fnresults
exitCode: 1
items:
- image: gcr.io/kpt-fn/kubeval:unstable
- image: gcr.io/kpt-fn/kubeval:v0.1
exitCode: 1
results:
- message: Additional property templates is not allowed
Expand Down
6 changes: 3 additions & 3 deletions functions/ts/kubeval/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ image: gcr.io/kpt-fn/kubeval
description: Use kubeval to validate KRM resources against their json schemas.
tags:
- validator
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/functions/ts/kubeval
sourceURL: https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/kubeval/v0.1/functions/ts/kubeval
examplePackageURLs:
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/kubeval-simple
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/master/examples/kubeval-imperative
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/kubeval/v0.1/examples/kubeval-simple
- https://github.com/GoogleContainerTools/kpt-functions-catalog/tree/kubeval/v0.1/examples/kubeval-imperative
emails:
- kpt-team@google.com
license: Apache-2.0

0 comments on commit 6f116b6

Please sign in to comment.