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

[prometheus-adapter] Use full duration format for default certificate values #3878

Conversation

maikelvl
Copy link
Contributor

What this PR does / why we need it

Cert-Manager converts simple duration values to their full format: 1h ends up as 1h0m0s

GitOps tools like Argo CD keep seeing this as a change and never reach a 'synced' state because they see this as a diff: 1h0m0s != 1h. Using the full format fixes that.

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

Cert-Manager converts simple duration values to their full format: `1h` ends up as `1h0m0s`

GitOps tools like Argo CD keep seeing this as a change and never reach a 'synced' state because they see this as a diff: `1h0m0s != 1h`. Using the full format fixes that.

Signed-off-by: Maikel <maikelvl@users.noreply.github.com>
Copy link
Member

@steven-sheehy steven-sheehy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steven-sheehy steven-sheehy merged commit 80ab3ad into prometheus-community:main Oct 19, 2023
4 checks passed
Matiasmct pushed a commit to giffgaff/prometheus-charts that referenced this pull request Mar 20, 2024
…ommunity#3878)

Cert-Manager converts simple duration values to their full format: `1h` ends up as `1h0m0s`

GitOps tools like Argo CD keep seeing this as a change and never reach a 'synced' state because they see this as a diff: `1h0m0s != 1h`. Using the full format fixes that.

Signed-off-by: Maikel <maikelvl@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants