Fix Redis CR apiVersion/schema - v1beta2 doesn't exist, blocked whole nextcloud sync

apps/nextcloud/manifests/redis-cr.yaml used redis.redis.opstreelabs.in/v1beta2
(guessed, flagged as unverified when written) - the actually-installed CRD
only has v1beta1. ArgoCD validates all resource API groups/versions before
syncing anything, so this one bad apiVersion blocked the ENTIRE nextcloud
Application from syncing at all (every resource showed OutOfSync, not just
this one).

Also fixed against the live CRD schema: redisSecret belongs nested under
kubernetesConfig, not top-level, and redisExporter.image is required by the
schema even when enabled: false.

Verified live: kubectl apply succeeded and the Redis resource was created
before committing this.
This commit is contained in:
Scooby Husky
2026-08-17 16:56:20 -05:00
parent 7b3669e9a6
commit a8b16fa4cb
+12 -8
View File
@@ -5,10 +5,12 @@
# (apps/gitlab/manifests/redis-cluster.yaml), not this operator. This is the # (apps/gitlab/manifests/redis-cluster.yaml), not this operator. This is the
# first real consumer of it in the repo. # first real consumer of it in the repo.
# #
# NOTE: verify this CR against `kubectl explain redis.spec` (or the chart's # Verified against the live CRD (redis.redis.redis.opstreelabs.in) 2026-08-17:
# CRD source) for the redis-operator 0.15.0 actually deployed before first # apiVersion is v1beta1, not v1beta2 as originally guessed here (blocked
# apply - the ot-container-kit CRD schema has shifted across versions and # ArgoCD from syncing the *entire* nextcloud Application - it validates all
# this wasn't checked against a live cluster. # resource types up front, so one unknown apiVersion blocks everything, not
# just this resource). redisSecret also belongs nested under
# kubernetesConfig, not top-level.
apiVersion: generators.external-secrets.io/v1alpha1 apiVersion: generators.external-secrets.io/v1alpha1
kind: Password kind: Password
metadata: metadata:
@@ -41,7 +43,7 @@ spec:
kind: Password kind: Password
name: nextcloud-redis-password name: nextcloud-redis-password
--- ---
apiVersion: redis.redis.opstreelabs.in/v1beta2 apiVersion: redis.redis.opstreelabs.in/v1beta1
kind: Redis kind: Redis
metadata: metadata:
name: redis-nextcloud name: redis-nextcloud
@@ -57,11 +59,13 @@ spec:
limits: limits:
cpu: 250m cpu: 250m
memory: 256Mi memory: 256Mi
redisSecret:
name: redis-nextcloud-secret
key: password
redisExporter: redisExporter:
# image is required by the CRD schema even when enabled: false
enabled: false enabled: false
redisSecret: image: quay.io/opstree/redis-exporter:v1.44.0
name: redis-nextcloud-secret
key: password
storage: storage:
volumeClaimTemplate: volumeClaimTemplate:
spec: spec: