Skip to content

Commit

Permalink
add securityContext to controller helm chart (#664)
Browse files Browse the repository at this point in the history
* add securityContext to controller helm chart

Signed-off-by: Johnson Shih <jshih@microsoft.com>

* Update patch version

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Signed-off-by: Johnson Shih <jshih@microsoft.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
johnsonshih and github-actions[bot] committed Oct 4, 2023
1 parent 911cdc1 commit a233713
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 31 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion agent/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "agent"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>", "<bfjelds@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion controller/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "controller"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["<bfjelds@microsoft.com>", "<kagold@microsoft.com>"]
edition = "2018"
Expand Down
4 changes: 2 additions & 2 deletions deployment/helm/Chart.yaml
Expand Up @@ -16,9 +16,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.12.9
version: 0.12.10

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.12.9
appVersion: 0.12.10
4 changes: 4 additions & 0 deletions deployment/helm/templates/controller.yaml
Expand Up @@ -38,6 +38,10 @@ spec:
{{- with .Values.controller.image.pullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
{{- if .Values.controller.securityContext }}
securityContext:
{{- toYaml .Values.controller.securityContext | nindent 10 }}
{{- end}}
resources:
requests:
memory: {{ .Values.controller.resources.memoryRequest }}
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/values.yaml
Expand Up @@ -54,6 +54,7 @@ controller:
pullPolicy: "Always"
# ensures container doesn't run with unnecessary priviledges
securityContext:
runAsUser: 1000
allowPrivilegeEscalation: false
runAsNonRoot: true
readOnlyRootFilesystem: true
Expand Down
@@ -1,6 +1,6 @@
[package]
name = "debug-echo-discovery-handler"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
@@ -1,6 +1,6 @@
[package]
name = "onvif-discovery-handler"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
@@ -1,6 +1,6 @@
[package]
name = "opcua-discovery-handler"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
@@ -1,6 +1,6 @@
[package]
name = "udev-discovery-handler"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/debug-echo/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-debug-echo"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/onvif/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-onvif"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/opcua/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-opcua"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/udev/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-udev"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion discovery-utils/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-discovery-utils"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion samples/brokers/udev-video-broker/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "udev-video-broker"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>", "<bfjelds@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion shared/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-shared"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["<bfjelds@microsoft.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
0.12.9
0.12.10
2 changes: 1 addition & 1 deletion webhooks/validating/configuration/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "webhook-configuration"
version = "0.12.9"
version = "0.12.10"
license = "Apache-2.0"
authors = ["DazWilkin <daz.wilkin@gmail.com>"]
edition = "2018"
Expand Down

0 comments on commit a233713

Please sign in to comment.