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

Ability to Bypass a Configuration in SwitchConfig When Unreachable (e.g., Vault) #155

Open
sefaphlvn opened this issue Dec 24, 2024 · 0 comments

Comments

@sefaphlvn
Copy link

Hi team,

I’m using a SwitchConfig setup with multiple kubeconfigStores, as shown below:

$ cat ~/.kube/switch-config.yaml
kind: SwitchConfig
version: v1alpha1
kubeconfigStores:
- kind: vault
  paths:
  - kubeconfigs
  config:
    vaultAPIAddress: https://example.vault.com
  cache:
    kind: filesystem
    config:
      path: ~/.kube/cache/switch
- kind: filesystem
  paths:
  - ~/.kube/my-next-kubeconfigs/

In cases where the Vault API (vaultAPIAddress) is unreachable or cannot be connected to, the entire process fails.

Request:
Is there currently a way to bypass or skip a specific configuration (like vault) when it is inaccessible and proceed with the next kubeconfigStore (e.g., filesystem)?

This would be especially helpful in scenarios where Vault may be temporarily unavailable, but I still want to utilize other configurations without encountering an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant