-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add applyArgs to kubectl apply function (#6385)
* fix: add applyArgs to kubectl apply function Signed-off-by: Manuel Ruck <[email protected]> * test: add applyArgs test for kubernetes deploy Signed-off-by: Manuel Ruck <[email protected]> * test: ensure that custom applyArgs are passed in and applied --------- Signed-off-by: Manuel Ruck <[email protected]> Co-authored-by: Manuel Ruck <[email protected]> Co-authored-by: Vladimir Vagaytsev <[email protected]>
- Loading branch information
1 parent
955e605
commit f140ab2
Showing
5 changed files
with
50 additions
and
2 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
9 changes: 9 additions & 0 deletions
9
core/test/data/test-projects/kubernetes-type/apply-args/garden.yml
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,9 @@ | ||
kind: Deploy | ||
name: apply-args | ||
type: kubernetes | ||
|
||
spec: | ||
applyArgs: | ||
- --unknown-apply-flag | ||
files: | ||
- manifests.yaml |
21 changes: 21 additions & 0 deletions
21
core/test/data/test-projects/kubernetes-type/apply-args/manifests.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,21 @@ | ||
apiVersion: v1 | ||
items: | ||
- apiVersion: v1 | ||
data: | ||
foo.json: test | ||
kind: ConfigMap | ||
metadata: | ||
name: foo | ||
- apiVersion: v1 | ||
data: | ||
bar.json: test | ||
kind: ConfigMap | ||
metadata: | ||
name: bar | ||
- apiVersion: v1 | ||
data: | ||
baz.json: test | ||
kind: ConfigMap | ||
metadata: | ||
name: baz | ||
kind: ConfigMapList |
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