Skip to content

Commit 91cd654

Browse files
committed
PR comments: falafaroc
1 parent 2b552b3 commit 91cd654

File tree

2 files changed

+66
-65
lines changed

2 files changed

+66
-65
lines changed

repctl/test/storageclass/generate_test.go

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -109,68 +109,3 @@ func TestGeneratePowerScaleStorageClass(t *testing.T) {
109109
assert.Equal(t, string(tt.want), string(generated))
110110
}
111111
}
112-
113-
// Expected output when running `repctl create sc --from-config ...` using a powerscale config template.
114-
// Used to validate repctl is generating the expected storage classes.
115-
// If the config file is updated with more configuration options, the new output should be reviewed and
116-
// upon approval, be used to replace these values.
117-
const powerscaleStorageClass = `
118-
# yamllint disable-file
119-
# This file is not valid YAML because it is a Helm template
120-
apiVersion: storage.k8s.io/v1
121-
kind: StorageClass
122-
metadata:
123-
name: isilon-replication
124-
provisioner: csi-isilon.dellemc.com
125-
reclaimPolicy: Delete
126-
volumeBindingMode: Immediate
127-
parameters:
128-
replication.storage.dell.com/isReplicationEnabled: "true"
129-
replication.storage.dell.com/remoteStorageClassName: isilon-replication
130-
replication.storage.dell.com/remoteClusterID: target
131-
replication.storage.dell.com/rpo: Five_Minutes
132-
replication.storage.dell.com/ignoreNamespaces: "false"
133-
replication.storage.dell.com/volumeGroupPrefix: csi
134-
replication.storage.dell.com/remoteSystem: cluster-2
135-
replication.storage.dell.com/remoteRGRetentionPolicy: Retain
136-
replication.storage.dell.com/remotePVRetentionPolicy: Retain
137-
replication.storage.dell.com/remoteAccessZone: System
138-
replication.storage.dell.com/remoteAzServiceIP: 192.168.1.2
139-
replication.storage.dell.com/remoteAzNetwork: 192.168.3.0/24
140-
replication.storage.dell.com/remoteRootClientEnabled: "false"
141-
AccessZone: System
142-
AzServiceIP: 192.168.1.1
143-
AzNetwork: 192.168.2.0/24
144-
IsiPath: /ifs/data/csi
145-
RootClientEnabled: "false"
146-
ClusterName: cluster-1
147-
# yamllint disable-file
148-
# This file is not valid YAML because it is a Helm template
149-
apiVersion: storage.k8s.io/v1
150-
kind: StorageClass
151-
metadata:
152-
name: isilon-replication
153-
provisioner: csi-isilon.dellemc.com
154-
reclaimPolicy: Delete
155-
volumeBindingMode: Immediate
156-
parameters:
157-
replication.storage.dell.com/isReplicationEnabled: "true"
158-
replication.storage.dell.com/remoteStorageClassName: isilon-replication
159-
replication.storage.dell.com/remoteClusterID: source
160-
replication.storage.dell.com/rpo: Five_Minutes
161-
replication.storage.dell.com/ignoreNamespaces: "false"
162-
replication.storage.dell.com/volumeGroupPrefix: csi
163-
replication.storage.dell.com/remoteSystem: cluster-1
164-
replication.storage.dell.com/remoteRGRetentionPolicy: Retain
165-
replication.storage.dell.com/remotePVRetentionPolicy: Retain
166-
replication.storage.dell.com/remoteAccessZone: System
167-
replication.storage.dell.com/remoteAzServiceIP: 192.168.1.1
168-
replication.storage.dell.com/remoteAzNetwork: 192.168.2.0/24
169-
replication.storage.dell.com/remoteRootClientEnabled: "false"
170-
AccessZone: System
171-
AzServiceIP: 192.168.1.2
172-
AzNetwork: 192.168.3.0/24
173-
IsiPath: /ifs/data/csi
174-
RootClientEnabled: "false"
175-
ClusterName: cluster-2
176-
`
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
package test
2+
3+
// Expected output when running `repctl create sc --from-config ...` using a powerscale config template.
4+
// Used to validate repctl is generating the expected storage classes.
5+
// If the config file is updated with more configuration options, the new output should be reviewed and
6+
// upon approval, be used to replace these values.
7+
const powerscaleStorageClass = `
8+
# yamllint disable-file
9+
# This file is not valid YAML because it is a Helm template
10+
apiVersion: storage.k8s.io/v1
11+
kind: StorageClass
12+
metadata:
13+
name: isilon-replication
14+
provisioner: csi-isilon.dellemc.com
15+
reclaimPolicy: Delete
16+
volumeBindingMode: Immediate
17+
parameters:
18+
replication.storage.dell.com/isReplicationEnabled: "true"
19+
replication.storage.dell.com/remoteStorageClassName: isilon-replication
20+
replication.storage.dell.com/remoteClusterID: target
21+
replication.storage.dell.com/rpo: Five_Minutes
22+
replication.storage.dell.com/ignoreNamespaces: "false"
23+
replication.storage.dell.com/volumeGroupPrefix: csi
24+
replication.storage.dell.com/remoteSystem: cluster-2
25+
replication.storage.dell.com/remoteRGRetentionPolicy: Retain
26+
replication.storage.dell.com/remotePVRetentionPolicy: Retain
27+
replication.storage.dell.com/remoteAccessZone: System
28+
replication.storage.dell.com/remoteAzServiceIP: 192.168.1.2
29+
replication.storage.dell.com/remoteAzNetwork: 192.168.3.0/24
30+
replication.storage.dell.com/remoteRootClientEnabled: "false"
31+
AccessZone: System
32+
AzServiceIP: 192.168.1.1
33+
AzNetwork: 192.168.2.0/24
34+
IsiPath: /ifs/data/csi
35+
RootClientEnabled: "false"
36+
ClusterName: cluster-1
37+
# yamllint disable-file
38+
# This file is not valid YAML because it is a Helm template
39+
apiVersion: storage.k8s.io/v1
40+
kind: StorageClass
41+
metadata:
42+
name: isilon-replication
43+
provisioner: csi-isilon.dellemc.com
44+
reclaimPolicy: Delete
45+
volumeBindingMode: Immediate
46+
parameters:
47+
replication.storage.dell.com/isReplicationEnabled: "true"
48+
replication.storage.dell.com/remoteStorageClassName: isilon-replication
49+
replication.storage.dell.com/remoteClusterID: source
50+
replication.storage.dell.com/rpo: Five_Minutes
51+
replication.storage.dell.com/ignoreNamespaces: "false"
52+
replication.storage.dell.com/volumeGroupPrefix: csi
53+
replication.storage.dell.com/remoteSystem: cluster-1
54+
replication.storage.dell.com/remoteRGRetentionPolicy: Retain
55+
replication.storage.dell.com/remotePVRetentionPolicy: Retain
56+
replication.storage.dell.com/remoteAccessZone: System
57+
replication.storage.dell.com/remoteAzServiceIP: 192.168.1.1
58+
replication.storage.dell.com/remoteAzNetwork: 192.168.2.0/24
59+
replication.storage.dell.com/remoteRootClientEnabled: "false"
60+
AccessZone: System
61+
AzServiceIP: 192.168.1.2
62+
AzNetwork: 192.168.3.0/24
63+
IsiPath: /ifs/data/csi
64+
RootClientEnabled: "false"
65+
ClusterName: cluster-2
66+
`

0 commit comments

Comments
 (0)