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

Fix securityContext values name #48

Merged
merged 2 commits into from
Feb 28, 2022

Conversation

michaellzc
Copy link
Member

@michaellzc michaellzc commented Feb 25, 2022

We're currently using and

  • podSecurityContext as container-level securityContext (the naming is misleading)
  • securityContext as pod-level securityContext (okay, but we should be more explicit)

This PR

  • renamed podSecurityContext to containerSecurityContext
  • renamed securityContext to podSecurityContext

Test plan

The test plan is to diff the output of rendered manifest, no change is expected.

kind create cluster

Revert to main

 git checkout HEAD~
helm upgrade --install -n sourcegraph --set storageClass.create=false,storageClass.name=standard,sourcegraph.localDevMode=true sourcegraph charts/sourcegraph/.
git checkout 02-25-Fix_securityContext_values_name
helm diff -n sourcegraph --set storageClass.create=false,storageClass.name=standard,sourcegraph.localDevMode=true sourcegraph charts/sourcegraph/.

There should be no difference.

close sourcegraph/sourcegraph#31888

@michaellzc
Copy link
Member Author

michaellzc commented Feb 25, 2022

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@michaellzc michaellzc self-assigned this Feb 25, 2022
@michaellzc michaellzc marked this pull request as ready for review February 25, 2022 23:49
@michaellzc michaellzc force-pushed the 02-25-Fix_securityContext_values_name branch from 079d07c to 754e93c Compare February 26, 2022 06:29
Copy link
Contributor

@caugustus-sourcegraph caugustus-sourcegraph left a comment

Choose a reason for hiding this comment

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

This is a breaking change, so it requires bumping the minor version on the chart version.

Now that we've started combining multiple changes into a single release, and now have a breaking change, I think we should start producing a changelog. Before, it wasn't very important because one commit == one release.

@michaellzc michaellzc force-pushed the 02-25-Fix_securityContext_values_name branch from 754e93c to 54a8e10 Compare February 28, 2022 17:34
@michaellzc michaellzc force-pushed the 02-25-Fix_securityContext_values_name branch from 54a8e10 to 01d51e1 Compare February 28, 2022 17:37
@michaellzc
Copy link
Member Author

michaellzc commented Feb 28, 2022

This is a breaking change, so it requires bumping the minor version on the chart version.

Now that we've started combining multiple changes into a single release, and now have a breaking change, I think we should start producing a changelog. Before, it wasn't very important because one commit == one release.

@caugustus-sourcegraph

Added a changelog to record breaking changes. Also, I added a note to this the RELEASE.md https://github.com/sourcegraph/deploy-sourcegraph-helm/pull/50/files#diff-2b1b69303b927a484e02c7fad9fc87d0d3ff0dc22ae1da0ecd0dc935d922a23cR7 to keep an eye for breaking changes during release. Assuming we're fine with my proposed release process (multiple commits in one release instead of bumping the chart.yaml in every single commit)

charts/sourcegraph/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Crystal Augustus <91073224+caugustus-sourcegraph@users.noreply.github.com>
@michaellzc michaellzc merged commit 168eed4 into main Feb 28, 2022
@michaellzc michaellzc deleted the 02-25-Fix_securityContext_values_name branch February 28, 2022 18:38
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.

Helm: refactor podSecurityContext and securityContext
2 participants