-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support templating in diagnose command (#9393)
- Loading branch information
1 parent
a0687ef
commit c0bf1b6
Showing
9 changed files
with
659 additions
and
21 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
52 changes: 52 additions & 0 deletions
52
integration/testdata/diagnose/direct-templates/diagnose.tmpl
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,52 @@ | ||
apiVersion: skaffold/v4beta11 | ||
kind: Config | ||
build: | ||
artifacts: | ||
- image: skaffold-helm | ||
context: {{.Root}} | ||
docker: | ||
dockerfile: Dockerfile | ||
buildArgs: | ||
key1: aaa | ||
- image: skaffold-ko | ||
context: {{.Root}} | ||
ko: | ||
fromImage: gcr.io/distroless/static-debian11:nonroot | ||
dependencies: | ||
paths: | ||
- '**/*.go' | ||
- go.* | ||
env: | ||
- first=aaa | ||
labels: | ||
xxx: aaa | ||
tagPolicy: | ||
gitCommit: {} | ||
local: | ||
concurrency: 1 | ||
manifests: | ||
kustomize: | ||
paths: | ||
- {{.Root}}/aaa | ||
- {{.Root}}/aaa | ||
helm: | ||
releases: | ||
- name: aaa | ||
chartPath: {{.Root}}/aaa | ||
valuesFiles: | ||
- {{.Root}}/aaa | ||
namespace: aaa | ||
setValues: | ||
aaa: aaa | ||
bbb: aaa | ||
setValueTemplates: | ||
image.tag: aaa | ||
deploy: | ||
kubectl: | ||
defaultNamespace: aaa | ||
logs: | ||
prefix: container | ||
portForward: | ||
- resourceName: aaa | ||
namespace: aaa | ||
address: 127.0.0.1 |
44 changes: 44 additions & 0 deletions
44
integration/testdata/diagnose/direct-templates/skaffold.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,44 @@ | ||
apiVersion: skaffold/v4beta11 | ||
kind: Config | ||
build: | ||
artifacts: | ||
- image: skaffold-helm | ||
docker: | ||
buildArgs: | ||
"key1": "{{.AAA}}" | ||
- image: skaffold-ko | ||
ko: | ||
dependencies: | ||
paths: | ||
- "**/*.go" | ||
- go.* | ||
fromImage: gcr.io/distroless/static-debian11:nonroot | ||
env: | ||
- "first={{.AAA}}" | ||
labels: | ||
xxx: "{{.AAA}}" | ||
|
||
manifests: | ||
kustomize: | ||
paths: | ||
- "{{.AAA}}" | ||
- "{{.AAA}}" | ||
helm: | ||
releases: | ||
- name: "{{.AAA}}" | ||
chartPath: "{{.AAA}}" | ||
valuesFiles: | ||
- "{{.AAA}}" | ||
namespace: "{{.AAA}}" | ||
setValues: | ||
aaa: "{{.AAA}}" | ||
bbb: "{{.AAA}}" | ||
setValueTemplates: | ||
image: | ||
tag: "{{.AAA}}" | ||
deploy: | ||
kubectl: | ||
defaultNamespace: "{{.AAA}}" | ||
portForward: | ||
- namespace: "{{.AAA}}" | ||
resourceName: "{{.AAA}}" |
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
Oops, something went wrong.