-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for OLM style deployments (#662)
When publishing the 2.0.0 operator in operatorhub.io/OpenShift, I came across a few issues that were preventing it. This change addresses that. A summary of the changes are: - use a new channel for the 2.0.0 release. We are switching from a namespace scoped operator to a cluster scoped operator, so we need to define a new channel to prevent upgrading from the 1.x.x operator to the 2.x.x operator. The new channel is called v2-stable (the old channel was stable). - change the minimum Kubernetes version from 1.21.1 to 1.21.0. There is no change in our support, but to get the operator on OpenShift we had to drop the x.x.1 to be compatible with OCP 4.8. - don't allow the operator CRD write permissions of OLM style deployments. We added CRD write permissions so that the operator can update the conversion webhook, which is stored in the CRD, with the CA bundle of the webhook cert. OLM style deployments handle this themselves, so the operator does not need to do anything. This also required us to upgrade OLM in our tests from 0.22.0 to 0.26.0. The old version we were using didn't automatically update the conversion webhook.
- Loading branch information
spilchen
authored
Jan 11, 2024
1 parent
cf5f0bf
commit 6245715
Showing
11 changed files
with
59 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: Changed | ||
body: Drop CRD write permissions for OLM style deployments | ||
time: 2024-01-11T10:42:41.589206787-04:00 | ||
custom: | ||
Issue: "662" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1971,7 +1971,7 @@ spec: | |
- email: [email protected] | ||
name: Matt Spilchen | ||
maturity: stable | ||
minKubeVersion: 1.21.1 | ||
minKubeVersion: 1.21.0 | ||
provider: | ||
name: Vertica | ||
url: http://www.vertica.com | ||
|
18 changes: 18 additions & 0 deletions
18
helm-charts/verticadb-operator/tests/manager-role_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
suite: Manager ClusterRole | ||
templates: | ||
- verticadb-operator-manager-role-cr.yaml | ||
tests: | ||
- it: should have CRD update permissions by default | ||
asserts: | ||
- contains: | ||
path: rules | ||
content: | ||
apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters