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

Support generic GitRepoUpdate mechanism #527

Closed
akselleirv opened this issue Aug 8, 2023 · 3 comments
Closed

Support generic GitRepoUpdate mechanism #527

akselleirv opened this issue Aug 8, 2023 · 3 comments

Comments

@akselleirv
Copy link

I have my configuration file written in CUE which describes which "addons" or helm charts which should be deployed to a cluster. The version of the helm chart is specified within this custom structure.

For example:

package clusters

cluster: "p-my-cluster": {
	environment:     "prod"

	addon: {
		"ingress_nginx":  {
			values: "0.1.0": { 
				hello: "world"
			}
		}
	}
}

When I want to do a promotion I need to update the version in cluster."p-my-cluster".addon."ingress_nginx".values:

package clusters

cluster: "p-my-cluster": {
	environment:     "prod"

	addon: {
		"ingress_nginx":  {
			values: "0.2.0": { 
				hello: "world"
			}
		}
	}
}

The GitRepoUpdate config only supports Kustomize and Helm, however, I want to update this custom structure.

Suggestions:

  1. Use a regex and do a replacement of the match. This can be a bit flaky.
  2. Use a plugin system which allows for other custom ways of updating a file stored in Git.
@akselleirv
Copy link
Author

I just found issue #424. Closing this one

@krancour
Copy link
Member

krancour commented Aug 8, 2023

Re-opening per this comment

Copy link

github-actions bot commented Nov 7, 2023

This issue has been automatically marked as stale because it had no activity for 90 days. It will be closed if no activity occurs in the next 30 days but can be reopened if it becomes relevant again.

@github-actions github-actions bot added the stale label Nov 7, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants