You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This deployment step will deploy to default namespace by default:
Run Azure/k8s-deploy@v4
with:
action: deploy
manifests: <omitted>
images: <omitted>
namespace: default # <---- default value for namespace
pull-images: true
strategy: basic
route-method: service
version-switch-buffer: 0
traffic-split-method: pod
percentage: 0
force: false
token: ***
annotate-namespace: true
private-cluster: false
skip-tls-verify: false
Hence, the deployment will fail with error like:
the namespace from the provided object "foo" does not match the namespace "default". You must pass '--namespace=foo' to perform this operation.
Mention the platform you are using
OSS draft
To Reproduce
Steps to reproduce the behavior:
See above description.
Expected behavior
When using kustomize deployment target:
the namespace should be set in kustomization.yaml instead of k8s object spec. By using a kustomization level namespace settings, we can ensure all controlled k8s objects are created under the same namespace.
namespace settings should set in the deploy GitHub Action step.
The text was updated successfully, but these errors were encountered:
thanks for this issue! yes i see the namespace is set in the object specs, which is unnecessary for kustomize, and overrides the supplied namespace later
Describe the bug
When creating a project using deployment type
kustomize
, the cli wizard will ask for target namespace:When using a non-default namespace, for example
foo
, the wizard will create the k8s deployment configuration like this:However, the later workflow setup wizard will not prompt for target namespace, and generate a deployment step like this:
This deployment step will deploy to
default
namespace by default:Hence, the deployment will fail with error like:
Mention the platform you are using
OSS draft
To Reproduce
Steps to reproduce the behavior:
See above description.
Expected behavior
When using kustomize deployment target:
kustomization.yaml
instead of k8s object spec. By using a kustomization level namespace settings, we can ensure all controlled k8s objects are created under the same namespace.The text was updated successfully, but these errors were encountered: