Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/mongodb-replicaset] Use security context on pod level #5055

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

unguiculus
Copy link
Member

  • Use security context on pod level, which allows us to run all
    containers as non-root and to get rid of the init container for
    changing permissions
  • Fix typos in readme
  • Fix permissions for key when auth is enabled

/cc @lachie83 @foxish @timstoop

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 16, 2018
* Use security context on pod level, which allows us to run all
  containers as non-root and to get rid of the init container for
  changing permissions
* Fix typos in readme
* Fix permissions for key when auth is enabled
@@ -45,6 +46,7 @@ spec:

{{- if .Values.auth.enabled }}
cp /keydir-readonly/key.txt /data/configdb/key.txt
chmod 600 /data/configdb/key.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

Loving this change to remove an entire initContainer!

@timstoop
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 16, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: timstoop, unguiculus

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 4fb7953 into helm:master Apr 16, 2018
goruha added a commit to goruha/charts that referenced this pull request Apr 19, 2018
…into rabbitmq-workload-api-fix

* 'rabbitmq-workload-api-fix' of github.com:goruha/charts: (75 commits)
  [stable/odoo] Add carrodher as owner (helm#4856)
  [stable/jasperreports] Release 1.0.3 (helm#5107)
  Add doc about redis data only persistence (helm#4965)
  [sentry] add nodeSelector, affinity & tolerations (helm#4264)
  [stable/sonarqube] Adding support for Service annotations (helm#4060)
  [incubator/schema-registry] Updating GroupID, and moving to using kafka coordinator master election (helm#5019)
  quote boolean S3 environment variables (helm#5066)
  Fix graceful shutdown of brokers, more settings, version bump (helm#5082)
  apiVersion shouldn't be hardcoded (helm#5060)
  [stable/phabricator] Release 1.0.4 (helm#5068)
  [stable/testlink] Release 1.0.5 (helm#5050)
  [stable/redis] fixed a typo into NOTES (helm#5070)
  [etcd-operator] readiness/liveness checks for operator (helm#4609)
  Annotations and checksum (helm#5067)
  Add OWNERS file to schema-registry (helm#5054)
  [stable/mongodb-replicaset] Use security context on pod level (helm#5055)
  Typo fix in sonarqube/README.md (helm#5045)
  Typo fix in sonatype-nexus/README.md (helm#5042)
  [sonarqube] nodeSelector, affinity & tolerations. also separate resoruces for plugin pod (helm#4265)
  [stable/sonarqube] upgrade to LTS version (6.7.3) (helm#5029)
  ...
ichtar pushed a commit to Bestmile/charts that referenced this pull request May 15, 2018
)

* Use security context on pod level, which allows us to run all
  containers as non-root and to get rid of the init container for
  changing permissions
* Fix typos in readme
* Fix permissions for key when auth is enabled
@unguiculus unguiculus deleted the feature/mongo branch June 4, 2018 06:50
voron pushed a commit to dysnix/helm-charts that referenced this pull request Sep 5, 2018
)

* Use security context on pod level, which allows us to run all
  containers as non-root and to get rid of the init container for
  changing permissions
* Fix typos in readme
* Fix permissions for key when auth is enabled

Signed-off-by: voron <av@arilot.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants