helm-operator icon indicating copy to clipboard operation
helm-operator copied to clipboard

Trigger manual chart sync via API

Open varac opened this issue 5 years ago • 2 comments

Describe the feature

I'd like to trigger a manual chart symc via API, similar to using curl for Notifying the Helm Operator about Git changes.

What would the new user story look like?

  1. A deployed helm release using helm-operator, with a chartsSyncInterval of 20m

  2. The helm chart gets its values from a secret, i.e.:

      valuesFrom:
      - secretKeyRef:
          name: prometheus-settings
          key: values.yaml
    
  3. The user changes value A in the secret.

  4. Since there's no git change the helm-operator can react on, it's not possible to trigger an helm release upgrade manually, and the user needs to wait until the next chart sync

  5. With the requested feature, the user could short-cut this and trigger a chart sync with i.e.

    curl -XPOST http://localhost:3030/api/v1/sync-chart

Expected behavior

After the curl cmd. above a chart sync will start, picking up the changes from the secret and uprading the release.

varac avatar Jun 19 '20 10:06 varac

Maybe there's this API endpoint already, but I didn't find any more documentation of the API.

varac avatar Jun 19 '20 10:06 varac

#453 should accomplish the same goal (manually triggering upgrades), but in a more declarative and operator-driven way.

seaneagan avatar Jun 22 '20 18:06 seaneagan

Sorry if your issue remains unresolved. The Helm Operator is in maintenance mode, we recommend everybody upgrades to Flux v2 and Helm Controller.

A new release of Helm Operator is out this week, 1.4.4.

We will continue to support Helm Operator in maintenance mode for an indefinite period of time, and eventually archive this repository.

Please be aware that Flux v2 has a vibrant and active developer community who are actively working through minor releases and delivering new features on the way to General Availability for Flux v2.

In the mean time, this repo will still be monitored, but support is basically limited to migration issues only. I will have to close many issues today without reading them all in detail because of time constraints. If your issue is very important, you are welcome to reopen it, but due to staleness of all issues at this point a new report is more likely to be in order. Please open another issue if you have unresolved problems that prevent your migration in the appropriate Flux v2 repo.

Helm Operator releases will continue as possible for a limited time, as a courtesy for those who still cannot migrate yet, but these are strongly not recommended for ongoing production use as our strict adherence to semver backward compatibility guarantees limit many dependencies and we can only upgrade them so far without breaking compatibility. So there are likely known CVEs that cannot be resolved.

We recommend upgrading to Flux v2 which is actively maintained ASAP.

I am going to go ahead and close every issue at once today, Thanks for participating in Helm Operator and Flux! 💚 💙

kingdonb avatar Sep 02 '22 19:09 kingdonb