Skip to content

Commit

Permalink
snapshot: upstream release 4.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz "WanzenBug" Wanzenböck <[email protected]>
  • Loading branch information
WanzenBug committed Aug 18, 2021
1 parent 7ef0240 commit fc62122
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 37 deletions.
8 changes: 5 additions & 3 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: 1.1.0
appVersion: "v4.1.1"
version: 1.2.0
appVersion: "v4.2.0"
icon: https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg
maintainers:
- name: The Piraeus Maintainers
Expand All @@ -15,5 +15,7 @@ keywords:
- snapshot
home: https://github.com/piraeusdatastore/helm-charts
sources:
- https://github.com/piraeusdatastore/helm-charts
- https://github.com/kubernetes-csi/external-snapshotter/
annotations:
artifacthub.io/recommendations: |
- url: https://artifacthub.io/packages/helm/piraeus-charts/snapshot-validation-webhook
29 changes: 19 additions & 10 deletions charts/snapshot-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,28 @@ kubectl get crd volumesnapshotcontents.snapshot.storage.k8s.io
## Usage

First, please ensure you have the [snapshot validation webhook](../snapshot-validation-webhook) installed.
Then, install this chart. See [below](#configuration) for available configuration options.

Then, install the latest version of the snapshot CRDs:
```
helm repo add piraeus-charts https://piraeus.io/helm-charts/
helm install snapshot-controller piraeus-charts/snapshot-controller
```

## Upgrades

Upgrades can be done using the normal Helm upgrade mechanism

```
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
helm repo update
helm upgrade snapshot-controller piraeus-charts/snapshot-controller
```

Now you can install this chart. See [below](#configuration) for available configuration options.
To enjoy all the latest features of the snapshot controller, you may want to upgrade your CRDs as well:

```
helm install piraeus-charts/snapshot-controller
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
```

## Upgrade from older CRDs
Expand Down Expand Up @@ -57,15 +66,15 @@ The upgrade procedure can be summarized by the following steps:
5. Upgrade the CRDs

```
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
```

6. Upgrade the [snapshot controller](../snapshot-controller) to the latest version:

```
helm upgrade piraeus-charts/snapshot-controller --set image.tag=v4.1.1
helm upgrade piraeus-charts/snapshot-controller --set image.tag=v4.2.0
```

## Configuration
Expand Down
8 changes: 5 additions & 3 deletions charts/snapshot-validation-webhook/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
type: application
name: snapshot-validation-webhook
version: 1.1.0
appVersion: "v4.1.1"
version: 1.2.0
appVersion: "v4.2.0"
icon: https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg
maintainers:
- name: The Piraeus Maintainers
Expand All @@ -16,5 +16,7 @@ keywords:
- validation
home: https://github.com/piraeusdatastore/helm-charts
sources:
- https://github.com/piraeusdatastore/helm-charts
- https://github.com/kubernetes-csi/external-snapshotter/
annotations:
artifacthub.io/recommendations: |
- url: https://artifacthub.io/packages/helm/piraeus-charts/snapshot-controller
62 changes: 41 additions & 21 deletions charts/snapshot-validation-webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,23 @@ or are in the process of installing it.

## Usage

Webhooks in Kubernetes are required to run on HTTPS. To that end, this charts needs to be configured with:
The following commands install this chart in your cluster. See [below](#configuration) for available configuration
options.

* A auto-generated certificate, valid for 10 years. If you want to renew the certificate, set `tls.renew` to `true` and
run an upgrade.
```
helm repo add piraeus-charts https://piraeus.io/helm-charts/
helm install snapshot-validation-webhook piraeus-charts/snapshot-validation-webhook
```

* A [cert-manager.io](https://cert-manager.io) issuer able to create a certificate for the webhook service.

To use this method, create an override file like:
```
tls:
certManagerIssuerRef:
name: internal-issuer
kind: ClusterIssuer
```
## Upgrades

To apply the override, use `--values <override-file>`.
Upgrades can be done using the normal Helm upgrade mechanism

* A pre-existing [`kubernetes.io/tls`] secret and the certificate of the CA used to sign said tls secret.
```
helm repo update
helm upgrade snapshot-validation-webhook piraeus-charts/snapshot-validation-webhook
```

To use this method, set `--set tls.certificateSecret=<secretname>`.
The secret must be in the same namespace as the deployment and be valid for `<release-name>.<namespace>.svc`.

## Upgrade from older CRDs

Expand Down Expand Up @@ -58,20 +54,44 @@ The upgrade procedure can be summarized by the following steps:
5. Upgrade the CRDs

```
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.1.1/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
kubectl replace -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/v4.2.0/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
```

6. Upgrade the [snapshot controller](../snapshot-controller) to the latest version:

```
helm upgrade piraeus-charts/snapshot-controller --set image.tag=v4.1.1
helm upgrade piraeus-charts/snapshot-controller --set image.tag=v4.2.0
```

## Configuration

The following options are available:
Webhooks in Kubernetes are required to run on HTTPS. To that end, this charts needs to be configured with one of the
following options:

* An auto-generated certificate, valid for 10 years. This is the default. If you want to renew the certificate,
set `tls.renew` to `true` and run an upgrade.

* A [cert-manager.io](https://cert-manager.io) issuer able to create a certificate for the webhook service.

To use this method, create an override file like:
```
tls:
certManagerIssuerRef:
name: internal-issuer
kind: ClusterIssuer
```

To apply the override, use `--values <override-file>`.

* A pre-existing [`kubernetes.io/tls`] secret and the certificate of the CA used to sign said tls secret.

To use this method, set `--set tls.certificateSecret=<secretname>`.
The secret must be in the same namespace as the deployment and be valid for `<release-name>.<namespace>.svc`.

There are additional options that allow customization outside of HTTPS concerns. This is the full list of options
available.

| Option | Usage | Default |
|--------|-------|---------|
Expand Down

0 comments on commit fc62122

Please sign in to comment.