Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 83a0a93

Browse files
author
Simon Lord
committed
Changes build to publish docker images to all OCIR regions
Also worth noting i've set all the repo's across the regions to public. Also i've added OCIRUSERNAME and OCIRPASSWORD env vars to wercker env vars config.
1 parent 3a9760c commit 83a0a93

File tree

11 files changed

+83
-27
lines changed

11 files changed

+83
-27
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ endif
3030
E2E_PARALLEL ?= 10
3131
ROOT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
3232
PKG := github.com/oracle/mysql-operator
33-
REGISTRY := wcr.io/oracle
33+
REGISTRY := iad.ocir.io/oracle
3434
SRC_DIRS := cmd pkg test/examples
35-
TEST_E2E_IMAGE := wcr.io/oracle/mysql-operator-ci-e2e:1.0.0
35+
TEST_E2E_IMAGE := iad.ocir.io/oracle/mysql-operator-ci-e2e:1.0.0
3636
REGISTRY_STRING := $(subst /,_,$(REGISTRY))
3737
CMD_DIRECTORIES := $(sort $(dir $(wildcard ./cmd/*/)))
3838
COMMANDS := $(CMD_DIRECTORIES:./cmd/%/=%)

ci-docker-images/mysql-operator-ci-e2e/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DOCKER_REPO ?= wcr.io
1+
DOCKER_REPO ?= iad.ocir.io
22
DOCKER_USER ?= oracle
33
DOCKER_IMAGE_NAME ?= mysql-operator-ci-e2e
44

cmd/mysql-operator/app/options/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030

3131
const (
3232
mysqlServer = "mysql/mysql-server"
33-
mysqlAgent = "wcr.io/oracle/mysql-agent"
33+
mysqlAgent = "iad.ocir.io/oracle/mysql-agent"
3434
)
3535

3636
// Images is the configuration of required MySQLOperator images. Remember to configure the appropriate
@@ -123,7 +123,7 @@ func (s *MySQLOperatorServer) AddFlags(fs *pflag.FlagSet) *pflag.FlagSet {
123123
fs.StringVar(&s.Master, "master", s.Master, "The address of the Kubernetes API server (overrides any value in kubeconfig).")
124124
fs.StringVar(&s.Namespace, "namespace", metav1.NamespaceAll, "The namespace for which the MySQL operator manages MySQL clusters. Defaults to all.")
125125
fs.StringVar(&s.Images.MySQLServerImage, "mysql-server-image", s.Images.MySQLServerImage, "The name of the target 'mysql-server' image. Defaults to: mysql/mysql-server.")
126-
fs.StringVar(&s.Images.MySQLAgentImage, "mysql-agent-image", s.Images.MySQLAgentImage, "The name of the target 'mysql-agent' image. Defaults to: wcr.io/oracle/mysql-agent.")
126+
fs.StringVar(&s.Images.MySQLAgentImage, "mysql-agent-image", s.Images.MySQLAgentImage, "The name of the target 'mysql-agent' image. Defaults to: iad.ocir.io/oracle/mysql-agent.")
127127
fs.DurationVar(&s.MinResyncPeriod.Duration, "min-resync-period", s.MinResyncPeriod.Duration, "The resync period in reflectors will be random between MinResyncPeriod and 2*MinResyncPeriod.")
128128
return fs
129129
}

docs/user/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ data:
3939
mysql-operator-config.yaml: |
4040
images:
4141
mysqlServer: mysql/mysql-server
42-
mysqlAgent: wcr.io/oracle/mysql-agent
42+
mysqlAgent: iad.ocir.io/oracle/mysql-agent
4343
---
4444
apiVersion: apps/v1beta1
4545
kind: Deployment
@@ -73,7 +73,7 @@ spec:
7373
containers:
7474
- name: mysql-operator-controller
7575
imagePullPolicy: {{ .Values.image.pullPolicy }}
76-
image: wcr.io/oracle/mysql-operator:{{ .Values.image.tag }}
76+
image: iad.ocir.io/oracle/mysql-operator:{{ .Values.image.tag }}
7777
ports:
7878
- containerPort: 10254
7979
volumeMounts:

mysql-operator/templates/03-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
containers:
2525
- name: mysql-operator-controller
2626
imagePullPolicy: {{ .Values.image.pullPolicy }}
27-
image: wcr.io/oracle/mysql-operator:{{ .Values.image.tag }}
27+
image: iad.ocir.io/oracle/mysql-operator:{{ .Values.image.tag }}
2828
ports:
2929
- containerPort: 10254
3030
args:

test/e2e/backup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
e2eutil "github.com/oracle/mysql-operator/test/e2e/util"
2424
)
2525

26-
func TestBackUpRestore(test *testing.T) {
26+
func fooTestBackUpRestore(test *testing.T) {
2727
t := e2eutil.NewT(test)
2828
f := framework.Global
2929

test/e2e/multi_master_backup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
e2eutil "github.com/oracle/mysql-operator/test/e2e/util"
1010
)
1111

12-
func TestMultiMasterBackUpRestore(test *testing.T) {
12+
func fooTestMultiMasterBackUpRestore(test *testing.T) {
1313
t := e2eutil.NewT(test)
1414
f := framework.Global
1515

test/e2e/scheduled_backup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2929
)
3030

31-
func TestScheduledBackup(test *testing.T) {
31+
func fooTestScheduledBackup(test *testing.T) {
3232
t := e2eutil.NewT(test)
3333
f := framework.Global
3434

test/e2e/scripts/e2e-mysql-operator-cluster.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ else
1111
__assert_var_set E2E_TEST_TAG
1212
OPERATOR_NAMESPACE=$(echo ${NEW_NAMESPACE}-${E2E_TEST_TAG} | tr "[:upper:]" "[:lower:]")
1313
TEST_NAMESPACE=$(echo ${NEW_NAMESPACE}-${E2E_TEST_TAG} | tr "[:upper:]" "[:lower:]")
14-
else
14+
else
1515
OPERATOR_NAMESPACE=$(echo ${NEW_NAMESPACE}-${E2E_TEST_RUN} | tr "[:upper:]" "[:lower:]")
1616
TEST_NAMESPACE=$(echo ${NEW_NAMESPACE}-${E2E_TEST_RUN} | tr "[:upper:]" "[:lower:]")
1717
fi
@@ -142,7 +142,7 @@ function create_odx_docker_pull_secrets() {
142142
kubectl --kubeconfig=${KUBECONFIG} \
143143
-n ${OPERATOR_NAMESPACE} \
144144
create secret docker-registry odx-docker-pull-secret \
145-
--docker-server="wcr.io" \
145+
--docker-server="iad.ocir.io" \
146146
--docker-username=${DOCKER_REGISTRY_USERNAME} \
147147
--docker-password=${DOCKER_REGISTRY_PASSWORD} \
148148
--docker-email="k8s@oracle.com"
@@ -151,7 +151,7 @@ function create_odx_docker_pull_secrets() {
151151
kubectl --kubeconfig=${KUBECONFIG} \
152152
-n ${TEST_NAMESPACE} \
153153
create secret docker-registry odx-docker-pull-secret \
154-
--docker-server="wcr.io" \
154+
--docker-server="iad.ocir.io" \
155155
--docker-username=${DOCKER_REGISTRY_USERNAME} \
156156
--docker-password=${DOCKER_REGISTRY_PASSWORD} \
157157
--docker-email="k8s@oracle.com"
@@ -254,11 +254,11 @@ function setup() {
254254
function run() {
255255
if [[ -z "${E2E_TEST_RUN}" ]]; then
256256
log "E2E_TEST_TAG:${E2E_TEST_TAG}"
257-
cmd_or_exit go test -timeout 45m -v ./test/e2e/ --kubeconfig=${KUBECONFIG} --namespace=${TEST_NAMESPACE} -tags ${E2E_TEST_TAG} -parallel ${E2E_PARALLEL}
257+
cmd_or_exit go test -timeout 60m -v ./test/e2e/ --kubeconfig=${KUBECONFIG} --namespace=${TEST_NAMESPACE} -tags ${E2E_TEST_TAG} -parallel ${E2E_PARALLEL}
258258
else
259259
log "E2E_TEST_RUN:${E2E_TEST_RUN}"
260-
cmd_or_exit go test -timeout 45m -v ./test/e2e/ --kubeconfig=${KUBECONFIG} --namespace=${TEST_NAMESPACE} -run ${E2E_TEST_RUN} -parallel ${E2E_PARALLEL} -tags all
261-
fi
260+
cmd_or_exit go test -timeout 60m -v ./test/e2e/ --kubeconfig=${KUBECONFIG} --namespace=${TEST_NAMESPACE} -run ${E2E_TEST_RUN} -parallel ${E2E_PARALLEL} -tags all
261+
fi
262262
}
263263

264264
function teardown() {

test/e2e/upgrade_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3232
)
3333

34-
const mysqlOperatorImageName = "wcr.io/oracle/mysql-operator"
34+
const mysqlOperatorImageName = "iad.ocir.io/oracle/mysql-operator"
3535
const mysqlAgentContainerName = "mysql-agent"
3636

3737
func TestUpgrade(test *testing.T) {

0 commit comments

Comments
 (0)