-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(icm): enable encryption volume (#653)
BREAKING_CHANGE
- Loading branch information
Showing
22 changed files
with
497 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ options: | |
- Subject | ||
notes: | ||
keywords: | ||
- BREAKING CHANGE | ||
- BREAKING_CHANGE |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Detailed changes | ||
|
||
## values.yaml | ||
|
||
| Modification type | Description | Severity | Additional Notes | | ||
|:-----------------:|-----------------------------------------------------------------------------------------------------|:---------------------------------------:|-------------------------------------------------------------------| | ||
| ADD | mandatory section `persistence.encryption` has been added | <span style="color:red">BREAKING</span> | | | ||
| ADD | sections `persistence.sites` and `persistence.encryption` now additinally support the type `static` | <span style="color:green">MINOR</span> | realizes static provisioning using an existing `PersistentVolume` | | ||
|
||
|
||
## Infrastructure requirements | ||
|
||
| Modification type | Description | Severity | Additional Notes | | ||
|:-----------------:|---------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------:|---------------------------------------------------------| | ||
| ADD | storage for `persistence.encryption` has to be provived | <span style="color:red">BREAKING</span> | additional storage has to be provided by infrastructure | | ||
| ADD | support for type `static` in sections `persistence.sites` and `persistence.encryption` allows to reference `PersistentVolume`s provided by the infrastructure | <span style="color:green">MINOR</span> | | | ||
|
||
## Compatibility to icm-as | ||
|
||
| Version(s) | Description | | ||
|:------------:|----------------------------------------------------------------------------------------------------------| | ||
| < 12.0.0 | *icm-as* versions < 12.0.0 can still be deployed using this chart version. | | ||
| >= 12.0.0 | From *icm-as* from 12.0.0 has an addtional volume that needs files provided by `persistence.encryption`. | |
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,18 @@ | ||
{{- if eq .Values.persistence.encryption.type "cluster" -}} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ template "icm-as.fullname" . }}-cluster-encryption-pvc | ||
spec: | ||
accessModes: | ||
- ReadOnlyMany | ||
# use the storage class defined by cluster-sc.yaml | ||
{{- if .Values.persistence.encryption.cluster.storageClass.create }} | ||
storageClassName: "{{ template "icm-as.fullname" . }}-cluster-encryptions-sc" | ||
{{- else if gt (len .Values.persistence.encryption.cluster.storageClass.existingClass) 0 }} | ||
storageClassName: {{ .Values.persistence.encryption.cluster.storageClass.existingClass | quote }} | ||
{{- end }} | ||
resources: | ||
requests: | ||
storage: {{ .Values.persistence.encryption.size }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if eq .Values.persistence.encryption.type "cluster" -}} | ||
{{- if .Values.persistence.encryption.cluster.storageClass.create -}} | ||
kind: StorageClass | ||
apiVersion: storage.k8s.io/v1 | ||
metadata: | ||
name: {{ include "icm-as.fullname" . }}-cluster-encryption-sc | ||
provisioner: kubernetes.io/azure-file | ||
allowVolumeExpansion: true | ||
mountOptions: | ||
{{- range .Values.persistence.encryption.cluster.storageClass.mountOptions }} | ||
- {{ . }} | ||
{{- end }} | ||
parameters: | ||
skuName: {{ .Values.persistence.encryption.cluster.storageClass.skuName }} | ||
{{- end -}} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if eq .Values.persistence.encryption.type "local" -}} | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: {{ template "icm-as.fullname" . }}-local-encryption-pv | ||
labels: | ||
type: local | ||
spec: | ||
storageClassName: standard | ||
capacity: | ||
storage: {{ .Values.persistence.encryption.size }} | ||
accessModes: | ||
- ReadOnlyMany | ||
persistentVolumeReclaimPolicy: Delete | ||
hostPath: | ||
path: "{{ .Values.persistence.encryption.local.path }}" | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if eq .Values.persistence.encryption.type "local" -}} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ template "icm-as.fullname" . }}-local-encryption-pvc | ||
spec: | ||
storageClassName: standard | ||
accessModes: | ||
- ReadOnlyMany | ||
resources: | ||
requests: | ||
storage: {{ .Values.persistence.encryption.size }} | ||
volumeName: {{ template "icm-as.fullname" . }}-local-encryption-pv | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if eq .Values.persistence.encryption.type "nfs" -}} | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: {{ template "icm-as.fullname" . }}-nfs-encryption-pv | ||
labels: | ||
type: nfs | ||
{{ include "icm-as.labels" . | indent 4 }} | ||
spec: | ||
capacity: | ||
storage: {{ .Values.persistence.encryption.size }} | ||
accessModes: | ||
- ReadOnlyMany | ||
nfs: | ||
server: {{ .Values.persistence.encryption.nfs.server | quote }} | ||
path: {{ .Values.persistence.encryption.nfs.path | quote }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{- if eq .Values.persistence.encryption.type "nfs" -}} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ template "icm-as.fullname" . }}-nfs-encryption-pvc | ||
annotations: | ||
# avoid deleting with helm update | ||
"helm.sh/resource-policy": keep | ||
labels: | ||
{{ include "icm-as.labels" . | indent 4 }} | ||
spec: | ||
accessModes: | ||
- ReadOnlyMany | ||
storageClassName: "" | ||
volumeName: {{ template "icm-as.fullname" . }}-nfs-encryption-pv | ||
resources: | ||
requests: | ||
storage: {{ .Values.persistence.encryption.size }} | ||
selector: | ||
matchLabels: | ||
type: nfs | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if eq .Values.persistence.encryption.type "static" -}} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ template "icm-as.fullname" . }}-static-encryption-pvc | ||
spec: | ||
storageClassName: {{ .Values.persistence.encryption.static.storageClass | quote }} | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: {{ .Values.persistence.encryption.size }} | ||
volumeName: {{ .Values.persistence.encryption.static.name | quote }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if eq .Values.persistence.sites.type "static" -}} | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: {{ template "icm-as.fullname" . }}-static-sites-pvc | ||
spec: | ||
storageClassName: {{ .Values.persistence.sites.static.storageClass | quote }} | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: {{ .Values.persistence.sites.size }} | ||
volumeName: {{ .Values.persistence.sites.static.name | quote }} | ||
{{- 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
Oops, something went wrong.