-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a35dc20
commit 05387fe
Showing
15 changed files
with
65 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ roleRef: | |
name: proxy-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: default | ||
name: gpu-operator | ||
namespace: system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
resources: | ||
- service_account.yaml | ||
- role.yaml | ||
- role_binding.yaml | ||
- leader_election_role.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: gpu-operator | ||
namespace: system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
#! /bin/bash | ||
|
||
dest=config/manager/.env | ||
|
||
env=$(cat bundle/manifests/gpu-operator-certified.clusterserviceversion.yaml \ | ||
| yq \ | ||
| jq '.spec.install.spec.deployments[].spec.template.spec.containers[].env[] | .name, "=", .value, ";"' -r ) | ||
| yq '.spec.install.spec.deployments[].spec.template.spec.containers[].env[] | with_entries(select(.value != "OPERATOR_NAMESPACE"))' \ | ||
| jq 'select( .name != null and .value != null) | .name, "=", .value, ";"' -r ) | ||
env=${env//$'\n'/} | ||
echo $env > ./hack/.env | ||
sed -i 's/;/\n/g' ./hack/.env | ||
|
||
echo KUBECONFIG=${PWD}/hack/kubeconfig >> ./hack/.env | ||
echo OPERATOR_NAMESPACE=nvidia-gpu-operator >> ./hack/.env | ||
|
||
export KUBECONFIG=${PWD}/hack/kubeconfig | ||
export OPERATOR_NAMESPACE=nvidia-gpu-operator | ||
|
||
kubectl create namespace ${OPERATOR_NAMESPACE} 2>/dev/null || true | ||
kubectl apply -f ./config/crd/bases/nvidia.com_clusterpolicies.yaml | ||
kubectl apply -f ./config/samples/v1_clusterpolicy.yaml | ||
echo $env > ${dest} | ||
sed -i 's/;/\n/g' ${dest} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.