Skip to content
Snippets Groups Projects
Commit 14f934e7 authored by Sébastien Heurtematte's avatar Sébastien Heurtematte :speech_balloon:
Browse files

fix: service account

parent 457dbf5b
No related branches found
No related tags found
No related merge requests found
Pipeline #6775 failed
......@@ -3,7 +3,8 @@
```shell
NAMESPACE=grac-eclipsefdn-it-releng-gitlab-runner-as-code
kubectl get namespace $NAMESPACE -o json > tmp.json
kubectl get namespace $NAMESPACE -o json|sed 's/"kubernetes"//' > /tmp/tmp.json
```
Delete finalizers `kubernetes` from namespace definition.
......
......@@ -176,7 +176,7 @@
"pullPolicy": "if-not-present",
"resourceAvailabilityCheckMaxAttempts": "",
"runtimeClassName": "",
"serviceAccount": "grac-' + $.project.shortName + '-service-account",
"serviceAccount": "grac-gitlab-runner-as-code-service-account",
"serviceAccountOverwriteAllowed": "",
"serviceContainerSecurityContextAllowPrivilegeEscalation": "",
"serviceContainerSecurityContextCapabilitiesAdd": "",
......
......@@ -154,7 +154,7 @@
},
{
"name": "KUBERNETES_SERVICE_ACCOUNT",
"value": "grac-' + $.project.shortName + '-service-account"
"value": "grac-gitlab-runner-as-code-service-account"
},
{
"name": "KUBERNETES_SERVICE_CPU_LIMIT",
......
......@@ -60,7 +60,9 @@ if [[ "$(readlink -f "${confirm}")" == "$(readlink -f "${instance}")" ]]; then
oc delete -f "${instance}/target/k8s/limit-range.json"
oc delete -f "${instance}/target/k8s/service-account.json"
oc delete -f "${instance}/target/k8s/namespace.json"
# TODO Force Delete a Kubernetes Namespace, see documentation
#oc delete -f "${instance}/target/k8s/namespace.json"
else
log error "Cannot delete, $(readlink -f "${confirm}") != $(readlink -f "${instance}")"
......
......@@ -202,7 +202,7 @@
resourceAvailabilityCheckMaxAttempts:"", # The maximum number of attempts to check if a resource (service account and/or pull secret) set is available before giving up. There is 5 seconds interval between each attempt (default: "0") [$KUBERNETES_RESOURCE_AVAILABILITY_CHECK_MAX_ATTEMPTS]
podLabels:"", # A toml table/json object of key-value. Value is expected to be a string. When set, this will create pods with the given pod labels. Environment variables will be substituted for values here. (default: "{}")
podLabelsOverwriteAllowed:"", # Regex to validate 'KUBERNETES_POD_LABELS_*' values [$KUBERNETES_POD_LABELS_OVERWRITE_ALLOWED]
serviceAccount:"grac-' + $.project.shortName + '-service-account", # Executor pods will use this Service Account to talk to kubernetes API [$KUBERNETES_SERVICE_ACCOUNT]
serviceAccount:"grac-" + $.project.shortName + "-service-account", # Executor pods will use this Service Account to talk to kubernetes API [$KUBERNETES_SERVICE_ACCOUNT]
serviceAccountOverwriteAllowed:"", # Regex to validate 'KUBERNETES_SERVICE_ACCOUNT' value [$KUBERNETES_SERVICE_ACCOUNT_OVERWRITE_ALLOWED]
podAnnotations:"", # A toml table/json object of key-value. Value is expected to be a string. When set, this will create pods with the given annotations. Can be overwritten in build with KUBERNETES_POD_ANNOTATION_* variables (default: "{}")
podAnnotationsOverwriteAllowed:"", # Regex to validate 'KUBERNETES_POD_ANNOTATIONS_*' values [$KUBERNETES_POD_ANNOTATIONS_OVERWRITE_ALLOWED]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment