From cc48b06a3534c845db5f37ef5e178bb4fd2c8376 Mon Sep 17 00:00:00 2001 From: Bryce Palmer Date: Mon, 25 Sep 2023 12:39:14 -0400 Subject: [PATCH] switch release image repo to quay.io/operator-framework/ansible-operator (#12) Signed-off-by: Bryce Palmer --- Makefile | 4 ++-- hack/generate/samples/ansible/advanced_molecule.go | 4 ++-- hack/generate/samples/ansible/memcached_molecule.go | 2 +- .../ansible/v1/scaffolds/internal/templates/dockerfile.go | 2 +- testdata/memcached-molecule-operator/Dockerfile | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index cf09443..d2d8919 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ export GO111MODULE = on export CGO_ENABLED = 0 export PATH := $(PWD)/$(BUILD_DIR):$(PWD)/$(TOOLS_DIR):$(PATH) -export IMAGE_REPO ?= quay.io/operator-framework/ansible-operator-plugins +export IMAGE_REPO ?= quay.io/operator-framework/ansible-operator export IMAGE_TAG ?= dev ##@ Development @@ -93,7 +93,7 @@ DOCKER_PROGRESS = --progress plain endif image/%: export DOCKER_CLI_EXPERIMENTAL = enabled image/%: - docker buildx build $(DOCKER_PROGRESS) -t $(BUILD_IMAGE_REPO)/$*-plugins:dev -f ./images/$*/Dockerfile --load . --no-cache + docker buildx build $(DOCKER_PROGRESS) -t $(BUILD_IMAGE_REPO)/$*:$(IMAGE_TAG) -f ./images/$*/Dockerfile --load . --no-cache ##@ Release ## TODO: Add release targets here diff --git a/hack/generate/samples/ansible/advanced_molecule.go b/hack/generate/samples/ansible/advanced_molecule.go index efdf0cf..ae77ce0 100644 --- a/hack/generate/samples/ansible/advanced_molecule.go +++ b/hack/generate/samples/ansible/advanced_molecule.go @@ -201,8 +201,8 @@ func updateDockerfile(dir string) { log.Info("replacing project Dockerfile to use ansible base image with the dev tag") err := kbutil.ReplaceRegexInFile( filepath.Join(dir, "Dockerfile"), - "quay.io/operator-framework/ansible-operator-plugins:.*", - "quay.io/operator-framework/ansible-operator-plugins:dev") + "quay.io/operator-framework/ansible-operator:.*", + "quay.io/operator-framework/ansible-operator:dev") pkg.CheckError("replacing Dockerfile", err) log.Info("inserting code to Dockerfile") diff --git a/hack/generate/samples/ansible/memcached_molecule.go b/hack/generate/samples/ansible/memcached_molecule.go index ace5716..66fd97d 100644 --- a/hack/generate/samples/ansible/memcached_molecule.go +++ b/hack/generate/samples/ansible/memcached_molecule.go @@ -77,7 +77,7 @@ func ImplementMemcachedMolecule(sample sample.Sample, image string) { } log.Info("replacing project Dockerfile to use ansible base image with the dev tag") - err := kbutil.ReplaceRegexInFile(filepath.Join(sample.Dir(), "Dockerfile"), "quay.io/operator-framework/ansible-operator-plugins:.*", "quay.io/operator-framework/ansible-operator-plugins:dev") + err := kbutil.ReplaceRegexInFile(filepath.Join(sample.Dir(), "Dockerfile"), "quay.io/operator-framework/ansible-operator:.*", "quay.io/operator-framework/ansible-operator:dev") pkg.CheckError("replacing Dockerfile", err) log.Info("adding RBAC permissions") diff --git a/pkg/plugins/ansible/v1/scaffolds/internal/templates/dockerfile.go b/pkg/plugins/ansible/v1/scaffolds/internal/templates/dockerfile.go index a4838f1..a575bbc 100644 --- a/pkg/plugins/ansible/v1/scaffolds/internal/templates/dockerfile.go +++ b/pkg/plugins/ansible/v1/scaffolds/internal/templates/dockerfile.go @@ -54,7 +54,7 @@ func (f *Dockerfile) SetTemplateDefaults() error { return nil } -const dockerfileTemplate = `FROM quay.io/operator-framework/ansible-operator-plugins:{{ .AnsibleOperatorVersion }} +const dockerfileTemplate = `FROM quay.io/operator-framework/ansible-operator:{{ .AnsibleOperatorVersion }} COPY requirements.yml ${HOME}/requirements.yml RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \ diff --git a/testdata/memcached-molecule-operator/Dockerfile b/testdata/memcached-molecule-operator/Dockerfile index 03f22a2..dc47781 100644 --- a/testdata/memcached-molecule-operator/Dockerfile +++ b/testdata/memcached-molecule-operator/Dockerfile @@ -1,4 +1,4 @@ -FROM quay.io/operator-framework/ansible-operator-plugins:dev +FROM quay.io/operator-framework/ansible-operator:dev COPY requirements.yml ${HOME}/requirements.yml RUN ansible-galaxy collection install -r ${HOME}/requirements.yml \