Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chart/templates/certificate-issuer.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{{- if .Values.cnpg.tls.certManager.createSelfSignedIssuer }}
{{- if .Values.cnpg.tls.certManager.createSelfSignedIssuer }}
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: {{ include "cnpg-plugin-wal-g.fullname" . }}-selfsigned
namespace: {{ .Release.Namespace }}
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
spec:
Expand Down
6 changes: 4 additions & 2 deletions chart/templates/certificates.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{{- if .Values.cnpg.tls.certManager.createClientCert }}
{{- if .Values.cnpg.tls.certManager.createClientCert }}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ include "cnpg-plugin-wal-g.fullname" . }}-client
namespace: {{ .Release.Namespace }}
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
spec:
Expand All @@ -23,11 +24,12 @@ spec:
group: cert-manager.io
---
{{- end }}
{{- if .Values.cnpg.tls.certManager.createServerCert }}
{{- if .Values.cnpg.tls.certManager.createServerCert }}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ include "cnpg-plugin-wal-g.fullname" . }}-server
namespace: {{ .Release.Namespace }}
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "cnpg-plugin-wal-g.fullname" . }}-controller-manager
namespace: {{ .Release.Namespace }}
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions chart/templates/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "cnpg-plugin-wal-g.fullname" . }}-leader-election-role
namespace: {{ .Release.Namespace }}
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
rules:
Expand Down
1 change: 1 addition & 0 deletions chart/templates/rbac/leader_election_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "cnpg-plugin-wal-g.fullname" . }}-leader-election-rb
namespace: {{ .Release.Namespace }}
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
roleRef:
Expand Down
1 change: 1 addition & 0 deletions chart/templates/rbac/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "cnpg-plugin-wal-g.fullname" . }}-controller-manager
namespace: {{ .Release.Namespace }}
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
2 changes: 2 additions & 0 deletions chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "cnpg-plugin-wal-g.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
cnpg.io/pluginName: cnpg-extensions.yandex.cloud
Expand Down Expand Up @@ -33,6 +34,7 @@ metadata:
labels:
{{- include "cnpg-plugin-wal-g.labels" . | nindent 4 }}
name: {{ include "cnpg-plugin-wal-g.fullname" . }}-webhook-service
namespace: {{ .Release.Namespace }}
spec:
type: ClusterIP
ports:
Expand Down
1 change: 1 addition & 0 deletions chart/templates/webhookconfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: cnpg-plugin-wal-g-mutating-webhook-configuration # FIXME: Should not be hardcoded, used in plugin to generate PKI
namespace: {{ .Release.namespace }}
webhooks:
- admissionReviewVersions:
- v1
Expand Down