Skip to content

Commit

Permalink
snapshot-controller: upstream release 8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WanzenBug committed Dec 11, 2024
1 parent 7115b1a commit caf8780
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 563 deletions.
6 changes: 2 additions & 4 deletions charts/snapshot-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
type: application
name: snapshot-controller
version: 3.0.6
appVersion: "v8.1.0"
version: 4.0.0
appVersion: "v8.2.0"
kubeVersion: ">= 1.25.0-0"
icon: https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg
maintainers:
Expand All @@ -11,8 +11,6 @@ maintainers:
description: |
Deploys a Snapshot Controller in a cluster. Snapshot Controllers are often bundled with the Kubernetes distribution,
this chart is meant for cases where it is not.
Also deploys the Snapshot Validation Webhook and configures your cluster to validate every `VolumeSnapshot` and
`VolumeSnapshotContent` resource by sending it to the webhook.
keywords:
- storage
- snapshot
Expand Down
100 changes: 7 additions & 93 deletions charts/snapshot-controller/README.md

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions charts/snapshot-controller/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{{- if .Values.controller.enabled }}
Volume Snapshot Controller installed.
{{- end }}
{{- if .Values.webhook.enabled }}
Validation for VolumeSnapshots installed.
{{- end }}

{{- if and (not (.Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1")) (not (.Capabilities.APIVersions.Has "snapshot.storage.k8s.io/v1beta") ) }}
Please install the snapshot CRDs, otherwise the controller will not run.
Expand Down
73 changes: 0 additions & 73 deletions charts/snapshot-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,76 +59,3 @@ Create the name of the service account to use
{{ default "default" .Values.controller.serviceAccount.name }}
{{- end -}}
{{- end -}}

{{/*
Expand the name of the chart.
*/}}
{{- define "snapshot-validation-webhook.name" -}}
{{- "snapshot-validation-webhook" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "snapshot-validation-webhook.fullname" -}}
{{- if .Values.webhook.fullnameOverride -}}
{{- .Values.webhook.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- if contains .Chart.Name .Release.Name }}
{{- "snapshot-validation-webhook" }}
{{- else }}
{{- printf "%s-%s" .Release.Name "snapshot-validation-webhook" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "snapshot-validation-webhook.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "snapshot-validation-webhook.labels" -}}
helm.sh/chart: {{ include "snapshot-validation-webhook.chart" . }}
{{ include "snapshot-validation-webhook.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "snapshot-validation-webhook.selectorLabels" -}}
app.kubernetes.io/name: {{ include "snapshot-validation-webhook.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "snapshot-validation-webhook.serviceAccountName" -}}
{{- if .Values.webhook.serviceAccount.create -}}
{{ default (include "snapshot-validation-webhook.fullname" .) .Values.webhook.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.webhook.serviceAccount.name }}
{{- end -}}
{{- end -}}

{{/*
Certificate secret name
*/}}
{{- define "snapshot-validation-webhook.certifcateName" -}}
{{- if .Values.webhook.tls.certificateSecret }}
{{- .Values.webhook.tls.certificateSecret }}
{{- else }}
{{- include "snapshot-validation-webhook.fullname" . }}-tls
{{- end }}
{{- end }}

This file was deleted.

20 changes: 0 additions & 20 deletions charts/snapshot-controller/templates/networkpolicy.yaml

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ rules:
verbs: ["patch"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots"]
verbs: ["get", "list", "watch", "update", "patch", "delete"]
verbs: ["create", "get", "list", "watch", "update", "patch", "delete"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots/status"]
verbs: ["update", "patch"]
Expand Down

This file was deleted.

Loading

0 comments on commit caf8780

Please sign in to comment.