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 nodeSelectors for Akri Agent #536

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>", "<bfjelds@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion controller/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "controller"
version = "0.8.24"
version = "0.8.25"
authors = ["<bfjelds@microsoft.com>", "<kagold@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
4 changes: 2 additions & 2 deletions deployment/helm/Chart.yaml
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.24
version: 0.8.25

# 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.24
appVersion: 0.8.25
7 changes: 6 additions & 1 deletion deployment/helm/templates/agent.yaml
Expand Up @@ -17,9 +17,14 @@ spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- if .Values.agent.linuxOnly }}
{{- if or .Values.agent.linuxOnly .Values.agent.nodeSelectors }}
nodeSelector:
{{- if .Values.agent.linuxOnly }}
"kubernetes.io/os": linux
{{- end }}
{{- if .Values.agent.nodeSelectors }}
{{- toYaml .Values.agent.nodeSelectors | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.rbac.enabled }}
serviceAccountName: 'akri-agent-sa'
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/values.yaml
Expand Up @@ -109,6 +109,9 @@ agent:
allowDebugEcho: false
# linuxOnly dictates whether the Akri Agent will only run on a linux node
linuxOnly: true
# nodeSelectors is the array of nodeSelectors used to target nodes for the Akri Agent to run on
# This can be set from the helm command line using `--set agent.nodeSelectors.label="value"`
nodeSelectors: {}
resources:
# memoryRequest defines the minimum amount of RAM that must be available to this Pod
# for it to be scheduled by the Kubernetes Scheduler
Expand Down
@@ -1,6 +1,6 @@
[package]
name = "debug-echo-discovery-handler"
version = "0.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
@@ -1,6 +1,6 @@
[package]
name = "onvif-discovery-handler"
version = "0.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
@@ -1,6 +1,6 @@
[package]
name = "opcua-discovery-handler"
version = "0.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
@@ -1,6 +1,6 @@
[package]
name = "udev-discovery-handler"
version = "0.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
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.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/onvif/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-onvif"
version = "0.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/opcua/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-opcua"
version = "0.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion discovery-handlers/udev/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-udev"
version = "0.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion discovery-utils/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-discovery-utils"
version = "0.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
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.8.24"
version = "0.8.25"
authors = ["Kate Goldenring <kate.goldenring@microsoft.com>", "<bfjelds@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion shared/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "akri-shared"
version = "0.8.24"
version = "0.8.25"
authors = ["<bfjelds@microsoft.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
0.8.24
0.8.25
2 changes: 1 addition & 1 deletion webhooks/validating/configuration/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "webhook-configuration"
version = "0.8.24"
version = "0.8.25"
authors = ["DazWilkin <daz.wilkin@gmail.com>"]
edition = "2018"
rust-version = "1.63.0"
Expand Down