Skip to content

Commit d1f9f39

Browse files
committed
Rename snapshot-webhook to snapshot-conversion-webhook
Signed-off-by: Leonardo Cecchi <[email protected]>
1 parent c0c4750 commit d1f9f39

File tree

11 files changed

+38
-39
lines changed

11 files changed

+38
-39
lines changed

.github/workflows/trivy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
make
2424
docker build -t test/csi-snapshotter:latest -f ./cmd/csi-snapshotter/Dockerfile --output=type=docker --label revision=latest .
2525
docker build -t test/snapshot-controller:latest -f ./cmd/snapshot-controller/Dockerfile --output=type=docker --label revision=latest .
26-
docker build -t test/snapshot-webhook:latest -f ./cmd/snapshot-webhook/Dockerfile --output=type=docker --label revision=latest .
26+
docker build -t test/snapshot-conversion-webhook:latest -f ./cmd/snapshot-conversion-webhook/Dockerfile --output=type=docker --label revision=latest .
2727
2828
- name: Run Trivy vulnerability scanner on csi-snapshotter image
2929
uses: aquasecurity/trivy-action@master
@@ -49,12 +49,12 @@ jobs:
4949
vuln-type: 'os,library'
5050
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
5151

52-
- name: Run Trivy vulnerability scanner on snapshot-webhook image
52+
- name: Run Trivy vulnerability scanner on snapshot-conversion-webhook image
5353
uses: aquasecurity/trivy-action@master
5454
env:
5555
TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"
5656
with:
57-
image-ref: 'test/snapshot-webhook:latest'
57+
image-ref: 'test/snapshot-conversion-webhook:latest'
5858
format: 'table'
5959
exit-code: '1'
6060
ignore-unfixed: true

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
.PHONY: all snapshot-controller csi-snapshotter snapshot-webhook clean test
15+
.PHONY: all snapshot-controller csi-snapshotter snapshot-conversion-webhook clean test
1616

