From 9cfa4267a7aa8abb79748dfa2aa1d754f086b9bd Mon Sep 17 00:00:00 2001 From: mingshewhe Date: Mon, 11 Dec 2023 16:29:43 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E4=BC=98=E5=8C=96rbac=E6=9D=83?= =?UTF-8?q?=E9=99=90=E4=BA=8C=E8=BF=9B=E5=88=B6=E9=83=A8=E7=BD=B2=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=20#9769?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helm-charts/core/ci/templates/init/init.iam-rbac.yaml | 2 +- helm-charts/core/ci/templates/init/init.iam.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-charts/core/ci/templates/init/init.iam-rbac.yaml b/helm-charts/core/ci/templates/init/init.iam-rbac.yaml index 00fa8fc1960..7ff25071b39 100644 --- a/helm-charts/core/ci/templates/init/init.iam-rbac.yaml +++ b/helm-charts/core/ci/templates/init/init.iam-rbac.yaml @@ -51,7 +51,7 @@ spec: python3 do_migrate.py -t {{ .Values.config.bkCiIamApigwUrl }} -a "{{ .Values.config.bkCiAppCode }}" -s "{{ .Values.config.bkCiAppToken }}" -f $i --apigateway done # 导入数据库 - cat << EOF > iam.sql + cat << 'EOF' > iam.sql UPDATE T_AUTH_IAM_CALLBACK SET GATEWAY="http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}" where `SYSTEM`="ci" {{- if ne .Values.config.bkCodeccPrivateUrl "" }} diff --git a/helm-charts/core/ci/templates/init/init.iam.yaml b/helm-charts/core/ci/templates/init/init.iam.yaml index 33d365f9276..6f200809825 100644 --- a/helm-charts/core/ci/templates/init/init.iam.yaml +++ b/helm-charts/core/ci/templates/init/init.iam.yaml @@ -51,7 +51,7 @@ spec: python3 bkiam_do_migrate.py -t {{ .Values.config.bkIamPrivateUrl }} -a "{{ .Values.config.bkCiAppCode }}" -s "{{ .Values.config.bkCiAppToken }}" -f $i done # 导入数据库 - cat << EOF > iam.sql + cat << 'EOF' > iam.sql UPDATE T_AUTH_IAM_CALLBACK SET GATEWAY="http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}" where `SYSTEM`="ci" EOF mysql -u{{- include "bkci.mysqlUsername" . }} -p{{- include "bkci.mysqlPassword" . }} -h{{ $mysqlData._0 }} -P{{ $mysqlData._1 }} devops_ci_auth < iam.sql;