Skip to content

Commit ba52a3d

Browse files
Jonathan S. Katzjkatz
authored andcommitted
Set new default registry
This defaults the registry to registry.developers.crunchydata.com/crunchydata Issue: [ch7976]
1 parent 09e07ca commit ba52a3d

File tree

12 files changed

+26
-21
lines changed

12 files changed

+26
-21
lines changed

conf/postgres-operator/pgo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Cluster:
2-
CCPImagePrefix: crunchydata
2+
CCPImagePrefix: registry.developers.crunchydata.com/crunchydata
33
Metrics: false
44
Badger: false
55
CCPImageTag: centos7-12.2-4.3.0
@@ -78,5 +78,5 @@ Storage:
7878
StorageClass: rook-ceph-block
7979
Pgo:
8080
Audit: false
81-
PGOImagePrefix: crunchydata
81+
PGOImagePrefix: registry.developers.crunchydata.com/crunchydata
8282
PGOImageTag: centos7-4.3.0

examples/envs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export PGO_CMD=kubectl
1818
export PGOROOT=$GOPATH/src/github.com/crunchydata/postgres-operator
1919

2020
# the version of the Operator you run is set by these vars
21-
export PGO_IMAGE_PREFIX=crunchydata
21+
export PGO_IMAGE_PREFIX=registry.developers.crunchydata.com/crunchydata
2222
export PGO_BASEOS=centos7
2323
export PGO_VERSION=4.3.0
2424
export PGO_IMAGE_TAG=$PGO_BASEOS-$PGO_VERSION

examples/load/sample-json-load-config-sc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PGOImagePrefix: crunchydata
1+
PGOImagePrefix: registry.developers.crunchydata.com/crunchydata
22
PGOImageTag: centos7-4.3.0
33
DbDatabase: userdb
44
DbUser: postgres

examples/load/sample-json-load-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PGOImagePrefix: crunchydata
1+
PGOImagePrefix: registry.developers.crunchydata.com/crunchydata
22
PGOImageTag: centos7-4.3.0
33
DbDatabase: userdb
44
DbUser: postgres

examples/load/sample-load-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PGOImagePrefix: crunchydata
1+
PGOImagePrefix: registry.developers.crunchydata.com/crunchydata
22
PGOImageTag: centos7-4.3.0
33
DbDatabase: userdb
44
DbUser: postgres

installers/ansible/inventory

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace='pgouser1,pgouser2'
9292
# Crunchy Container Suite images to use. The tags centos7 and rhel7 are acceptable.
9393
# CentOS7 images can be found in dockerhub: https://hub.docker.com/u/crunchydata
9494
# RHEL7 images are available to Crunchy customers: https://access.crunchydata.com/login/
95-
ccp_image_prefix='crunchydata'
95+
ccp_image_prefix='registry.developers.crunchydata.com/crunchydata'
9696
ccp_image_tag='centos7-12.2-4.3.0'
9797

9898
# Name of a Secret containing credentials for container image registries.
@@ -101,7 +101,7 @@ ccp_image_pull_secret=''
101101
ccp_image_pull_secret_manifest=''
102102

103103
# Crunchy PostgreSQL Operator images to use. The tags centos7 and rhel7 are acceptable.
104-
pgo_image_prefix='crunchydata'
104+
pgo_image_prefix='registry.developers.crunchydata.com/crunchydata'
105105
pgo_image_tag='centos7-4.3.0'
106106

107107
# Name of a Secret containing credentials for container image registries.

installers/gcp-marketplace/inventory.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ pgo_installation_name='${OPERATOR_NAME}'
1515
pgo_operator_namespace='${OPERATOR_NAMESPACE}'
1616
namespace=''
1717

18-
ccp_image_prefix='docker.io/crunchydata'
18+
ccp_image_prefix='registry.developers.crunchydata.com/crunchydata'
1919
ccp_image_tag='centos7-12.2-4.3.0'
2020
ccp_image_pull_secret=''
2121
ccp_image_pull_secret_manifest=''
22-
pgo_image_prefix='docker.io/crunchydata'
22+
pgo_image_prefix='registry.developers.crunchydata.com/crunchydata'
2323
pgo_image_tag='centos7-4.3.0'
2424

