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

add values to leases-cleanup job and webhook deployment #894

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

falcorocks
Copy link
Contributor

@falcorocks falcorocks commented Jan 21, 2025

Description of the change

  1. this PR adds the following optional values, which allows to easily follow Kubernetes best practices/provide more flexibility
  • leases cleanup job:
    • podSecurityContext
    • priorityClass
    • resources
  • deployment webhook:
    • priorityClass
    • envFrom
  1. it removes 2 keys from the schema that were added by mistake in 142e34b (probably through the helm-schema, see https://sigstore.slack.com/archives/C03096V09F1/p1737627750048369):
  • additionalProperties
  • required

helm-schema gives for granted that all values in the values.yaml are required and should not allow additionalProperties, which is pretty inflexible. We should ask users to run helm-schema -k additionalProperties,required to avoid this from happening again. The PR also adds a new CI workflow to check that the schema has been generated with these flags. I've tested a failure on purpose here by messing with the schema and it worked. Notice that this test is limited to the policy controller only in this PR, if we are happy we can expand the test to cover all charts later, this PR is already big enough IMO.

Existing or Associated Issue(s)

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.

@falcorocks falcorocks changed the title Feat best practices values feat: add some best practice values to leases-cleanup job & deployment Jan 21, 2025
@falcorocks falcorocks marked this pull request as draft January 21, 2025 13:45
@falcorocks falcorocks changed the title feat: add some best practice values to leases-cleanup job & deployment feat: add some best practice values to leases-cleanup job & webhook deployment Jan 21, 2025
@falcorocks falcorocks marked this pull request as ready for review January 21, 2025 13:54
@falcorocks falcorocks force-pushed the feat-best-practices-values branch 2 times, most recently from e2017c2 to a846b3d Compare January 21, 2025 14:10
@falcorocks falcorocks force-pushed the feat-best-practices-values branch from a846b3d to 3edf674 Compare January 21, 2025 14:11
@falcorocks falcorocks marked this pull request as draft January 21, 2025 14:14
@falcorocks falcorocks marked this pull request as ready for review January 21, 2025 15:39
@falcorocks falcorocks force-pushed the feat-best-practices-values branch from 43b7c13 to 3edf674 Compare January 23, 2025 15:38
it was introduced by mistake in sigstore@142e34b
and it is actually breaking.
use helm-schema -k additionalProperties when updating the schema

Signed-off-by: falcorocks <[email protected]>
it was introduced by mistake in sigstore@142e34b
and it is actually breaking

Signed-off-by: falcorocks <[email protected]>
@falcorocks falcorocks force-pushed the feat-best-practices-values branch 5 times, most recently from 9ad6eff to a5ca1bc Compare January 23, 2025 16:17
@falcorocks falcorocks force-pushed the feat-best-practices-values branch from a5ca1bc to a8b34ab Compare January 23, 2025 16:20
to allow users to pass env variables
through configmaps and secrets

Signed-off-by: falcorocks <[email protected]>
@falcorocks falcorocks changed the title feat: add some best practice values to leases-cleanup job & webhook deployment add values to leases-cleanup job and webhook deployment & cleanup schema Jan 23, 2025
@falcorocks falcorocks force-pushed the feat-best-practices-values branch 2 times, most recently from 8231ffe to 2544b33 Compare January 23, 2025 16:46
Copy link
Contributor

@hectorj2f hectorj2f left a comment

Choose a reason for hiding this comment

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

Please, split the PR so it is easy to review both changes. Let's open a PR for the schema cleanup.

@falcorocks falcorocks mentioned this pull request Feb 3, 2025
4 tasks
@falcorocks falcorocks changed the title add values to leases-cleanup job and webhook deployment & cleanup schema add values to leases-cleanup job and webhook deployment Feb 3, 2025
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.

2 participants