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

feat: add webhook timeout values #890

Merged
merged 5 commits into from
Jan 21, 2025

Conversation

falcorocks
Copy link
Contributor

@falcorocks falcorocks commented Jan 20, 2025

Description of the change

Adds optional timeout values. The chart creates 4 webhook configuration objects (2 ValidatingWebhookConfiguration and 2 MutatingWebhookConfiguration. These are all created with the default timeoutSeconds (docs) set to 10s. In some cases this is excessive (Kuberentes docs recommend this value to be as short as possible). In other cases user experience the need for longer timeouts, up to 20 seconds. This PR allows users to specify a specific timeout for each of the 4 configurations.

Existing or Associated Issue(s)

see for instance https://sigstore.slack.com/archives/C03096V09F1/p1737372057769759

Additional Information

Checklist

  • Chart version bumped in Chart.yaml according to semver. Where applicable, update and bump the versions in any associated umbrella chart
  • Variables are documented in the values.yaml and added to the README.md. The helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content.
  • JSON Schema generated.
  • List tests pass for Chart using the Chart Testing tool and the ct lint command.

Copy link

@TomWKraken TomWKraken left a comment

Choose a reason for hiding this comment

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

Change default to 0.12.0 as it's latest release

charts/policy-controller/values.schema.json Outdated Show resolved Hide resolved
"default": "sha256:f291fce5b9c1a69ba54990eda7e0fe4114043b1afefb0f4ee3e6f84ec9ef1605",
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.8.2",
"default": "sha256:f3b57d4c906fcbd7229c3069c055ce2b2862e01106c2b85df1322f1e3a232829",
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.11.0",

Choose a reason for hiding this comment

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

Suggested change
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.11.0",
"description": "crane digest ghcr.io/sigstore/policy-controller/policy-controller:v0.12.0",

Choose a reason for hiding this comment

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

@falcorocks falcorocks requested a review from hectorj2f January 21, 2025 10:42
@bobcallaway bobcallaway merged commit 5090ff9 into sigstore:main Jan 21, 2025
3 checks passed
@falcorocks
Copy link
Contributor Author

thank you @hectorj2f @bobcallaway !

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.

4 participants