From ba3a792d5aa1b49c7ba56b33cb88b90fc8093c1f Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Sun, 4 Aug 2024 10:45:43 +0200 Subject: [PATCH] chore: change release image versions (#121) Signed-off-by: tarilabs --- config/manager/manager.yaml | 2 +- config/overlays/odh/params.env | 4 ++-- internal/controller/config/defaults.go | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 15e6d7c..9a3c3ce 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -76,7 +76,7 @@ spec: - name: GRPC_IMAGE value: quay.io/opendatahub/mlmd-grpc-server:latest - name: REST_IMAGE - value: quay.io/opendatahub/model-registry:latest + value: quay.io/opendatahub/model-registry:v0.2.4 - name: ENABLE_WEBHOOKS value: "false" - name: CREATE_AUTH_RESOURCES diff --git a/config/overlays/odh/params.env b/config/overlays/odh/params.env index 2aa4030..93acda0 100644 --- a/config/overlays/odh/params.env +++ b/config/overlays/odh/params.env @@ -1,5 +1,5 @@ -IMAGES_MODELREGISTRY_OPERATOR=quay.io/opendatahub/model-registry-operator:latest +IMAGES_MODELREGISTRY_OPERATOR=quay.io/opendatahub/model-registry-operator:v0.2.4 IMAGES_GRPC_SERVICE=quay.io/opendatahub/mlmd-grpc-server:latest -IMAGES_REST_SERVICE=quay.io/opendatahub/model-registry:latest +IMAGES_REST_SERVICE=quay.io/opendatahub/model-registry:v0.2.4 CREATE_AUTH_RESOURCES=true DEFAULT_CERT= \ No newline at end of file diff --git a/internal/controller/config/defaults.go b/internal/controller/config/defaults.go index be349f2..d605885 100644 --- a/internal/controller/config/defaults.go +++ b/internal/controller/config/defaults.go @@ -18,10 +18,11 @@ package config import ( "embed" + "text/template" + "github.com/spf13/viper" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" - "text/template" ) //go:embed templates/*.yaml.tmpl @@ -32,7 +33,7 @@ const ( GrpcImage = "GRPC_IMAGE" RestImage = "REST_IMAGE" DefaultGrpcImage = "quay.io/opendatahub/mlmd-grpc-server:latest" - DefaultRestImage = "quay.io/opendatahub/model-registry:latest" + DefaultRestImage = "quay.io/opendatahub/model-registry:v0.2.4" RouteDisabled = "disabled" RouteEnabled = "enabled" )