17-
CMDS=snapshot-controller csi-snapshotter snapshot-webhook
17+
CMDS=snapshot-controller csi-snapshotter snapshot-conversion-webhook
1818
all: build
1919
include release-tools/build.make
2020

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Blog post for the Volume Group Snapshot Alpha feature can be found [here](https:
2020

2121
This information reflects the head of this branch.
2222

23-
| Minimum CSI Version | Recommended CSI Version | Container Image | [Min K8s Version](https://kubernetes-csi.github.io/docs/kubernetes-compatibility.html#minimum-version) | [Recommended K8s Version](https://kubernetes-csi.github.io/docs/project-policies.html#recommended-version) |
24-
| ------------------------------------------------------------------------------------------ | ----------------------------| --------------- | --------------- | --------------- |
25-
| [CSI Spec v1.0.0](https://github.com/container-storage-interface/spec/releases/tag/v1.0.0) | [CSI Spec v1.5.0](https://github.com/container-storage-interface/spec/releases/tag/v1.5.0) | k8s.gcr.io/sig-storage/csi-snapshotter | 1.20 | 1.20 |
26-
| [CSI Spec v1.0.0](https://github.com/container-storage-interface/spec/releases/tag/v1.0.0) | [CSI Spec v1.5.0](https://github.com/container-storage-interface/spec/releases/tag/v1.5.0) | k8s.gcr.io/sig-storage/snapshot-controller | 1.20 | 1.20 |
27-
| [CSI Spec v1.0.0](https://github.com/container-storage-interface/spec/releases/tag/v1.0.0) | [CSI Spec v1.5.0](https://github.com/container-storage-interface/spec/releases/tag/v1.5.0) | k8s.gcr.io/sig-storage/snapshot-webhook | 1.20 | 1.20 |
23+
| Minimum CSI Version | Recommended CSI Version | Container Image | [Min K8s Version](https://kubernetes-csi.github.io/docs/kubernetes-compatibility.html#minimum-version) | [Recommended K8s Version](https://kubernetes-csi.github.io/docs/project-policies.html#recommended-version) |
24+
| ------------------------------------------------------------------------------------------ | ----------------------------|----------------------------------------------------| --------------- | --------------- |
25+
| [CSI Spec v1.0.0](https://github.com/container-storage-interface/spec/releases/tag/v1.0.0) | [CSI Spec v1.5.0](https://github.com/container-storage-interface/spec/releases/tag/v1.5.0) | k8s.gcr.io/sig-storage/csi-snapshotter | 1.20 | 1.20 |
26+
| [CSI Spec v1.0.0](https://github.com/container-storage-interface/spec/releases/tag/v1.0.0) | [CSI Spec v1.5.0](https://github.com/container-storage-interface/spec/releases/tag/v1.5.0) | k8s.gcr.io/sig-storage/snapshot-controller | 1.20 | 1.20 |
27+
| [CSI Spec v1.0.0](https://github.com/container-storage-interface/spec/releases/tag/v1.0.0) | [CSI Spec v1.5.0](https://github.com/container-storage-interface/spec/releases/tag/v1.5.0) | k8s.gcr.io/sig-storage/snapshot-conversion-webhook | 1.20 | 1.20 |
2828

29-
Note: snapshot-controller, snapshot-webhook, csi-snapshotter v4.1 requires v1 snapshot CRDs to be installed, but it serves both v1 and v1beta1 snapshot objects. Storage version is changed from v1beta1 to v1 in 4.1.0 so v1beta1 is deprecated and will be removed in a future release.
29+
Note: snapshot-controller, snapshot-conversion-webhook, csi-snapshotter v4.1 requires v1 snapshot CRDs to be installed, but it serves both v1 and v1beta1 snapshot objects. Storage version is changed from v1beta1 to v1 in 4.1.0 so v1beta1 is deprecated and will be removed in a future release.
3030

31-
Note: when the volume group snapshot feature is enabled, snapshot-controller, snapshot-webhook, csi-snapshotter require the v1alpha1 volumegroupsnapshot CRDs to be installed.
31+
Note: when the volume group snapshot feature is enabled, snapshot-controller, snapshot-conversion-webhook, csi-snapshotter require the v1alpha1 volumegroupsnapshot CRDs to be installed.
3232

3333
## Feature Status
3434

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotclasses.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
clientConfig:
2525
service:
2626
namespace: default
27-
name: snapshot-webhook-service
27+
name: snapshot-conversion-webhook-service
2828
path: /convert
2929
versions:
3030
- additionalPrinterColumns:

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
clientConfig:
2525
service:
2626
namespace: default
27-
name: snapshot-webhook-service
27+
name: snapshot-conversion-webhook-service
2828
path: /convert
2929
versions:
3030
- additionalPrinterColumns:

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshots.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
clientConfig:
2424
service:
2525
namespace: default
26-
name: snapshot-webhook-service
26+
name: snapshot-conversion-webhook-service
2727
path: /convert
2828
versions:
2929
- additionalPrinterColumns:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM gcr.io/distroless/static:latest
2+
LABEL maintainers="Kubernetes Authors"
3+
LABEL description="Snapshot Webhook"
4+
ARG binary=./bin/snapshot-conversion-webhook
5+
6+
COPY ${binary} snapshot-conversion-webhook
7+
ENTRYPOINT ["/snapshot-conversion-webhook"]
File renamed without changes.

cmd/snapshot-webhook/Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

deploy/kubernetes/webhook-example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ make
1313
Build the docker image
1414

1515
```bash
16-
docker build -t snapshot-webhook:latest -f ./cmd/snapshot-webhook/Dockerfile .
16+
docker build -t snapshot-conversion-webhook:latest -f ./cmd/snapshot-conversion-webhook/Dockerfile .
1717
```
1818

1919
## How to deploy the webhook
@@ -35,7 +35,7 @@ These commands should be run from the top level directory.
3535

3636
```bash
3737
# This script will create a TLS certificate signed by the [cluster](https://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/). It will place the public and private key into a secret on the cluster.
38-
./deploy/kubernetes/webhook-example/create-cert.sh --service snapshot-webhook-service --secret snapshot-webhook-secret --namespace default # Make sure to use a different namespace
38+
./deploy/kubernetes/webhook-example/create-cert.sh --service snapshot-conversion-webhook-service --secret snapshot-conversion-webhook-secret --namespace default # Make sure to use a different namespace
3939
```
4040

4141
2. Patch the VolumeGroupSnapshot, VolumeGroupSnapshotContent and VolumeGroupSnapshotClass CRDs filling in the CA bundle field.

0 commit comments

Comments
 (0)