From 38afc9be830006f091b7b1e627ddc6fa7989aef0 Mon Sep 17 00:00:00 2001 From: Prafull Ladha Date: Wed, 5 Feb 2025 22:16:12 +0530 Subject: [PATCH] Add Entrypoint to the docker image of cockroach-operator (#1084) --- cmd/cockroach-operator/BUILD.bazel | 2 ++ config/manager/deployment.yaml | 2 -- install/operator.yaml | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/cockroach-operator/BUILD.bazel b/cmd/cockroach-operator/BUILD.bazel index acf8d1d01..162310498 100644 --- a/cmd/cockroach-operator/BUILD.bazel +++ b/cmd/cockroach-operator/BUILD.bazel @@ -73,6 +73,7 @@ oci_image( "//cmd/cockroach-operator/linux-amd64:cockroach-linux-amd64-tar", ":operator_image_linux_amd64", ], + entrypoint = ["./cockroach-operator"], ) oci_image( @@ -85,6 +86,7 @@ oci_image( "//cmd/cockroach-operator/linux-arm64:cockroach-linux-arm64-tar", ":operator_image_linux_arm64", ], + entrypoint = ["./cockroach-operator"], ) pkg_tar( diff --git a/config/manager/deployment.yaml b/config/manager/deployment.yaml index d9c1f2fd6..e049f9ffc 100644 --- a/config/manager/deployment.yaml +++ b/config/manager/deployment.yaml @@ -33,8 +33,6 @@ spec: - name: cockroach-operator image: cockroachdb/cockroach-operator:latest imagePullPolicy: IfNotPresent - command: - - ./cockroach-operator args: - -zap-log-level - info diff --git a/install/operator.yaml b/install/operator.yaml index 646f09ed1..77b0f5269 100644 --- a/install/operator.yaml +++ b/install/operator.yaml @@ -384,8 +384,6 @@ spec: - args: - -zap-log-level - info - command: - - ./cockroach-operator env: - name: RELATED_IMAGE_COCKROACH_v21_1_0 value: cockroachdb/cockroach:v21.1.0