Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kubernetes module] Multiple instance share the same context #1081

Closed
b4nst opened this issue Apr 16, 2021 · 3 comments · Fixed by #1141
Closed

[kubernetes module] Multiple instance share the same context #1081

b4nst opened this issue Apr 16, 2021 · 3 comments · Fixed by #1141
Labels
🐛 bug "Houston, we've had a problem."

Comments

@b4nst
Copy link

b4nst commented Apr 16, 2021

What's broken?

When using multiple instances of the kubernetes module, setting different context has no effect. Only one context is used for both instances.

@senorprogrammer
Copy link
Collaborator

Could you provide a link to what this refers to, or an example of how this should work? I don't use Kubernetes so more information is appreciated.

@senorprogrammer senorprogrammer added the 🐛 bug "Houston, we've had a problem." label Apr 25, 2021
@b4nst
Copy link
Author

b4nst commented Apr 26, 2021

Sure, here is an example of a simple config:

wtf:
  mods:
    production:
      type: kubernetes
      enabled: true
      kubeconfig: "/Users/user/.kube/config"
      context: "prod-cluster"
      namespaces:
        - default
      objects:
        - pods
      position:
        top: 0
        left: 1
        height: 2
        width: 1
      refreshInterval: 300
      title: "Production"
    staging:
      type: kubernetes
      enabled: true
      kubeconfig: "/Users/user/.kube/config"
      context: "stage-cluster"
      namespaces:
        - default
      objects:
        - pods
      position:
        top: 0
        left: 2
        height: 2
        width: 1
      refreshInterval: 300
      title: "Staging"

This should give me 2 panels, one containing pods running in prod-cluster, the other containing pods running in stage-cluster. But currently I have 2 panels, both containing the same pods running on prod-cluster.

@hypnoglow
Copy link
Contributor

/assign

hypnoglow added a commit to hypnoglow/wtf that referenced this issue Oct 31, 2021
senorprogrammer pushed a commit that referenced this issue Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug "Houston, we've had a problem."
Development

Successfully merging a pull request may close this issue.

3 participants