generated from pravega/pravega-operator
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changes for controller runtime upgrade (#72)
* Initial changes for controller runtime upgrade Signed-off-by: anisha.kj <anisha.kj@dell.com> * Made documentation and chart changes Signed-off-by: anisha.kj <anisha.kj@dell.com> * Added upgrade changes for operator Signed-off-by: anisha.kj <anisha.kj@dell.com> * Fixed typo Signed-off-by: anisha.kj <anisha.kj@dell.com> * modified the doc Signed-off-by: anisha.kj <anisha.kj@dell.com> * Added steps for manual upgrade Signed-off-by: anisha.kj <anisha.kj@dell.com> * Addressed review comments Signed-off-by: anisha.kj <anisha.kj@dell.com> * Changed the name of certificate Signed-off-by: anisha.kj <anisha.kj@dell.com>
- Loading branch information
Showing
33 changed files
with
2,362 additions
and
818 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,46 @@ | ||
{{- if .Values.webhookCert.generate }} | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Issuer | ||
metadata: | ||
name: {{ template "bookkeeper-operator.fullname" . }}-issuer | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{ include "bookkeeper-operator.commonLabels" . | indent 4 }} | ||
spec: | ||
ca: | ||
secretName: {{ template "bookkeeper-operator.fullname" . }}-key-pair | ||
{{- end }} | ||
--- | ||
{{- if .Values.webhookCert.generate }} | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Certificate | ||
metadata: | ||
name: {{ template "bookkeeper-operator.fullname" . }}-cert-bk | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{ include "bookkeeper-operator.commonLabels" . | indent 4 }} | ||
spec: | ||
isCA: true | ||
duration: 8760h | ||
renewBefore: 360h | ||
secretName: {{ template "bookkeeper-operator.fullname" . }}-cert-tls-bk | ||
commonName: bookkeeper-webhook-svc.{{ .Release.Namespace }}.svc.cluster.local | ||
dnsNames: | ||
- bookkeeper-webhook-svc | ||
- bookkeeper-webhook-svc.{{ .Release.Namespace }}.svc.cluster.local | ||
- bookkeeper-webhook-svc.{{ .Release.Namespace }}.svc | ||
issuerRef: | ||
name: {{ template "bookkeeper-operator.fullname" . }}-issuer | ||
{{- end }} | ||
--- | ||
{{- if .Values.webhookCert.generate }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "bookkeeper-operator.fullname" . }}-key-pair | ||
namespace: {{ .Release.Namespace }} | ||
type: kubernetes.io/tls | ||
data: | ||
tls.crt: {{ .Values.webhookCert.crt }} | ||
tls.key: {{ .Values.webhookCert.key }} | ||
{{- end }} |
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,45 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: bookkeeper-webhook-svc | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{ include "bookkeeper-operator.commonLabels" . | indent 4 }} | ||
spec: | ||
ports: | ||
- port: 443 | ||
protocol: TCP | ||
targetPort: 443 | ||
selector: | ||
component: bookkeeper-operator | ||
sessionAffinity: None | ||
type: ClusterIP | ||
--- | ||
|
||
apiVersion: admissionregistration.k8s.io/v1beta1 | ||
kind: ValidatingWebhookConfiguration | ||
metadata: | ||
name: bookkeeper-webhook-config | ||
labels: | ||
{{ include "bookkeeper-operator.commonLabels" . | indent 4 }} | ||
annotations: | ||
cert-manager.io/inject-ca-from: {{ .Release.Namespace }}/{{ .Values.certName }} | ||
webhooks: | ||
- clientConfig: | ||
service: | ||
name: bookkeeper-webhook-svc | ||
namespace: {{ .Release.Namespace }} | ||
path: /validate-bookkeeper-pravega-io-v1beta1-bookkeepercluster | ||
name: bookkeeperwebhook.pravega.io | ||
rules: | ||
- apiGroups: | ||
- bookkeeper.pravega.io | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- bookkeeperclusters | ||
scope: "*" | ||
timeoutSeconds: 30 |
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,22 @@ | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Issuer | ||
metadata: | ||
name: selfsigned-issuer-bk | ||
namespace: default | ||
spec: | ||
selfSigned: {} | ||
--- | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: Certificate | ||
metadata: | ||
name: selfsigned-cert-bk | ||
namespace: default | ||
spec: | ||
secretName: selfsigned-cert-tls-bk | ||
commonName: bookkeeper-webhook-svc.default.svc.cluster.local | ||
dnsNames: | ||
- bookkeeper-webhook-svc | ||
- bookkeeper-webhook-svc.default.svc.cluster.local | ||
- bookkeeper-webhook-svc.default.svc | ||
issuerRef: | ||
name: selfsigned-issuer-bk |
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,41 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: bookkeeper-webhook-svc | ||
namespace: default | ||
spec: | ||
ports: | ||
- port: 443 | ||
protocol: TCP | ||
targetPort: 443 | ||
selector: | ||
component: bookkeeper-operator | ||
sessionAffinity: None | ||
type: ClusterIP | ||
--- | ||
|
||
apiVersion: admissionregistration.k8s.io/v1beta1 | ||
kind: ValidatingWebhookConfiguration | ||
metadata: | ||
name: bookkeeper-webhook-config | ||
annotations: | ||
cert-manager.io/inject-ca-from: default/selfsigned-cert-bk | ||
webhooks: | ||
- clientConfig: | ||
service: | ||
name: bookkeeper-webhook-svc | ||
namespace: default | ||
path: /validate-bookkeeper-pravega-io-v1alpha1-bookkeepercluster | ||
name: bookkeeperwebhook.pravega.io | ||
rules: | ||
- apiGroups: | ||
- bookkeeper.pravega.io | ||
apiVersions: | ||
- v1alpha1 | ||
operations: | ||
- CREATE | ||
- UPDATE | ||
resources: | ||
- bookkeeperclusters | ||
scope: "*" | ||
timeoutSeconds: 30 |
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
Oops, something went wrong.