-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: impl patch with alpha plugin flag
Signed-off-by: peefy <[email protected]>
- Loading branch information
Showing
6 changed files
with
184 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
testdata/integration/testcases/kube_manifest_transformer_alpha_plugin/want
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
--- | ||
# Source: kube_manifest_yml/templates/patched_resources.yaml | ||
apiVersion: v1 | ||
data: | ||
bar: | | ||
-----BEGIN CERTIFICATE----- | ||
FOO | ||
-----END CERTIFICATE----- | ||
foo: bar | ||
kind: ConfigMap | ||
metadata: | ||
annotations: | ||
app: myApp | ||
greeting/morning: a string with blanks | ||
name: myconfig1 | ||
--- | ||
# Source: kube_manifest_yml/templates/patched_resources.yaml | ||
apiVersion: v1 | ||
data: | ||
bar: | | ||
-----BEGIN CERTIFICATE----- | ||
FOO | ||
-----END CERTIFICATE----- | ||
foo: bar | ||
kind: ConfigMap | ||
metadata: | ||
annotations: | ||
app: myApp | ||
greeting/morning: a string with blanks | ||
name: myconfig2 | ||
--- | ||
# Source: kube_manifest_yml/templates/patched_resources.yaml | ||
apiVersion: v1 | ||
data: | ||
baz: | | ||
-----BEGIN CERTIFICATE----- | ||
FOO | ||
-----END CERTIFICATE----- | ||
foo: baz | ||
kind: ConfigMap | ||
metadata: | ||
annotations: | ||
app: myApp | ||
greeting/morning: a string with blanks | ||
name: myconfig3 | ||
--- | ||
# Source: kube_manifest_yml/templates/patched_resources.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
app: myApp | ||
greeting/morning: a string with blanks | ||
labels: | ||
app.kubernetes.io/instance: myapp | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: log | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: log-0.1.0 | ||
name: myapp-log | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/instance: myapp | ||
app.kubernetes.io/name: log | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: myapp | ||
app.kubernetes.io/name: log | ||
spec: | ||
containers: | ||
- image: nginx:1.16.0 | ||
name: log | ||
--- | ||
# Source: kube_manifest_yml/templates/patched_resources.yaml | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
annotations: | ||
app: myApp | ||
greeting/morning: a string with blanks | ||
helm.sh/hook: test | ||
labels: | ||
app.kubernetes.io/instance: myapp | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: log | ||
app.kubernetes.io/version: 1.16.0 | ||
helm.sh/chart: log-0.1.0 | ||
name: myapp-log-test-connection | ||
spec: | ||
containers: | ||
- args: | ||
- myapp-log:80 | ||
command: | ||
- wget | ||
image: busybox | ||
name: wget | ||
restartPolicy: Never |
10 changes: 10 additions & 0 deletions
10
testdata/kube_manifest_transformer_alpha_plugin/annotations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: builtin | ||
kind: AnnotationsTransformer | ||
metadata: | ||
name: not-important-to-example | ||
annotations: | ||
app: myApp | ||
greeting/morning: a string with blanks | ||
fieldSpecs: | ||
- path: metadata/annotations | ||
create: true |