Skip to content

Commit f022897

Browse files
committed
feat: replace kubeadmin with CI service account token
- Remove OPENSHIFT_PASSWORD (kubeadmin no longer works with OAuth) - Update OPENSHIFT_TOKEN with ci-deployer service account token - Update OPENSHIFT_USERNAME to system:serviceaccount:openshift-gitops:ci-deployer - Add OPENSHIFT_TOKEN to kustomize-cluster repo Service account created in kustomize-cluster bootstrap.
1 parent b7e21c4 commit f022897

File tree

2 files changed

+34
-44
lines changed

2 files changed

+34
-44
lines changed

main.tf

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,13 @@ locals {
101101
"tfroot-github"
102102
]
103103
}
104-
"openshift_password" = {
105-
name = "OPENSHIFT_PASSWORD"
106-
value = data.sops_file.secret_vars.data["openshift_password"]
107-
repositories = [
108-
"ansible-site-cluster",
109-
"images",
110-
"kustomize-cluster",
111-
"tfroot-github"
112-
]
113-
}
114104
"openshift_token" = {
115105
name = "OPENSHIFT_TOKEN"
116106
value = data.sops_file.secret_vars.data["openshift_token"]
117107
repositories = [
118108
"ansible-site-cluster",
119109
"images",
110+
"kustomize-cluster",
120111
"tfroot-github"
121112
]
122113
}

0 commit comments

Comments
 (0)