Skip to content

Commit

Permalink
Merge pull request #9799 from mingshewhe/pref_9769
Browse files Browse the repository at this point in the history
pref: 优化rbac权限二进制部署脚本 #9769
  • Loading branch information
stubenhuang authored Dec 11, 2023
2 parents 9ab5976 + 9cfa426 commit 4e9d37c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm-charts/core/ci/templates/init/init.iam-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "" }}
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/core/ci/templates/init/init.iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e9d37c

Please sign in to comment.