-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(container): respect deployment registry in publishId if not expli…
…citly set (#6690) * fix(container): respect deployment registry in publishId if not explicitly set * chore: update ctx in test * chore: use gardenPlugin from kubernetes provider * test: make tests pass * test: do not mock outputs to improve test validity * fix: stub the `loadToLocalK8s` under mock testing --------- Co-authored-by: Steffen Neubauer <steffen@garden.io>
- Loading branch information
Showing
9 changed files
with
99 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: garden.io/v1 | ||
kind: Project | ||
name: kubernetes-container-module-test-project | ||
environments: | ||
- name: local | ||
providers: | ||
- name: local-kubernetes |
16 changes: 16 additions & 0 deletions
16
core/test/data/test-project-container-kubernetes/kubeconfig.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,16 @@ | ||
apiVersion: v1 | ||
clusters: | ||
- cluster: | ||
insecure-skip-tls-verify: true | ||
server: https://localhost:6443 | ||
name: my-cluster | ||
contexts: | ||
- context: | ||
cluster: my-cluster | ||
user: me | ||
name: my-cluster | ||
current-context: my-cluster | ||
kind: Config | ||
preferences: {} | ||
users: | ||
- name: me |
1 change: 1 addition & 0 deletions
1
core/test/data/test-project-container-kubernetes/module-a/Dockerfile
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 @@ | ||
FROM scratch |
1 change: 1 addition & 0 deletions
1
core/test/data/test-project-container-kubernetes/module-a/docker-dir/Dockerfile
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 @@ | ||
FROM scratch |
16 changes: 16 additions & 0 deletions
16
core/test/data/test-project-container-kubernetes/module-a/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,16 @@ | ||
kind: Module | ||
name: module-a | ||
type: container | ||
services: | ||
- name: service-a | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
ingresses: | ||
- path: / | ||
port: http | ||
healthCheck: | ||
tcpPort: http | ||
tasks: | ||
- name: task-a | ||
args: [echo, A] |
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