Skip to content

Commit

Permalink
Enable specifying ImagePullSecrets for Job brokers (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-goldenring committed Jan 19, 2022
1 parent efffe84 commit ad45736
Show file tree
Hide file tree
Showing 25 changed files with 121 additions and 37 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
- uses: azure/setup-helm@v1

- name: Lint helm chart
run: helm lint deployment/helm --values test/helm-lint-values.yaml && echo "lint finished successfully" || echo ::warning::"lint found issues"
run: |
helm lint deployment/helm --values test/helm-lint-values.yaml && echo "lint finished successfully" || echo ::warning::"lint found issues"
helm lint deployment/helm --values test/helm-lint-values-jobs.yaml && echo "lint with Job brokers finished successfully" || echo ::warning::"lint with Job brokers found issues"
helm:
Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "agent"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>", "<bfjelds@microsoft.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion controller/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "controller"
version = "0.8.0"
version = "0.8.1"
authors = ["<bfjelds@microsoft.com>", "<kagold@microsoft.com>"]
edition = "2018"

Expand Down
4 changes: 2 additions & 2 deletions deployment/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,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.8.0
version: 0.8.1

# 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.8.0
appVersion: 0.8.1
2 changes: 1 addition & 1 deletion deployment/helm/templates/custom-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
restartPolicy: {{ .Values.custom.configuration.brokerJob.restartPolicy }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 6 }}
{{- toYaml . | nindent 10 }}
{{- end }}
backoffLimit: {{ .Values.custom.configuration.brokerJob.backoffLimit }}
parallelism: {{ .Values.custom.configuration.brokerJob.parallelism }}
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/templates/debug-echo-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ spec:
restartPolicy: {{ .Values.debugEcho.configuration.brokerJob.restartPolicy }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 6 }}
{{- toYaml . | nindent 10 }}
{{- end }}
backoffLimit: {{ .Values.debugEcho.configuration.brokerJob.backoffLimit }}
parallelism: {{ .Values.debugEcho.configuration.brokerJob.parallelism }}
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/templates/onvif-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ spec:
restartPolicy: {{ .Values.onvif.configuration.brokerJob.restartPolicy }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 6 }}
{{- toYaml . | nindent 10 }}
{{- end }}
backoffLimit: {{ .Values.onvif.configuration.brokerJob.backoffLimit }}
parallelism: {{ .Values.onvif.configuration.brokerJob.parallelism }}
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/templates/opcua-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ spec:
restartPolicy: {{ .Values.opcua.configuration.brokerJob.restartPolicy }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 6 }}
{{- toYaml . | nindent 10 }}
{{- end }}
backoffLimit: {{ .Values.opcua.configuration.brokerJob.backoffLimit }}
parallelism: {{ .Values.opcua.configuration.brokerJob.parallelism }}
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/templates/udev-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ spec:
restartPolicy: {{ .Values.udev.configuration.brokerJob.restartPolicy }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 6 }}
{{- toYaml . | nindent 10 }}
{{- end }}
backoffLimit: {{ .Values.udev.configuration.brokerJob.backoffLimit }}
parallelism: {{ .Values.udev.configuration.brokerJob.parallelism }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "debug-echo-discovery-handler"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "onvif-discovery-handler"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "opcua-discovery-handler"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "udev-discovery-handler"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/debug-echo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-debug-echo"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/onvif/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-onvif"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/opcua/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-opcua"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/udev/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-udev"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion discovery-utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-discovery-utils"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion samples/brokers/udev-video-broker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "udev-video-broker"
version = "0.8.0"
version = "0.8.1"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>", "<bfjelds@microsoft.com>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akri-shared"
version = "0.8.0"
version = "0.8.1"
authors = ["<bfjelds@microsoft.com>"]
edition = "2018"

Expand Down
80 changes: 80 additions & 0 deletions test/helm-lint-values-jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# This document provides values to be passed to `helm lint` to provide more exhaustive linting in our workflows for scenarios with Job brokers.
# Can also be used locally from base of Akri repository: `helm lint deployment/helm --values test/helm-lint-values-jobs.yaml`
# Alternatively, linting can be done in line by setting values:
# `helm lint deployment/helm/ --set debugEcho.configuration.enabled=true,udev.configuration.enabled=true,udev.configuration.discoveryDetails.udevRules[0]='KERNEL=="video[0-9]*"'...`
debugEcho:
configuration:
enabled: true
brokerJob:
image:
repository: "busybox"
backoffLimit: 4
parallelism: 2
completions: 2
restartPolicy: Never
command:
- "sh"
- "c"
- "ls"
udev:
configuration:
enabled: true
discoveryDetails:
udevRules:
- 'KERNEL=="video[0-9]*"'
brokerJob:
image:
repository: "busybox"
backoffLimit: 4
parallelism: 2
completions: 2
restartPolicy: Never
command:
- "sh"
- "c"
- "ls"
opcua:
configuration:
enabled: true
brokerJob:
image:
repository: "busybox"
backoffLimit: 4
parallelism: 2
completions: 2
restartPolicy: Never
command:
- "sh"
- "c"
- "ls"
onvif:
configuration:
enabled: true
brokerJob:
image:
repository: "busybox"
backoffLimit: 4
parallelism: 2
completions: 2
restartPolicy: Never
command:
- "sh"
- "c"
- "ls"
custom:
configuration:
enabled: true
discoveryHandlerName: "some name"
brokerJob:
image:
repository: "busybox"
backoffLimit: 4
parallelism: 2
completions: 2
restartPolicy: Never
command:
- "sh"
- "c"
- "ls"
imagePullSecrets:
- name: "my-image-registry-creds"
2 changes: 2 additions & 0 deletions test/helm-lint-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ custom:
webhookConfiguration:
enabled: true
caBundle: certificate.crt
imagePullSecrets:
- name: "my-image-registry-creds"
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.0
0.8.1
2 changes: 1 addition & 1 deletion webhooks/validating/configuration/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webhook-configuration"
version = "0.8.0"
version = "0.8.1"
authors = ["DazWilkin <daz.wilkin@gmail.com>"]
edition = "2018"

Expand Down

0 comments on commit ad45736

Please sign in to comment.