Skip to content

Commit 3c6fb17

Browse files
committed
Fix linting
1 parent db00632 commit 3c6fb17

14 files changed

+5
-17
lines changed

api/bases/test.openstack.org_ansibletests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
name: v1beta1
2828
schema:
2929
openAPIV3Schema:
30-
description: AnsibleTestStatus is the Schema for the AnsibleTestStatus API
3130
properties:
3231
apiVersion:
3332
description: 'APIVersion defines the versioned schema of this representation

api/bases/test.openstack.org_horizontests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
name: v1beta1
2828
schema:
2929
openAPIV3Schema:
30-
description: HorizonTest is the Schema for the horizontests API
3130
properties:
3231
apiVersion:
3332
description: 'APIVersion defines the versioned schema of this representation

api/bases/test.openstack.org_tempests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
name: v1beta1
2828
schema:
2929
openAPIV3Schema:
30-
description: Tempest is the Schema for the tempests API
3130
properties:
3231
apiVersion:
3332
description: 'APIVersion defines the versioned schema of this representation

api/bases/test.openstack.org_tobikoes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
name: v1beta1
2828
schema:
2929
openAPIV3Schema:
30-
description: Tobiko is the Schema for the tobikoes API
3130
properties:
3231
apiVersion:
3332
description: 'APIVersion defines the versioned schema of this representation

api/v1beta1/ansibletest_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ type AnsibleTestWorkflowSpec struct {
157157
//+kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[0].status",description="Status"
158158
//+kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[0].message",description="Message"
159159

160-
// AnsibleTestStatus is the Schema for the AnsibleTestStatus API
161160
type AnsibleTest struct {
162161
metav1.TypeMeta `json:",inline"`
163162
metav1.ObjectMeta `json:"metadata,omitempty"`

api/v1beta1/horizontest_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ type HorizonTestSpec struct {
122122
//+kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[0].status",description="Status"
123123
//+kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[0].message",description="Message"
124124

125-
// HorizonTest is the Schema for the horizontests API
126125
type HorizonTest struct {
127126
metav1.TypeMeta `json:",inline"`
128127
metav1.ObjectMeta `json:"metadata,omitempty"`

api/v1beta1/tempest_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ type TempestSpec struct {
438438
//+kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[0].status",description="Status"
439439
//+kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[0].message",description="Message"
440440

441-
// Tempest is the Schema for the tempests API
442441
type Tempest struct {
443442
metav1.TypeMeta `json:",inline"`
444443
metav1.ObjectMeta `json:"metadata,omitempty"`

api/v1beta1/tempest_webhook.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (r *Tempest) ValidateCreate() (admission.Warnings, error) {
9292
var allWarnings admission.Warnings
9393

9494
if len(r.Spec.Workflow) > 0 && r.Spec.Debug {
95-
return nil, errors.New("Workflow variable must be empty to run debug mode!")
95+
return nil, errors.New("workflow variable must be empty to run debug mode")
9696
}
9797

9898
if !r.Spec.Privileged && r.PrivilegedRequired() {
@@ -125,15 +125,15 @@ func (r *Tempest) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
125125

126126
oldTempest, ok := old.(*Tempest)
127127
if !ok || oldTempest == nil {
128-
return nil, errors.New("Unable to convert existing object")
128+
return nil, errors.New("unable to convert existing object")
129129
}
130130

131131
if !cmp.Equal(oldTempest.Spec, r.Spec) {
132132
warnings := admission.Warnings{}
133133
warnings = append(warnings, "You are updating an already existing instance of a "+
134134
"Tempest CR! Be aware that changes won't be applied.")
135135

136-
return warnings, errors.New("Updating an existing Tempest CR is not supported!")
136+
return warnings, errors.New("updating an existing Tempest CR is not supported")
137137
}
138138
return nil, nil
139139
}

api/v1beta1/tobiko_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
// TobikoSpec defines the desired state of Tobiko
2828
type TobikoSpec struct {
29-
CommonOptions `json:",inline"`
29+
CommonOptions `json:",inline"`
3030

3131
// +kubebuilder:validation:Optional
3232
// +kubebuilder:default=false
@@ -181,7 +181,6 @@ type TobikoWorkflowSpec struct {
181181
//+kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[0].status",description="Status"
182182
//+kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[0].message",description="Message"
183183

184-
// Tobiko is the Schema for the tobikoes API
185184
type Tobiko struct {
186185
metav1.TypeMeta `json:",inline"`
187186
metav1.ObjectMeta `json:"metadata,omitempty"`

api/v1beta1/tobiko_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (r *Tobiko) ValidateCreate() (admission.Warnings, error) {
7171
}
7272

7373
if len(r.Spec.Workflow) > 0 && r.Spec.Debug {
74-
return allWarnings, errors.New("Workflow variable must be empty to run debug mode!")
74+
return allWarnings, errors.New("workflow variable must be empty to run debug mode")
7575
}
7676

7777
return allWarnings, nil

config/crd/bases/test.openstack.org_ansibletests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
name: v1beta1
2828
schema:
2929
openAPIV3Schema:
30-
description: AnsibleTestStatus is the Schema for the AnsibleTestStatus API
3130
properties:
3231
apiVersion:
3332
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/test.openstack.org_horizontests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
name: v1beta1
2828
schema:
2929
openAPIV3Schema:
30-
description: HorizonTest is the Schema for the horizontests API
3130
properties:
3231
apiVersion:
3332
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/test.openstack.org_tempests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
name: v1beta1
2828
schema:
2929
openAPIV3Schema:
30-
description: Tempest is the Schema for the tempests API
3130
properties:
3231
apiVersion:
3332
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/test.openstack.org_tobikoes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
name: v1beta1
2828
schema:
2929
openAPIV3Schema:
30-
description: Tobiko is the Schema for the tobikoes API
3130
properties:
3231
apiVersion:
3332
description: 'APIVersion defines the versioned schema of this representation

0 commit comments

Comments
 (0)