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 use secrets and cms as helm values in ManagedCluster and MultiClusterService objects #817

Open
pbasov opened this issue Dec 19, 2024 · 0 comments · May be fixed by #823
Open
Assignees

Comments

@pbasov
Copy link

pbasov commented Dec 19, 2024

In ClusterProfile and Profile objects templateResourceRefs allows templating values from Cluster labels, configmaps and secrets:

https://projectsveltos.github.io/sveltos/template/template_generic_examples/

In this example ManagedCluster we'd like to use secret as a source of values for motel chart:

apiVersion: hmc.mirantis.com/v1alpha1
kind: ManagedCluster
metadata:
  labels:
    motel: regional
  name: pbasov-aws-reg0
  namespace: hmc-system
spec:
  config:
...
  services:
  - name: motel-regional
    namespace: motel
    template: motel-regional
    values: |
      victoriametrics:
        vmauth:
          ingress:
            host: vmauth.pbasov-reg-0.project2a-dev.mirantis.com
          credentials:
            username: motel
            password: motel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants