From 7a71d3ef921f23877454563607146abdc2a39cd0 Mon Sep 17 00:00:00 2001 From: Steven Hawkins Date: Mon, 21 Aug 2023 10:07:14 -0400 Subject: [PATCH] removing the quarkus-minikube dependency (#22521) Closes #22517 --- operator/README.md | 3 ++- operator/pom.xml | 4 ---- operator/src/main/kubernetes/kustomization.yml | 5 +---- operator/src/main/kubernetes/minikube.yml | 1 - 4 files changed, 3 insertions(+), 10 deletions(-) delete mode 120000 operator/src/main/kubernetes/minikube.yml diff --git a/operator/README.md b/operator/README.md index e9628d9140..6204cf94d6 100644 --- a/operator/README.md +++ b/operator/README.md @@ -52,12 +52,13 @@ eval $(minikube -p minikube docker-env) Compile the project and generate the Docker image with JIB: ```bash -mvn clean package -Dquarkus.container-image.build=true -Dquarkus.kubernetes.deployment-target=minikube +mvn clean package -Dquarkus.kubernetes.image-pull-policy=IfNotPresent -Dquarkus.container-image.build=true ``` Install the CRD definition and the operator in the cluster in the `keycloak` namespace: ```bash +kubectl create namespace keycloak kubectl apply -k target ``` diff --git a/operator/pom.xml b/operator/pom.xml index db0fa4ed92..e2331ec1ae 100644 --- a/operator/pom.xml +++ b/operator/pom.xml @@ -82,10 +82,6 @@ io.quarkus quarkus-openshift - - io.quarkus - quarkus-minikube - io.quarkus quarkus-kubernetes-client diff --git a/operator/src/main/kubernetes/kustomization.yml b/operator/src/main/kubernetes/kustomization.yml index f3c53b1141..4ca5d8f50d 100644 --- a/operator/src/main/kubernetes/kustomization.yml +++ b/operator/src/main/kubernetes/kustomization.yml @@ -6,7 +6,4 @@ namespace: keycloak resources: - kubernetes/keycloaks.k8s.keycloak.org-v1.yml - kubernetes/keycloakrealmimports.k8s.keycloak.org-v1.yml - - kubernetes/kubernetes.yml - -patchesStrategicMerge: - - kubernetes/minikube.yml + - kubernetes/kubernetes.yml \ No newline at end of file diff --git a/operator/src/main/kubernetes/minikube.yml b/operator/src/main/kubernetes/minikube.yml deleted file mode 120000 index 88d25d0718..0000000000 --- a/operator/src/main/kubernetes/minikube.yml +++ /dev/null @@ -1 +0,0 @@ -kubernetes.yml \ No newline at end of file