Cannot apply resources with defined namespaces in manifest
See original GitHub issueRepro steps:
- Obtain a manifest with defined namespaces (e.g. cert-manager, ingress-nginx)
- Add k8s-deploy step that deploys to kubernetes and commit, do not specify a namespece
Current behaviour:
- Kubernetes deployment fails
Error: the namespace from the provided object "kube-system" does not match the namespace "cert-manager". You must pass '--namespace=kube-system'
Error: the namespace from the provided object "ingress-nginx" does not match the namespace "default". You must pass '--namespace=ingress-nginx'
Expected behaviour:
- k8s-deploy should not pass namespace=default parameter to kubectl if namespace is not defined in github action
The reasoning is, official instructions for ingress-nginx, cert-manager and others do not need a namespace parameter in kubectl, and if namespace=default is passed, the command fails. I have to split the manifests into multiple manifests per each namespace as a workaround.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:13
Top Results From Across the Web
c# - What does MissingManifestResourceException mean and ...
This problem occurs if you use a localized resource that exists in a satellite assembly that you created by using a .resources file...
Read more >Unable to deploy a kubernetes manifest when relying ... - GitHub
Cannot use depends_on for Kubernetes terraform resource. ... The only way I can get it work is by defining the manifest in HCL...
Read more >MissingManifestResourceExcepti...
public class MissingManifestResourceException : SystemException ... The culture-specific resource set that is identified in a method call cannot be found, ...
Read more >Kubernetes best practices: Specifying Namespaces in YAML
Namespaces can help significantly with organizing your Kubernetes ... a YAML file and apply it just like any other Kubernetes resource.
Read more >Extend the Kubernetes API with CustomResourceDefinitions
Resource names are not case-sensitive when using kubectl, and you can use either the singular or plural forms defined in the CRD, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you both and thank you @jaiveerk for the explanation!
@hansmbakker we will keep you updated on this. We are working on a fix.