Skip to content

Commit acc423c

Browse files
authored
Merge pull request #61 from jianxiaoguo/main
set the domain depends cert_manager_enabled and fix update resources bug
2 parents 78b65e3 + 60636a8 commit acc423c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

charts/controller/templates/_helpers.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ env:
142142
{{- end }}
143143
{{- if eq .Values.global.passport_location "on-cluster"}}
144144
- name: "DRYCC_PASSPORT_DOMAIN"
145+
{{- if eq .Values.global.cert_manager_enabled "true" }}
146+
value: https://drycc-passport.{{ .Values.global.platform_domain }}
147+
{{- else }}
145148
value: http://drycc-passport.{{ .Values.global.platform_domain }}
149+
{{- end }}
146150
- name: "SOCIAL_AUTH_DRYCC_AUTHORIZATION_URL"
147151
value: "$(DRYCC_PASSPORT_DOMAIN)/oauth/authorize/"
148152
- name: "SOCIAL_AUTH_DRYCC_ACCESS_TOKEN_URL"

rootfs/api/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ def update(self, instance, validated_data):
735735
if instance.plan.split(':')[0] != validated_data.get('plan', '').split(':')[0]: # noqa
736736
raise DryccException("the resource cann't changed")
737737
instance.plan = validated_data.get('plan')
738-
instance.options = validated_data.get('options')
738+
instance.options.update(validated_data.get('options', {}))
739739
instance.attach_update()
740740
instance.save()
741741
return instance

0 commit comments

Comments
 (0)