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 reuse values with helm step #364

Open
jindalrj opened this issue Jul 17, 2021 · 0 comments
Open

How to reuse values with helm step #364

jindalrj opened this issue Jul 17, 2021 · 0 comments

Comments

@jindalrj
Copy link

We have multiple repositories and a single helm chart. Pipeline for each repository only knows the image-version of its own docker image but not others. With regular helm binary we can use '--reuse-values' and only supply the changed image as part of deployment.

Official helm step by codefresh explicitly resets values and thus requires all values. See below code snippet in official plugin

    def build_export_commands(self, google_application_credentials_json):
        lines = super().build_export_commands(google_application_credentials_json)
        return lines

    def build_helm_upgrade_command(self, release_name, chart_ref):
        return 'helm upgrade %s %s --install --reset-values ' % (release_name, chart_ref)

    def build_repo_commands(self):
        lines = []
        lines.append('helm repo add cf-stable https://kubernetes-charts.storage.googleapis.com/')
        return lines

How can we override this behavior? Do codefresh provide steps/feature to maintain a central values file?

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