forked from kubernetes-csi/external-snapshotter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes-csi#1079 from leonardoce/cel-test-suite
Add CEL rules test suite
- Loading branch information
Showing
104 changed files
with
977 additions
and
0 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
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 @@ | ||
*.out |
11 changes: 11 additions & 0 deletions
11
client/hack/cel-tests/volumegroupsnapshot/vgs-class-empty-string.yaml
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,11 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: postgresql | ||
volumeGroupSnapshotClassName: "" |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshot/vgs-class-empty-string.yaml.err
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 @@ | ||
volumeGroupSnapshotClassName must not be the empty string when set |
9 changes: 9 additions & 0 deletions
9
client/hack/cel-tests/volumegroupsnapshot/vgs-content-immutable.post.yaml
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,9 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
volumeGroupSnapshotContentName: this-test-changed | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshot/vgs-content-immutable.post.yaml.tx_err
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 @@ | ||
volumeGroupSnapshotContentName is immutable |
9 changes: 9 additions & 0 deletions
9
client/hack/cel-tests/volumegroupsnapshot/vgs-content-immutable.pre.yaml
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,9 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
volumeGroupSnapshotContentName: this-test | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
11 changes: 11 additions & 0 deletions
11
client/hack/cel-tests/volumegroupsnapshot/vgs-content-to-selector.post.yaml
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,11 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: postgresql | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshot/vgs-content-to-selector.post.yaml.tx_err
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 @@ | ||
volumeGroupSnapshotContentName is required once set |
9 changes: 9 additions & 0 deletions
9
client/hack/cel-tests/volumegroupsnapshot/vgs-content-to-selector.pre.yaml
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,9 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
volumeGroupSnapshotContentName: this-test | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
10 changes: 10 additions & 0 deletions
10
client/hack/cel-tests/volumegroupsnapshot/vgs-no-class.yaml
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,10 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: postgresql |
11 changes: 11 additions & 0 deletions
11
client/hack/cel-tests/volumegroupsnapshot/vgs-selector-immutable.post.yaml
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,11 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: mysql | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshot/vgs-selector-immutable.post.yaml.tx_err
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 @@ | ||
selector is immutable |
11 changes: 11 additions & 0 deletions
11
client/hack/cel-tests/volumegroupsnapshot/vgs-selector-immutable.pre.yaml
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,11 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: postgresql | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
9 changes: 9 additions & 0 deletions
9
client/hack/cel-tests/volumegroupsnapshot/vgs-selector-to-content.post.yaml
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,9 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
volumeGroupSnapshotContentName: this-test | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshot/vgs-selector-to-content.post.yaml.tx_err
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 @@ | ||
selector is required once set |
11 changes: 11 additions & 0 deletions
11
client/hack/cel-tests/volumegroupsnapshot/vgs-selector-to-content.pre.yaml
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,11 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: postgresql | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
9 changes: 9 additions & 0 deletions
9
client/hack/cel-tests/volumegroupsnapshot/vgs-with-content.yaml
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,9 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
volumeGroupSnapshotContentName: this-test | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
8 changes: 8 additions & 0 deletions
8
client/hack/cel-tests/volumegroupsnapshot/vgs-with-no-selector-no-content.yaml
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,8 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: {} | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshot/vgs-with-no-selector-no-content.yaml.err
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 @@ | ||
exactly one of selector and volumeGroupSnapshotContentName must be set |
12 changes: 12 additions & 0 deletions
12
client/hack/cel-tests/volumegroupsnapshot/vgs-with-selector-and-content.yaml
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,12 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: postgresql | ||
volumeGroupSnapshotContentName: this-test | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshot/vgs-with-selector-and-content.yaml.err
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 @@ | ||
exactly one of selector and volumeGroupSnapshotContentName must be set |
11 changes: 11 additions & 0 deletions
11
client/hack/cel-tests/volumegroupsnapshot/vgs-with-selector.yaml
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,11 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshot | ||
metadata: | ||
name: new-groupsnapshot-demo | ||
spec: | ||
source: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: postgresql | ||
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass |
14 changes: 14 additions & 0 deletions
14
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-change-ref-name.post.yaml
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 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo-changed | ||
namespace: default | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
volumeHandles: | ||
- handles | ||
deletionPolicy: Retain |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-change-ref-name.post.yaml.tx_err
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 @@ | ||
volumeGroupSnapshotRef is immutable |
14 changes: 14 additions & 0 deletions
14
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-change-ref-name.pre.yaml
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 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo | ||
namespace: default | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
volumeHandles: | ||
- handles | ||
deletionPolicy: Retain |
14 changes: 14 additions & 0 deletions
14
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-change-ref-namespace.post.yaml
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 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo | ||
namespace: default-changed | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
volumeHandles: | ||
- handles | ||
deletionPolicy: Retain |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-change-ref-namespace.post.yaml.tx_err
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 @@ | ||
volumeGroupSnapshotRef is immutable |
14 changes: 14 additions & 0 deletions
14
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-change-ref-namespace.pre.yaml
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 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo | ||
namespace: default | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
volumeHandles: | ||
- handles | ||
deletionPolicy: Retain |
14 changes: 14 additions & 0 deletions
14
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-ok.yaml
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 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo | ||
namespace: default | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
volumeHandles: | ||
- handles | ||
deletionPolicy: Retain |
13 changes: 13 additions & 0 deletions
13
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-ref-only-name.yaml
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,13 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
volumeHandles: | ||
- handles | ||
deletionPolicy: Retain |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-ref-only-name.yaml.err
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 @@ | ||
both volumeGroupSnapshotRef.name and volumeGroupSnapshotRef.namespace must be set |
13 changes: 13 additions & 0 deletions
13
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-ref-only-namespace.yaml
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,13 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
namespace: default | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
volumeHandles: | ||
- handles | ||
deletionPolicy: Retain |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-ref-only-namespace.yaml.err
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 @@ | ||
both volumeGroupSnapshotRef.name and volumeGroupSnapshotRef.namespace must be set |
19 changes: 19 additions & 0 deletions
19
.../hack/cel-tests/volumegroupsnapshotcontent/vgsc-source-both-volume-and-groupsnapshot.yaml
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,19 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo | ||
namespace: default | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
volumeHandles: | ||
- handles | ||
groupSnapshotHandles: | ||
volumeGroupSnapshotHandle: this-handle | ||
volumeSnapshotHandles: | ||
- handle | ||
- another-handle | ||
deletionPolicy: Retain |
1 change: 1 addition & 0 deletions
1
...k/cel-tests/volumegroupsnapshotcontent/vgsc-source-both-volume-and-groupsnapshot.yaml.err
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 @@ | ||
exactly one of volumeHandles and groupSnapshotHandles must be set |
12 changes: 12 additions & 0 deletions
12
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-source-empty.yaml
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,12 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo | ||
namespace: default | ||
driver: hostpath.csi.k8s.io | ||
source: {} | ||
deletionPolicy: Retain |
1 change: 1 addition & 0 deletions
1
client/hack/cel-tests/volumegroupsnapshotcontent/vgsc-source-empty.yaml.err
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 @@ | ||
exactly one of volumeHandles and groupSnapshotHandles must be set |
18 changes: 18 additions & 0 deletions
18
...t/hack/cel-tests/volumegroupsnapshotcontent/vgsc-source-groupsnapshot-immutable.post.yaml
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 @@ | ||
--- | ||
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 | ||
kind: VolumeGroupSnapshotContent | ||
metadata: | ||
name: new-groupsnapshotcontent-demo | ||
spec: | ||
volumeGroupSnapshotRef: | ||
name: new-groupsnapshot-demo | ||
namespace: default | ||
driver: hostpath.csi.k8s.io | ||
source: | ||
groupSnapshotHandles: | ||
volumeGroupSnapshotHandle: this-handle | ||
volumeSnapshotHandles: | ||
- handle | ||
- another-handle | ||
- changed-handle | ||
deletionPolicy: Retain |
1 change: 1 addition & 0 deletions
1
...cel-tests/volumegroupsnapshotcontent/vgsc-source-groupsnapshot-immutable.post.yaml.tx_err
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 @@ | ||
groupSnapshotHandles is immutable |
Oops, something went wrong.