question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot apply resources with defined namespaces in manifest

See original GitHub issue

Repro steps:

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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:13

github_iconTop GitHub Comments

1reaction
hansmbakkercommented, Nov 28, 2022

Thank you both and thank you @jaiveerk for the explanation!

1reaction
OliverMKingcommented, Nov 28, 2022

@hansmbakker we will keep you updated on this. We are working on a fix.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found