Skip to content

Commit 5986b60

Browse files
committed
chore(registry): rename DRYCC_REGISTRY_SERVICE to DRYCC_REGISTRY_PROXY
1 parent 527be1e commit 5986b60

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

charts/builder/templates/builder-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ spec:
4343
{{- end}}
4444
env:
4545
# NOTE(bacongobbler): use drycc/registry_proxy to work around Docker --insecure-registry requirements
46-
- name: "DRYCC_REGISTRY_SERVICE_HOST"
46+
- name: "DRYCC_REGISTRY_PROXY_HOST"
4747
value: "127.0.0.1"
48-
- name: "DRYCC_REGISTRY_SERVICE_PORT"
48+
- name: "DRYCC_REGISTRY_PROXY_PORT"
4949
value: "{{ .Values.global.registry_service_port }}"
5050
- name: "HEALTH_SERVER_PORT"
5151
value: "8092"
@@ -56,7 +56,7 @@ spec:
5656
- name: "DRYCC_REGISTRY_LOCATION"
5757
value: "{{ .Values.global.registry_location }}"
5858
- name: "DRYCC_REGISTRY_SECRET_PREFIX"
59-
value: "{{ .Values.global.secret_prefix }}"
59+
value: "{{ .Values.global.registry_secret_prefix }}"
6060
# Set GIT_LOCK_TIMEOUT to number of minutes you want to wait to git push again to the same repository
6161
- name: "GIT_LOCK_TIMEOUT"
6262
value: "10"

pkg/gitreceive/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ type Config struct {
1616
// k8s service discovery env vars
1717
ControllerHost string `envconfig:"DRYCC_CONTROLLER_SERVICE_HOST" required:"true"`
1818
ControllerPort string `envconfig:"DRYCC_CONTROLLER_SERVICE_PORT" required:"true"`
19-
RegistryHost string `envconfig:"DRYCC_REGISTRY_SERVICE_HOST" required:"true"`
20-
RegistryPort string `envconfig:"DRYCC_REGISTRY_SERVICE_PORT" required:"true"`
19+
RegistryHost string `envconfig:"DRYCC_REGISTRY_PROXY_HOST" required:"true"`
20+
RegistryPort string `envconfig:"DRYCC_REGISTRY_PROXY_PORT" required:"true"`
2121
RegistryLocation string `envconfig:"DRYCC_REGISTRY_LOCATION" default:"on-cluster"`
2222
RegistrySecretPrefix string `envconfig:"DRYCC_REGISTRY_SECRET_PREFIX" default:"private-registry"`
2323

pkg/gitreceive/k8s_util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ func dockerBuilderPod(
8787
addEnvToPod(pod, sourceVersion, gitShortHash)
8888
addEnvToPod(pod, "IMG_NAME", imageName)
8989
addEnvToPod(pod, builderStorage, storageType)
90-
// inject existing DRYCC_REGISTRY_SERVICE_HOST and PORT info to dockerbuilder
90+
// inject existing DRYCC_REGISTRY_PROXY_HOST and PORT info to dockerbuilder
9191
// see https://github.com/drycc/dockerbuilder/issues/83
92-
addEnvToPod(pod, "DRYCC_REGISTRY_SERVICE_HOST", registryHost)
93-
addEnvToPod(pod, "DRYCC_REGISTRY_SERVICE_PORT", registryPort)
92+
addEnvToPod(pod, "DRYCC_REGISTRY_PROXY_HOST", registryHost)
93+
addEnvToPod(pod, "DRYCC_REGISTRY_PROXY_PORT", registryPort)
9494

9595
for key, value := range registryEnv {
9696
addEnvToPod(pod, key, value)

0 commit comments

Comments
 (0)