2525
pgo_image='${OPERATOR_IMAGE}'

installers/kubectl/postgres-operator.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
containers:
3535
- name: pgo-deploy
3636
command: ["/pgo-deploy.sh"]
37-
image: crunchydata/pgo-deployer:centos7-4.3.0
37+
image: registry.developers.crunchydata.com/crunchydata/pgo-deployer:centos7-4.3.0
3838
imagePullPolicy: IfNotPresent
3939
env:
4040
- name: ANSIBLE_CONFIG
@@ -52,7 +52,7 @@ spec:
5252
- name: CREATE_RBAC
5353
value: "true"
5454
- name: CCP_IMAGE_PREFIX
55-
value: "crunchydata"
55+
value: "registry.developers.crunchydata.com/crunchydata"
5656
- name: CCP_IMAGE_TAG
5757
value: "centos7-12.2-4.3.0"
5858
- name: DB_PASSWORD_LENGTH
@@ -96,7 +96,7 @@ spec:
9696
- name: PGO_CLIENT_VERSION
9797
value: "v4.3.0"
9898
- name: PGO_IMAGE_PREFIX
99-
value: "crunchydata"
99+
value: "registry.developers.crunchydata.com/crunchydata"
100100
- name: PGO_IMAGE_TAG
101101
value: "centos7-4.3.0"
102102
- name: PGO_INSTALLATION_NAME

installers/olm/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.DEFAULT_GOAL := help
22

3-
CCP_IMAGE_PREFIX ?= crunchydata
3+
CCP_IMAGE_PREFIX ?= registry.developers.crunchydata.com/crunchydata
44
CCP_IMAGE_TAG ?= $(PGO_BASEOS)-$(CCP_PG_FULLVERSION)-$(PGO_VERSION)
55
CCP_PG_FULLVERSION ?= 12.2
66
KUBECONFIG ?= $(HOME)/.kube/config
77
OLM_TOOLS ?= registry.localhost:5000/postgres-operator-olm-tools:$(OLM_VERSION)
88
OLM_VERSION ?= 0.13.0
99
PGO_BASEOS ?= centos7
10-
PGO_IMAGE_PREFIX ?= crunchydata
10+
PGO_IMAGE_PREFIX ?= registry.developers.crunchydata.com/crunchydata
1111
PGO_IMAGE_TAG ?= $(PGO_BASEOS)-$(PGO_VERSION)
1212
PGO_VERSION ?= 4.3.0
1313

operator/common.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ import (
2828
"k8s.io/client-go/kubernetes"
2929
)
3030

31+
const (
32+
// defaultRegistry is the default registry to pull the container images from
33+
defaultRegistry = "registry.developers.crunchydata.com/crunchydata"
34+
)
35+
3136
var CRUNCHY_DEBUG bool
3237
var NAMESPACE string
3338

@@ -90,14 +95,14 @@ func Initialize(clientset *kubernetes.Clientset) {
9095
log.Printf("PrimaryStorage=%v\n", Pgo.Storage["storage1"])
9196

9297
if Pgo.Cluster.CCPImagePrefix == "" {
93-
log.Debug("pgo.yaml CCPImagePrefix not set, using default")
94-
Pgo.Cluster.CCPImagePrefix = "crunchydata"
98+
log.Debugf("pgo.yaml CCPImagePrefix not set, using default %q", defaultRegistry)
99+
Pgo.Cluster.CCPImagePrefix = defaultRegistry
95100
} else {
96101
log.Debugf("pgo.yaml CCPImagePrefix set, using %s", Pgo.Cluster.CCPImagePrefix)
97102
}
98103
if Pgo.Pgo.PGOImagePrefix == "" {
99-
log.Debug("pgo.yaml PGOImagePrefix not set, using default")
100-
Pgo.Pgo.PGOImagePrefix = "crunchydata"
104+
log.Debugf("pgo.yaml PGOImagePrefix not set, using default %q", defaultRegistry)
105+
Pgo.Pgo.PGOImagePrefix = defaultRegistry
101106
} else {
102107
log.Debugf("PGOImagePrefix set, using %s", Pgo.Pgo.PGOImagePrefix)
103108
}

0 commit comments

Comments
 (0)