app-sriov-fec-operator/sriov-fec-operator-images/files/0001-Add-image-pull-secrets-for-stx-builds.patch
Nidhi Shivashankara Belur df18ea06f2 sriov-fec-operator v2.9.0 system integration
Upgrade sriov-fec-operator application to v2.9.0 that includes following
new features.

- Enables helm auto-versioning to the Sriov Fec Operator charts.
- Includes package renames as suggested in other applications' reviews.
- Updated pf-bb-config version to v24.03.
- Set Default drainSkip to "true".
- Renamed short name for VRB CRDs:
  -  sriovvrbclusterconfigs: From "vrbcc" to "svcc".
  -  sriovvrbnodeconfigs: From "vrbnc" to "svnc".
- pf-bb-config version display in SFNC/SVNC.

Test Status:
- PASS: Build application deb, generate tarball and build docker images
  copy to stx active controller.
- PASS: App upload, apply, remove, delete verified in simplex mode.
- PASS: Verify that when app is uploaded and applied, operator pods are
  created and running before configuring the accelerator device.
- PASS: configure N3000 using `sriovFecClusterConfig` to create 2 VF.
- PASS: Configure ACC100 using `sriovFecClusterConfig` to create 16 VF.
- PASS: Configure ACC200/VRB1 using `sriovFecClusterConfig` or
  `sriovVrbClusterConfig` to create 2 VFs.
- PASS: Configure VRB2 using `sriovVrbClusterConfig` to create 2 VFs.
- PASS: Application pod validation. Steps:
    - Bringup test-pod, request FEC VFs.
    - Validate VFIO-TOKEN injection to the pod.
    - Validate sample dpdk application test-bbdev in VFIO mode using
      VFIO-TOKEN from the pod env.
- PASS: Reboot test with operator method validated.
- PASS: Shellcheck tool test.

Failure Tests:
- PASS: Applying Clusterconfig shall fail when fec operator is not
  deployed.
- PASS: Operator deployment shall fail when docker image download fails
  during system application-apply.

Story: 2011121
Task: 50042

Signed-off-by: Nidhi Shivashankara Belur <nidhi.shivashankara.belur@intel.com>
Change-Id: I18a08f5b864b850609f87bddd8d89bc78192d714
2024-05-14 19:29:25 +05:30

72 lines
2.1 KiB
Diff

From b3f024540b6a87d72e19be054151e69ba0adc1c0 Mon Sep 17 00:00:00 2001
From: Nidhi S Belur <nidhi.shivashankara.belur@intel.com>
Date: Tue, 14 May 2024 08:37:54 -0500
Subject: [PATCH] Add image pull secrets for stx builds
Signed-off-by: Nidhi S Belur <nidhi.shivashankara.belur@intel.com>
---
assets/100-labeler.yaml | 2 ++
assets/200-device-plugin.yaml | 2 ++
assets/300-daemon.yaml | 7 +++++++
3 files changed, 11 insertions(+)
diff --git a/assets/100-labeler.yaml b/assets/100-labeler.yaml
index 4dcd00f..a3a5eb7 100644
--- a/assets/100-labeler.yaml
+++ b/assets/100-labeler.yaml
@@ -49,6 +49,8 @@ data:
serviceAccount: |
apiVersion: v1
kind: ServiceAccount
+ imagePullSecrets:
+ - name: "{{ .SRIOV_FEC_IMAGE_PULL_SECRET }}"
metadata:
name: accelerator-discovery
namespace: {{ .SRIOV_FEC_NAMESPACE }}
diff --git a/assets/200-device-plugin.yaml b/assets/200-device-plugin.yaml
index c42c37d..2a53dd0 100644
--- a/assets/200-device-plugin.yaml
+++ b/assets/200-device-plugin.yaml
@@ -11,6 +11,8 @@ data:
serviceAccount: |
apiVersion: v1
kind: ServiceAccount
+ imagePullSecrets:
+ - name: "{{ .SRIOV_FEC_IMAGE_PULL_SECRET }}"
metadata:
name: sriov-device-plugin
namespace: {{ .SRIOV_FEC_NAMESPACE }}
diff --git a/assets/300-daemon.yaml b/assets/300-daemon.yaml
index d51a4c8..03dc090 100644
--- a/assets/300-daemon.yaml
+++ b/assets/300-daemon.yaml
@@ -11,6 +11,8 @@ data:
serviceAccount: |
apiVersion: v1
kind: ServiceAccount
+ imagePullSecrets:
+ - name: "{{ .SRIOV_FEC_IMAGE_PULL_SECRET }}"
metadata:
name: sriov-fec-daemon
namespace: {{ .SRIOV_FEC_NAMESPACE }}
@@ -228,6 +230,8 @@ data:
- name: lockdown
mountPath: /sys/kernel/security
readOnly: true
+ - name: sys
+ mountPath: /sys
env:
- name: SRIOV_FEC_NAMESPACE
valueFrom:
@@ -284,4 +288,7 @@ data:
- name: lockdown
hostPath:
path: /sys/kernel/security
+ - name: sys
+ hostPath:
+ path: /sys
--
2.7.4