Replace 'node-role.kubernetes.io/master' label

The node-role.kubernetes.io/master label is deprecated for K8s v1.24.
This change provides compatibility to the application for such K8s
version.
This new label is available since K8s v1.20 so it is safe for previous
stx version.

Test plan
PASS: Build the package and install on system with K8s v1.23.
      Upload, apply the application as usual.
      Run snmp commands, the system responds correctly.

Story: 2010339
Task: 46473

Signed-off-by: Agustin Carranza <agustin.carranza@windriver.com>
Change-Id: Ib05e4ebc299d219ef8468b878829631a9506de4b
This commit is contained in:
Agustin Carranza 2022-09-29 12:06:12 -03:00
parent ac05533d34
commit 7cfa4f2a2a

View File

@ -30,10 +30,10 @@ image:
nameOverride: ""
fullnameOverride: ""
nodeSelector: { node-role.kubernetes.io/master: "" }
nodeSelector: { node-role.kubernetes.io/control-plane: "" }
tolerations:
- key: "node-role.kubernetes.io/master"
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"