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

How to let helm version read environment variables when using skaffold deploy #9679

Open
foursunZero opened this issue Jan 22, 2025 · 0 comments

Comments

@foursunZero
Copy link

apiVersion: skaffold/v2beta28
kind: Config
metadata:
  name: vmstack
deploy:
  helm:
    flags:
      upgrade:
        - --timeout
        - 600s
        - --debug
      install:
        - --debug
    releases:
      - name: vm-operator
        repo: https://victoriametrics.github.io/helm-charts/
        remoteChart: victoria-metrics-operator
        version: {{ .CHART_VERSION }}

I tried to configure as above and deploy as follows, but an error was reported during the deployment process

$ skaffold deploy 
parsing skaffold config: error parsing skaffold configuration file: unable to re-marshal YAML without dotted keys: unable to parse YAML: yaml: invalid map key: map[string]interface {}{".CHART_VERSION":interface {}(nil)}

How to dynamically select the version to be deployed?

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