Repository navigation
Open
simplyblock/documentation
#304Labels
Description
Context
The operator can already be deployed declaratively: cluster and node activation is CR-driven (#459), and OLM installation through Red Hat's certified-operators catalog is supported and documented (OpenShift installation). What remains is making both install paths sync cleanly under ArgoCD. State below is as of main at 70cd946.
Done
- OLM path exists:
OperatorGroup+Subscription(channel: alpha,source: certified-operators). OLM owns the CRDs, so the CRD-lifecycle problem below does not apply on OpenShift. templates/controlplane_configmap.yamlno longer useslookupfor the Prometheus config.- Core secrets already have a BYO skip via
externallyManagedSecret.
Remaining
OLM path (OpenShift)
- Pinned Subscription. The documented Subscription defaults to
installPlanApproval: Automaticwith nostartingCSV, so the installed version drifts from git. Document a pinned variant (Manual+startingCSV) and either an approval hook scoped to the pinned CSV or a documented approval step. - Replace imperative prerequisites with manifests.
oc adm policy add-scc-to-group privileged|anyuidandoc label namespacebecome a labeledNamespaceandClusterRoleBindings tosystem:openshift:scc:privileged/system:openshift:scc:anyuid. - Sync ordering. Namespace/SCC bindings → OperatorGroup/Subscription → ControlPlane and other CRs. The CRs need the CRD, which exists only after the CSV is
Succeeded, so the CR wave needsSkipDryRunOnMissingResource=trueor a CSV health check.
Helm path (non-OpenShift)
- CRDs out of
crds/. The simplyblock CRDs are still inhelm-charts/charts/simplyblock-operator/crds/, which Helm/Argo applies once and never upgrades. Move totemplates/crds/withargocd.argoproj.io/sync-wave: "-1"andhelm.sh/resource-policy: keep, and updatehelm-charts/scripts/sync-from-operator.shsomake helm-syncproduces the new layout. lookupcalls that misbehave underhelm template(Argo renders them as empty):templates/_control_center_helpers.tpl:59(sbcc.operatorUrl): always renders empty under Argo, so the console returns 503 on operator-backed screens unlesscontrolCenter.operatorUrlis set. Functional bug; fix first (e.g. default from the release's own values instead of a live lookup).templates/validate-controlplane.yaml:47(deployment.profile=emptyguard) and:69(guard against pruning an old release's control plane and FoundationDB): silently never fire under Argo. Not a drift source, but the FoundationDB protection does not exist there; document it or move the check into the operator.
Both paths
- Example ArgoCD manifests. An
Applicationfor each path (Helm chart; Namespace + SCC bindings + OperatorGroup + Subscription + CRs), with sync waves. None exist today. - (Optional) Observability secrets skip.
templates/controlplane_secret.yamlalways renderssimplyblock-grafana-secretsandsimplyblock-graylog-secretwhen observability is enabled; add a skip matchingexternallyManagedSecret. - Ops CR guidance. Document that hand-authored
*OpsCRs should not be auto-synced or self-healed.
Suggested order
5 (operatorUrl) and 4 are cheap and fix real Helm bugs independent of Argo. 1–3 are mostly documentation. 6 once there is a concrete consumer.
Activity