Skip to content

Commit aa9c2e0

Browse files
committed
Use lowered resource kind as file name
1 parent 23b7082 commit aa9c2e0

File tree

50 files changed

+50
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+50
-50
lines changed

pkg/plugins/golang/v2/scaffolds/internal/templates/api/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type {{ .Resource.Kind }}Spec struct {
7575
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
7676
// Important: Run "make" to regenerate code after modifying this file
7777
78-
// Foo is an example field of {{ .Resource.Kind }}. Edit {{ .Resource.Kind }}_types.go to remove/update
78+
// Foo is an example field of {{ .Resource.Kind }}. Edit {{ lower .Resource.Kind }}_types.go to remove/update
7979
Foo string ` + "`" + `json:"foo,omitempty"` + "`" + `
8080
}
8181

pkg/plugins/golang/v3/scaffolds/internal/templates/api/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type {{ .Resource.Kind }}Spec struct {
7979
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
8080
// Important: Run "make" to regenerate code after modifying this file
8181
82-
// Foo is an example field of {{ .Resource.Kind }}. Edit {{ .Resource.Kind }}_types.go to remove/update
82+
// Foo is an example field of {{ .Resource.Kind }}. Edit {{ lower .Resource.Kind }}_types.go to remove/update
8383
Foo string ` + "`" + `json:"foo,omitempty"` + "`" + `
8484
}
8585

testdata/project-v2-multigroup/apis/crew/v1/captain_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type CaptainSpec struct {
2828
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
2929
// Important: Run "make" to regenerate code after modifying this file
3030

31-
// Foo is an example field of Captain. Edit Captain_types.go to remove/update
31+
// Foo is an example field of Captain. Edit captain_types.go to remove/update
3232
Foo string `json:"foo,omitempty"`
3333
}
3434

testdata/project-v2-multigroup/apis/foo.policy/v1/healthcheckpolicy_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type HealthCheckPolicySpec struct {
2828
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
2929
// Important: Run "make" to regenerate code after modifying this file
3030

31-
// Foo is an example field of HealthCheckPolicy. Edit HealthCheckPolicy_types.go to remove/update
31+
// Foo is an example field of HealthCheckPolicy. Edit healthcheckpolicy_types.go to remove/update
3232
Foo string `json:"foo,omitempty"`
3333
}
3434

testdata/project-v2-multigroup/apis/sea-creatures/v1beta1/kraken_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type KrakenSpec struct {
2828
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
2929
// Important: Run "make" to regenerate code after modifying this file
3030

31-
// Foo is an example field of Kraken. Edit Kraken_types.go to remove/update
31+
// Foo is an example field of Kraken. Edit kraken_types.go to remove/update
3232
Foo string `json:"foo,omitempty"`
3333
}
3434

testdata/project-v2-multigroup/apis/sea-creatures/v1beta2/leviathan_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type LeviathanSpec struct {
2828
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
2929
// Important: Run "make" to regenerate code after modifying this file
3030

31-
// Foo is an example field of Leviathan. Edit Leviathan_types.go to remove/update
31+
// Foo is an example field of Leviathan. Edit leviathan_types.go to remove/update
3232
Foo string `json:"foo,omitempty"`
3333
}
3434

testdata/project-v2-multigroup/apis/ship/v1/destroyer_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type DestroyerSpec struct {
2828
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
2929
// Important: Run "make" to regenerate code after modifying this file
3030

31-
// Foo is an example field of Destroyer. Edit Destroyer_types.go to remove/update
31+
// Foo is an example field of Destroyer. Edit destroyer_types.go to remove/update
3232
Foo string `json:"foo,omitempty"`
3333
}
3434

testdata/project-v2-multigroup/apis/ship/v1beta1/frigate_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type FrigateSpec struct {
2828
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
2929
// Important: Run "make" to regenerate code after modifying this file
3030

31-
// Foo is an example field of Frigate. Edit Frigate_types.go to remove/update
31+
// Foo is an example field of Frigate. Edit frigate_types.go to remove/update
3232
Foo string `json:"foo,omitempty"`
3333
}
3434

testdata/project-v2-multigroup/apis/ship/v2alpha1/cruiser_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type CruiserSpec struct {
2828
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
2929
// Important: Run "make" to regenerate code after modifying this file
3030

31-
// Foo is an example field of Cruiser. Edit Cruiser_types.go to remove/update
31+
// Foo is an example field of Cruiser. Edit cruiser_types.go to remove/update
3232
Foo string `json:"foo,omitempty"`
3333
}
3434

testdata/project-v2-multigroup/config/crd/bases/crew.testproject.org_captains.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
description: CaptainSpec defines the desired state of Captain
3838
properties:
3939
foo:
40-
description: Foo is an example field of Captain. Edit Captain_types.go
40+
description: Foo is an example field of Captain. Edit captain_types.go
4141
to remove/update
4242
type: string
4343
type: object

0 commit comments

Comments
 (0)