tests: nvidia: move secret definitions to bottom

The add_allow_all_policy_to_yaml in tests_common.sh needs some
improvements so that this function can support pod manifests with
different resource kinds. For now, moving the Secret definition
to the bottom so that we can create a default policy for the Pod.

Signed-off-by: Manuel Huber <manuelh@nvidia.com>
This commit is contained in:
Manuel Huber
2025-11-13 00:22:43 +00:00
committed by Fabiano Fidêncio
parent ffd5443637
commit 7e20118c8e
4 changed files with 32 additions and 33 deletions

View File

@@ -4,14 +4,6 @@
#
---
apiVersion: v1
kind: Secret
metadata:
name: ngc-secret-instruct
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ${DOCKER_CONFIG_JSON}
---
apiVersion: v1
kind: Pod
metadata:
name: ${POD_NAME_INSTRUCT}
@@ -76,3 +68,11 @@ spec:
nvidia.com/pgpu: "1"
cpu: "16"
memory: "96Gi"
---
apiVersion: v1
kind: Secret
metadata:
name: ngc-secret-instruct
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ${DOCKER_CONFIG_JSON}

View File

@@ -4,14 +4,6 @@
#
---
apiVersion: v1
kind: Secret
metadata:
name: ngc-secret-instruct
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ${DOCKER_CONFIG_JSON}
---
apiVersion: v1
kind: Pod
metadata:
name: ${POD_NAME_INSTRUCT}
@@ -87,4 +79,11 @@ spec:
hostPath:
path: "${LOCAL_NIM_CACHE}"
type: DirectoryOrCreate
---
apiVersion: v1
kind: Secret
metadata:
name: ngc-secret-instruct
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ${DOCKER_CONFIG_JSON}

View File

@@ -4,14 +4,6 @@
#
---
apiVersion: v1
kind: Secret
metadata:
name: ngc-secret-embedqa
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ${DOCKER_CONFIG_JSON}
---
apiVersion: v1
kind: Pod
metadata:
name: ${POD_NAME_EMBEDQA}
@@ -82,3 +74,11 @@ spec:
nvidia.com/pgpu: 1
cpu: "16"
memory: "96Gi"
---
apiVersion: v1
kind: Secret
metadata:
name: ngc-secret-embedqa
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ${DOCKER_CONFIG_JSON}

View File

@@ -4,14 +4,6 @@
#
---
apiVersion: v1
kind: Secret
metadata:
name: ngc-secret-embedqa
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ${DOCKER_CONFIG_JSON}
---
apiVersion: v1
kind: Pod
metadata:
name: ${POD_NAME_EMBEDQA}
@@ -93,3 +85,11 @@ spec:
hostPath:
path: "${LOCAL_NIM_CACHE}"
type: DirectoryOrCreate
---
apiVersion: v1
kind: Secret
metadata:
name: ngc-secret-embedqa
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ${DOCKER_CONFIG_JSON}