Skip to content

Commit 152012f

Browse files
committed
chore(registry): remove registry_secret_prefix
1 parent 43d0825 commit 152012f

4 files changed

Lines changed: 0 additions & 10 deletions

File tree

charts/controller/templates/controller-deployment.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ spec:
7171
value: "{{ .Values.global.storage}}"
7272
- name: "DRYCC_REGISTRY_LOCATION"
7373
value: "{{ .Values.global.registry_location }}"
74-
- name: "DRYCC_REGISTRY_SECRET_PREFIX"
75-
value: "{{ .Values.global.registry_secret_prefix }}"
7674
- name: "IMAGE_PULL_POLICY"
7775
value: "{{ .Values.app_pull_policy }}"
7876
- name: "TZ"

charts/controller/values.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,9 @@ global:
4747
# Valid values are:
4848
# - on-cluster: Run registry within the Kubernetes cluster
4949
# - off-cluster: Use registry outside the Kubernetes cluster (example: dockerhub,quay.io,self-hosted)
50-
# - ecr: Use Amazon's ECR
51-
# - gcr: Use Google's GCR
5250
registry_location: "on-cluster"
5351
# The host port to which registry proxy binds to
5452
registry_service_port: 5555
55-
# Prefix for the imagepull secret created when using private registry
56-
registry_secret_prefix: "private-registry"
5753
# Role-Based Access Control for Kubernetes >= 1.5
5854
use_rbac: false
5955
# Please check `kubernetes.io/ingress.class`

rootfs/api/models/app.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,6 @@ def image_pull_secret(self, namespace, registry, image):
10761076
return name
10771077

10781078
def _get_private_registry_config(self, image, registry=None):
1079-
name = settings.REGISTRY_SECRET_PREFIX
10801079
if registry:
10811080
# try to get the hostname information
10821081
hostname = registry.get('hostname', None)
@@ -1097,8 +1096,6 @@ def _get_private_registry_config(self, image, registry=None):
10971096
if hostname == '':
10981097
hostname = 'https://index.docker.io/v1/'
10991098
name = name + '-' + settings.REGISTRY_LOCATION
1100-
elif settings.REGISTRY_LOCATION in ['ecr', 'gcr']:
1101-
return None, name + '-' + settings.REGISTRY_LOCATION, False
11021099
else:
11031100
return None, None, None
11041101

rootfs/api/settings/production.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@
341341
REGISTRY_PORT = os.environ.get('DRYCC_REGISTRY_PROXY_PORT', 5000)
342342
REGISTRY_URL = '{}:{}'.format(REGISTRY_HOST, REGISTRY_PORT)
343343
REGISTRY_LOCATION = os.environ.get('DRYCC_REGISTRY_LOCATION', 'on-cluster')
344-
REGISTRY_SECRET_PREFIX = os.environ.get('DRYCC_REGISTRY_SECRET_PREFIX', 'private-registry')
345344

346345
# logger settings
347346
LOGGER_HOST = os.environ.get('DRYCC_LOGGER_SERVICE_HOST', '127.0.0.1')

0 commit comments

Comments
 (0)