Skip to content

Commit 3a7a6de

Browse files
authored
chore: crds are installed by the operator (#866)
1 parent 7e6271b commit 3a7a6de

2 files changed

Lines changed: 5 additions & 59 deletions

File tree

modules/ROOT/partials/release-notes/release-template.adoc

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -183,35 +183,8 @@ Use "stackablectl release list" to list available releases.
183183
# ...
184184
----
185185

186-
Afterwards you will need to upgrade the CustomResourceDefinitions (CRDs) installed by the Stackable Platform.
187-
The reason for this is that helm will uninstall the operators but not the CRDs.
188-
This can be done using `kubectl replace`.
189-
190-
[source,shell]
191-
----
192-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/airflow-operator/YY.M.X/extra/crds.yaml
193-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/commons-operator/YY.M.X/extra/crds.yaml
194-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/druid-operator/YY.M.X/extra/crds.yaml
195-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/hbase-operator/YY.M.X/extra/crds.yaml
196-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/hdfs-operator/YY.M.X/extra/crds.yaml
197-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/hive-operator/YY.M.X/extra/crds.yaml
198-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/kafka-operator/YY.M.X/extra/crds.yaml
199-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/listener-operator/YY.M.X/extra/crds.yaml
200-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/nifi-operator/YY.M.X/extra/crds.yaml
201-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/opa-operator/YY.M.X/extra/crds.yaml
202-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/spark-k8s-operator/YY.M.X/extra/crds.yaml
203-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/superset-operator/YY.M.X/extra/crds.yaml
204-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/trino-operator/YY.M.X/extra/crds.yaml
205-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/zookeeper-operator/YY.M.X/extra/crds.yaml
206-
----
207-
208-
[source]
209-
----
210-
customresourcedefinition.apiextensions.k8s.io "airflowclusters.airflow.stackable.tech" replaced
211-
customresourcedefinition.apiextensions.k8s.io "authenticationclasses.authentication.stackable.tech" replaced
212-
customresourcedefinition.apiextensions.k8s.io "s3connections.s3.stackable.tech" replaced
213-
...
214-
----
186+
The operators maintain their own CustomResourceDefinitions (CRDs) and update them automatically on startup, so no manual CRD upgrade step is required.
187+
See xref:concepts:maintenance/crds.adoc[] for details.
215188

216189
Install the `YY.M` release
217190

@@ -238,35 +211,8 @@ release "commons-operator" uninstalled
238211
...
239212
----
240213

241-
Afterward you will need to upgrade the CustomResourceDefinitions (CRDs) installed by the Stackable Platform.
242-
The reason for this is that helm will uninstall the operators but not the CRDs.
243-
This can be done using `kubectl replace`.
244-
245-
[source,shell]
246-
----
247-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/airflow-operator/YY.M.X/extra/crds.yaml
248-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/commons-operator/YY.M.X/extra/crds.yaml
249-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/druid-operator/YY.M.X/extra/crds.yaml
250-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/hbase-operator/YY.M.X/extra/crds.yaml
251-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/hdfs-operator/YY.M.X/extra/crds.yaml
252-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/hive-operator/YY.M.X/extra/crds.yaml
253-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/kafka-operator/YY.M.X/extra/crds.yaml
254-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/listener-operator/YY.M.X/extra/crds.yaml
255-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/nifi-operator/YY.M.X/extra/crds.yaml
256-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/opa-operator/YY.M.X/extra/crds.yaml
257-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/spark-k8s-operator/YY.M.X/extra/crds.yaml
258-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/superset-operator/YY.M.X/extra/crds.yaml
259-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/trino-operator/YY.M.X/extra/crds.yaml
260-
kubectl replace -f https://raw.githubusercontent.com/stackabletech/zookeeper-operator/YY.M.X/extra/crds.yaml
261-
----
262-
263-
[source]
264-
----
265-
customresourcedefinition.apiextensions.k8s.io "airflowclusters.airflow.stackable.tech" replaced
266-
customresourcedefinition.apiextensions.k8s.io "authenticationclasses.authentication.stackable.tech" replaced
267-
customresourcedefinition.apiextensions.k8s.io "s3connections.s3.stackable.tech" replaced
268-
...
269-
----
214+
The operators maintain their own CustomResourceDefinitions (CRDs) and update them automatically on startup, so no manual CRD upgrade step is required.
215+
See xref:concepts:maintenance/crds.adoc[] for details.
270216

271217
Install the `YY.M` release
272218

modules/concepts/pages/operations/cluster_operations.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ $ kubectl patch zookeepercluster/simple-zk --patch '{"spec": {"clusterOperation"
5353
[source,shell]
5454
----
5555
$ stackablectl operator uninstall zookeeper
56-
$ # Replace CRD with new version, e.g. kubectl replace -f https://raw.githubusercontent.com/stackabletech/zookeeper-operator/24.7.0/extra/crds.yaml
56+
$ # The operator maintains its own CRD and updates it automatically on startup; no manual CRD step is needed.
5757
$ stackablectl operator install zookeeper=24.7.0 # choose your version
5858
----
5959

0 commit comments

Comments
 (0)