Add label component=platform to pods
Add the label "app.starlingx.io/component=platform" to pods to ensure kubernetes run it on the platform cores. Additionally, the review [1] introduced a problem when changing the chdir path in the trident install task. This resulted in the installer being unable to locate the custom templates. [1]: https://review.opendev.org/c/starlingx/ansible-playbooks/+/887424/13/playbookconfig/src/playbooks/roles/k8s-storage-backends/netapp/tasks/main.yml#86 Test Plan: PASS: Install trident PASS: Check if pods have the label 'app.starlingx.io/component' with the value 'platform' Story: 2010612 Task: 50258 Change-Id: I051c328edddf5b997c192e96f9be4ed34743b554 Signed-off-by: Erickson Silva de Oliveira <Erickson.SilvadeOliveira@windriver.com>
This commit is contained in:
parent
3d7618d010
commit
feb5f2a541
@ -83,7 +83,7 @@
|
||||
- name: Install trident services
|
||||
command: tridentctl -n {{ trident_namespace }} install --use-custom-yaml {{ trident_install_extra_params }}
|
||||
args:
|
||||
chdir: "{{ trident_setup_dir }}/setup"
|
||||
chdir: "{{ trident_setup_dir }}"
|
||||
environment:
|
||||
KUBECONFIG: "/etc/kubernetes/admin.conf"
|
||||
when: (tridentctl_rest_response.rc is defined and
|
||||
|
@ -14,6 +14,8 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
app: node.csi.trident.netapp.io
|
||||
# STX_change: add label component
|
||||
app.starlingx.io/component: platform
|
||||
spec:
|
||||
serviceAccount: trident-node-linux
|
||||
hostNetwork: true
|
||||
|
@ -17,6 +17,8 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
app: controller.csi.trident.netapp.io
|
||||
# STX_change: add label component
|
||||
app.starlingx.io/component: platform
|
||||
spec:
|
||||
serviceAccount: trident-controller
|
||||
containers:
|
||||
|
Loading…
x
Reference in New Issue
Block a user