Skip to content

Commit 01d6d6c

Browse files
committed
chore(controller): change app storage class name
1 parent 80353fc commit 01d6d6c

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

charts/controller/templates/_helpers.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ env:
55
value: {{ .Chart.AppVersion }}
66
- name: REGISTRATION_MODE
77
value: {{ .Values.registrationMode }}
8-
# Environmental variable value for $GATEWAY_CLASS
9-
- name: "DRYCC_GATEWAY_CLASS"
10-
value: "{{ .Values.global.gatewayClass }}"
118
- name: "K8S_API_VERIFY_TLS"
129
value: "{{ .Values.k8sApiVerifyTls }}"
1310
- name: "DRYCC_REGISTRY_LOCATION"
@@ -22,6 +19,8 @@ env:
2219
value: "{{ (tpl .Values.filerImagePullPolicy .) }}"
2320
- name: "KUBERNETES_CLUSTER_DOMAIN"
2421
value: "{{ .Values.global.clusterDomain }}"
22+
- name: "DRYCC_APP_GATEWAY_CLASS"
23+
value: "{{ .Values.appGatewayClass }}"
2524
{{- if (.Values.appStorageClass) }}
2625
- name: "DRYCC_APP_STORAGE_CLASS"
2726
value: "{{ (tpl .Values.appStorageClass .) }}"

charts/controller/values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ appImagePullPolicy: "Always"
3232
# Filer settings image and image pull policy
3333
filerImage: "registry.drycc.cc/drycc/filer:canary"
3434
filerImagePullPolicy: "Always"
35-
# Set storageClassName. It is used for application.
35+
# Set app gateway, It is used for application gateway.
36+
appGatewayClass: ""
37+
# Set storageClassName, It is used for application mount.
3638
appStorageClass: "longhorn"
3739
# Set runtimeClassName. It is used for application.
3840
appRuntimeClass: ""
@@ -69,7 +71,6 @@ workflowManagerAccessKey: ""
6971
workflowManagerSecretKey: ""
7072
# Prefix for the imagepull secret created when using private registry
7173
registrySecretPrefix: "private-registry"
72-
7374
# limit specs, plans config
7475
config:
7576
metrics: ""
@@ -174,8 +175,6 @@ prometheus:
174175
global:
175176
# Admin email, used for each component to send email to administrator
176177
email: "drycc@drycc.cc"
177-
# GatewayClass is cluster-scoped resource defined by the infrastructure provider.
178-
gatewayClass: ""
179178
# A domain name consists of one or more parts.
180179
# Periods (.) are used to separate these parts.
181180
# Each part must be 1 to 63 characters in length and can contain lowercase letters, digits, and hyphens (-).

rootfs/api/models/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def listeners(self):
9393
return listeners
9494

9595
def refresh_to_k8s(self):
96-
kwargs = {"listeners": self.listeners, "gateway_class": settings.GATEWAY_CLASS}
96+
kwargs = {"listeners": self.listeners, "gateway_class": settings.DRYCC_APP_GATEWAY_CLASS}
9797
if self.app.tls_set.latest().certs_auto_enabled:
9898
kwargs["annotations"] = {"cert-manager.io/issuer": self.app.id}
9999
try:

rootfs/api/settings/production.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,6 @@
319319
else:
320320
MUTATE_KEY = None
321321

322-
# gateway class name
323-
GATEWAY_CLASS = os.environ.get('DRYCC_GATEWAY_CLASS', '')
324-
325322
IMAGE_PULL_POLICY = os.environ.get('IMAGE_PULL_POLICY', "IfNotPresent")
326323

327324
# apply task size
@@ -357,6 +354,8 @@
357354

358355
DRYCC_DEPLOY_HOOK_SECRET_KEY = os.environ.get('DRYCC_DEPLOY_HOOK_SECRET_KEY', None)
359356

357+
DRYCC_APP_GATEWAY_CLASS = os.environ.get('DRYCC_APP_GATEWAY_CLASS', "")
358+
360359
DRYCC_APP_STORAGE_CLASS = os.environ.get('DRYCC_APP_STORAGE_CLASS', "")
361360

362361
DRYCC_APP_DNS_POLICY = os.environ.get('DRYCC_APP_DNS_POLICY', "")

0 commit comments

Comments
 (0)