Skip to content

Commit d3542e5

Browse files
committed
Fix typo
Signed-off-by: Ambika Nair <[email protected]>
1 parent 8497361 commit d3542e5

13 files changed

+72
-72
lines changed

api/v1alpha1/recoverstalevolume_types.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import (
2323
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
2424
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
2525

26-
// RestoreStaleVolumeSpec defines the desired state of RestoreStaleVolume
26+
// RecoverStaleVolumeSpec defines the desired state of RecoverStaleVolume
2727

28-
type RestoreStaleVolumeSpec struct {
28+
type RecoverStaleVolumeSpec struct {
2929
NoOfLogLines int64 `json:"noOfLogLines,omitempty"`
3030
Deployment []DeploymentData `json:"deploymentData,omitempty"`
3131
}
@@ -35,33 +35,33 @@ type DeploymentData struct {
3535
DeploymentNamespace string `json:"deploymentNamespace,omitempty"`
3636
}
3737

38-
// RestoreStaleVolumeStatus defines the observed state of RestoreStaleVolume
39-
type RestoreStaleVolumeStatus struct {
38+
// RecoverStaleVolumeStatus defines the observed state of RecoverStaleVolume
39+
type RecoverStaleVolumeStatus struct {
4040
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
4141
// Important: Run "make" to regenerate code after modifying this file
4242
}
4343

4444
//+kubebuilder:object:root=true
4545
//+kubebuilder:subresource:status
4646

47-
// RestoreStaleVolume is the Schema for the recoverstalevolumes API
48-
type RestoreStaleVolume struct {
47+
// RecoverStaleVolume is the Schema for the recoverstalevolumes API
48+
type RecoverStaleVolume struct {
4949
metav1.TypeMeta `json:",inline"`
5050
metav1.ObjectMeta `json:"metadata,omitempty"`
5151

52-
Spec RestoreStaleVolumeSpec `json:"spec,omitempty"`
53-
Status RestoreStaleVolumeStatus `json:"status,omitempty"`
52+
Spec RecoverStaleVolumeSpec `json:"spec,omitempty"`
53+
Status RecoverStaleVolumeStatus `json:"status,omitempty"`
5454
}
5555

5656
//+kubebuilder:object:root=true
5757

58-
// RestoreStaleVolumeList contains a list of RestoreStaleVolume
59-
type RestoreStaleVolumeList struct {
58+
// RecoverStaleVolumeList contains a list of RecoverStaleVolume
59+
type RecoverStaleVolumeList struct {
6060
metav1.TypeMeta `json:",inline"`
6161
metav1.ListMeta `json:"metadata,omitempty"`
62-
Items []RestoreStaleVolume `json:"items"`
62+
Items []RecoverStaleVolume `json:"items"`
6363
}
6464

6565
func init() {
66-
SchemeBuilder.Register(&RestoreStaleVolume{}, &RestoreStaleVolumeList{})
66+
SchemeBuilder.Register(&RecoverStaleVolume{}, &RecoverStaleVolumeList{})
6767
}

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/objectdriver.csi.ibm.com_restorestalevolumes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spec:
5252
type: integer
5353
type: object
5454
status:
55-
description: RestoreStaleVolumeStatus defines the observed state of RestoreStaleVolume
55+
description: RecoverStaleVolumeStatus defines the observed state of RecoverStaleVolume
5656
type: object
5757
type: object
5858
served: true

config/crd/kustomization.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
# It should be run by config/default
44
resources:
55
- bases/objectdriver.csi.ibm.com_ibmobjectcsis.yaml
6-
- bases/objectdriver.csi.ibm.com_restorestalevolumes.yaml
6+
- bases/objectdriver.csi.ibm.com_recoverstalevolumes.yaml
77
#+kubebuilder:scaffold:crdkustomizeresource
88

99
patchesStrategicMerge:
1010
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
1111
# patches here are for enabling the conversion webhook for each CRD
1212
#- patches/webhook_in_ibmobjectcsis.yaml
13-
#- patches/webhook_in_restorestalevolumes.yaml
13+
#- patches/webhook_in_recoverstalevolumes.yaml
1414
#+kubebuilder:scaffold:crdkustomizewebhookpatch
1515

1616
# [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix.
1717
# patches here are for enabling the CA injection for each CRD
1818
#- patches/cainjection_in_ibmobjectcsis.yaml
19-
#- patches/cainjection_in_restorestalevolumes.yaml
19+
#- patches/cainjection_in_recoverstalevolumes.yaml
2020
#+kubebuilder:scaffold:crdkustomizecainjectionpatch
2121

2222
# the following config is for teaching kustomize how to do kustomization for CRDs.

config/crd/patches/cainjection_in_restorestalevolumes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ kind: CustomResourceDefinition
44
metadata:
55
annotations:
66
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
7-
name: restorestalevolumes.objectdriver.csi.ibm.com
7+
name: recoverstalevolumes.objectdriver.csi.ibm.com

config/crd/patches/webhook_in_restorestalevolumes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
5-
name: restorestalevolumes.objectdriver.csi.ibm.com
5+
name: recoverstalevolumes.objectdriver.csi.ibm.com
66
spec:
77
conversion:
88
strategy: Webhook
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# permissions for end users to edit restorestalevolumes.
1+
# permissions for end users to edit recoverstalevolumes.
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
labels:
66
app.kubernetes.io/name: clusterrole
7-
app.kubernetes.io/instance: restorestalevolume-editor-role
7+
app.kubernetes.io/instance: recoverstalevolume-editor-role
88
app.kubernetes.io/component: rbac
99
app.kubernetes.io/created-by: ibm-object-csi-driver-operator
1010
app.kubernetes.io/part-of: ibm-object-csi-driver-operator
1111
app.kubernetes.io/managed-by: kustomize
12-
name: restorestalevolume-editor-role
12+
name: recoverstalevolume-editor-role
1313
rules:
1414
- apiGroups:
1515
- objectdriver.csi.ibm.com
1616
resources:
17-
- restorestalevolumes
17+
- recoverstalevolumes
1818
verbs:
1919
- create
2020
- delete
@@ -26,6 +26,6 @@ rules:
2626
- apiGroups:
2727
- objectdriver.csi.ibm.com
2828
resources:
29-
- restorestalevolumes/status
29+
- recoverstalevolumes/status
3030
verbs:
3131
- get
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# permissions for end users to view restorestalevolumes.
1+
# permissions for end users to view recoverstalevolumes.
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
labels:
66
app.kubernetes.io/name: clusterrole
7-
app.kubernetes.io/instance: restorestalevolume-viewer-role
7+
app.kubernetes.io/instance: recoverstalevolume-viewer-role
88
app.kubernetes.io/component: rbac
99
app.kubernetes.io/created-by: ibm-object-csi-driver-operator
1010
app.kubernetes.io/part-of: ibm-object-csi-driver-operator
1111
app.kubernetes.io/managed-by: kustomize
12-
name: restorestalevolume-viewer-role
12+
name: recoverstalevolume-viewer-role
1313
rules:
1414
- apiGroups:
1515
- objectdriver.csi.ibm.com
1616
resources:
17-
- restorestalevolumes
17+
- recoverstalevolumes
1818
verbs:
1919
- get
2020
- list
2121
- watch
2222
- apiGroups:
2323
- objectdriver.csi.ibm.com
2424
resources:
25-
- restorestalevolumes/status
25+
- recoverstalevolumes/status
2626
verbs:
2727
- get

config/rbac/role.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ rules:
167167
- apiGroups:
168168
- objectdriver.csi.ibm.com
169169
resources:
170-
- restorestalevolumes
170+
- recoverstalevolumes
171171
verbs:
172172
- create
173173
- delete
@@ -179,13 +179,13 @@ rules:
179179
- apiGroups:
180180
- objectdriver.csi.ibm.com
181181
resources:
182-
- restorestalevolumes/finalizers
182+
- recoverstalevolumes/finalizers
183183
verbs:
184184
- update
185185
- apiGroups:
186186
- objectdriver.csi.ibm.com
187187
resources:
188-
- restorestalevolumes/status
188+
- recoverstalevolumes/status
189189
verbs:
190190
- get
191191
- patch

config/samples/csi_v1alpha1_restorestalevolume.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apiVersion: objectdriver.csi.ibm.com/v1alpha1
2-
kind: RestoreStaleVolume
2+
kind: RecoverStaleVolume
33
metadata:
44
labels:
5-
app.kubernetes.io/name: restorestalevolume
6-
app.kubernetes.io/instance: restorestalevolume-sample
5+
app.kubernetes.io/name: recoverstalevolume
6+
app.kubernetes.io/instance: recoverstalevolume-sample
77
app.kubernetes.io/part-of: ibm-object-csi-driver-operator
88
app.kubernetes.io/managed-by: kustomize
99
app.kubernetes.io/created-by: ibm-object-csi-driver-operator
10-
name: restorestalevolume-sample
10+
name: recoverstalevolume-sample
1111
namespace: ibm-object-csi-operator-system
1212
spec:
1313
noOfLogLines: 100

0 commit comments

Comments
 (0)