From f8be5c8af16c92b48efad73860ba9ccb8e783f9e Mon Sep 17 00:00:00 2001 From: Naeel Date: Tue, 7 Apr 2026 14:43:41 +0300 Subject: [PATCH] feat(sqs-operator): v0.1.0 deployed and tested - Fix Dockerfile: COPY internal/config/ and internal/elasticmq/, Go 1.22 - config/manager/manager.yaml: add SQS_EXTERNAL_HOST env, imagePullSecrets - config/default/kustomization.yaml: disable kube-rbac-proxy (gcr.io N/A) - config/samples/sqs_v1alpha1_queueservice.yaml: real test CR (test001) - doc/progress.md: updated with deployment results Smoke test: QueueService test-tenant-001 Phase=Ready in 27s ElasticMQ pod 1/1 Running in sless-fn-test001 SQS CreateQueue via https://sqs.kube5s.ru/sqs/test001 OK --- sqs-operator/Dockerfile | 4 +++- sqs-operator/config/default/kustomization.yaml | 3 ++- .../config/samples/sqs_v1alpha1_queueservice.yaml | 8 ++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/sqs-operator/Dockerfile b/sqs-operator/Dockerfile index aca26f9..fb7383f 100644 --- a/sqs-operator/Dockerfile +++ b/sqs-operator/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.21 AS builder +FROM golang:1.22 AS builder ARG TARGETOS ARG TARGETARCH @@ -15,6 +15,8 @@ RUN go mod download COPY cmd/main.go cmd/main.go COPY api/ api/ COPY internal/controller/ internal/controller/ +COPY internal/config/ internal/config/ +COPY internal/elasticmq/ internal/elasticmq/ # Build # the GOARCH has not a default value to allow the binary be built according to the host where the command diff --git a/sqs-operator/config/default/kustomization.yaml b/sqs-operator/config/default/kustomization.yaml index 9981e56..6899354 100644 --- a/sqs-operator/config/default/kustomization.yaml +++ b/sqs-operator/config/default/kustomization.yaml @@ -27,10 +27,11 @@ resources: #- ../prometheus patches: +# [DISABLED] kube-rbac-proxy недоступен через gcr.io в этом кластере # Protect the /metrics endpoint by putting it behind auth. # If you want your controller-manager to expose the /metrics # endpoint w/o any authn/z, please comment the following line. -- path: manager_auth_proxy_patch.yaml +#- path: manager_auth_proxy_patch.yaml # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in # crd/kustomization.yaml diff --git a/sqs-operator/config/samples/sqs_v1alpha1_queueservice.yaml b/sqs-operator/config/samples/sqs_v1alpha1_queueservice.yaml index 881177d..e7611fd 100644 --- a/sqs-operator/config/samples/sqs_v1alpha1_queueservice.yaml +++ b/sqs-operator/config/samples/sqs_v1alpha1_queueservice.yaml @@ -4,6 +4,10 @@ metadata: labels: app.kubernetes.io/name: sqs-operator app.kubernetes.io/managed-by: kustomize - name: queueservice-sample + name: test-tenant-001 + namespace: sqs-operator-system spec: - # TODO(user): Add fields here + tenantId: "test001" + memoryMB: 64 + storageMB: 512 + persistence: true