Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Use correct file name in the comments of [kind]_types.go #1927

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type {{ .Resource.Kind }}Spec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of {{ .Resource.Kind }}. Edit {{ .Resource.Kind }}_types.go to remove/update
// Foo is an example field of {{ .Resource.Kind }}. Edit {{ lower .Resource.Kind }}_types.go to remove/update
Foo string ` + "`" + `json:"foo,omitempty"` + "`" + `
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type {{ .Resource.Kind }}Spec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of {{ .Resource.Kind }}. Edit {{ .Resource.Kind }}_types.go to remove/update
// Foo is an example field of {{ .Resource.Kind }}. Edit {{ lower .Resource.Kind }}_types.go to remove/update
Foo string ` + "`" + `json:"foo,omitempty"` + "`" + `
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CaptainSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type HealthCheckPolicySpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type KrakenSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type LeviathanSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type DestroyerSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type FrigateSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CruiserSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: CaptainSpec defines the desired state of Captain
properties:
foo:
description: Foo is an example field of Captain. Edit Captain_types.go
description: Foo is an example field of Captain. Edit captain_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: HealthCheckPolicySpec defines the desired state of HealthCheckPolicy
properties:
foo:
description: Foo is an example field of HealthCheckPolicy. Edit HealthCheckPolicy_types.go
description: Foo is an example field of HealthCheckPolicy. Edit healthcheckpolicy_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: KrakenSpec defines the desired state of Kraken
properties:
foo:
description: Foo is an example field of Kraken. Edit Kraken_types.go
description: Foo is an example field of Kraken. Edit kraken_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: LeviathanSpec defines the desired state of Leviathan
properties:
foo:
description: Foo is an example field of Leviathan. Edit Leviathan_types.go
description: Foo is an example field of Leviathan. Edit leviathan_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: CruiserSpec defines the desired state of Cruiser
properties:
foo:
description: Foo is an example field of Cruiser. Edit Cruiser_types.go
description: Foo is an example field of Cruiser. Edit cruiser_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: DestroyerSpec defines the desired state of Destroyer
properties:
foo:
description: Foo is an example field of Destroyer. Edit Destroyer_types.go
description: Foo is an example field of Destroyer. Edit destroyer_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: FrigateSpec defines the desired state of Frigate
properties:
foo:
description: Foo is an example field of Frigate. Edit Frigate_types.go
description: Foo is an example field of Frigate. Edit frigate_types.go
to remove/update
type: string
type: object
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v2/api/v1/admiral_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type AdmiralSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of Admiral. Edit Admiral_types.go to remove/update
// Foo is an example field of Admiral. Edit admiral_types.go to remove/update
Foo string `json:"foo,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v2/api/v1/captain_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CaptainSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v2/api/v1/firstmate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type FirstMateSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of FirstMate. Edit FirstMate_types.go to remove/update
// Foo is an example field of FirstMate. Edit firstmate_types.go to remove/update
Foo string `json:"foo,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: AdmiralSpec defines the desired state of Admiral
properties:
foo:
description: Foo is an example field of Admiral. Edit Admiral_types.go
description: Foo is an example field of Admiral. Edit admiral_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: CaptainSpec defines the desired state of Captain
properties:
foo:
description: Foo is an example field of Captain. Edit Captain_types.go
description: Foo is an example field of Captain. Edit captain_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: FirstMateSpec defines the desired state of FirstMate
properties:
foo:
description: Foo is an example field of FirstMate. Edit FirstMate_types.go
description: Foo is an example field of FirstMate. Edit firstmate_types.go
to remove/update
type: string
type: object
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v3-config/api/v1/admiral_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type AdmiralSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of Admiral. Edit Admiral_types.go to remove/update
// Foo is an example field of Admiral. Edit admiral_types.go to remove/update
Foo string `json:"foo,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v3-config/api/v1/captain_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CaptainSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v3-config/api/v1/firstmate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type FirstMateSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of FirstMate. Edit FirstMate_types.go to remove/update
// Foo is an example field of FirstMate. Edit firstmate_types.go to remove/update
Foo string `json:"foo,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: AdmiralSpec defines the desired state of Admiral
properties:
foo:
description: Foo is an example field of Admiral. Edit Admiral_types.go
description: Foo is an example field of Admiral. Edit admiral_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: CaptainSpec defines the desired state of Captain
properties:
foo:
description: Foo is an example field of Captain. Edit Captain_types.go
description: Foo is an example field of Captain. Edit captain_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: FirstMateSpec defines the desired state of FirstMate
properties:
foo:
description: Foo is an example field of FirstMate. Edit FirstMate_types.go
description: Foo is an example field of FirstMate. Edit firstmate_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CaptainSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type HealthCheckPolicySpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type KrakenSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type LeviathanSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type DestroyerSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type FrigateSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type CruiserSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

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

Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v3-multigroup/apis/v1/lakers_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type LakersSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file

// Foo is an example field of Lakers. Edit Lakers_types.go to remove/update
// Foo is an example field of Lakers. Edit lakers_types.go to remove/update
Foo string `json:"foo,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: CaptainSpec defines the desired state of Captain
properties:
foo:
description: Foo is an example field of Captain. Edit Captain_types.go
description: Foo is an example field of Captain. Edit captain_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: HealthCheckPolicySpec defines the desired state of HealthCheckPolicy
properties:
foo:
description: Foo is an example field of HealthCheckPolicy. Edit HealthCheckPolicy_types.go
description: Foo is an example field of HealthCheckPolicy. Edit healthcheckpolicy_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: KrakenSpec defines the desired state of Kraken
properties:
foo:
description: Foo is an example field of Kraken. Edit Kraken_types.go
description: Foo is an example field of Kraken. Edit kraken_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: LeviathanSpec defines the desired state of Leviathan
properties:
foo:
description: Foo is an example field of Leviathan. Edit Leviathan_types.go
description: Foo is an example field of Leviathan. Edit leviathan_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: CruiserSpec defines the desired state of Cruiser
properties:
foo:
description: Foo is an example field of Cruiser. Edit Cruiser_types.go
description: Foo is an example field of Cruiser. Edit cruiser_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: DestroyerSpec defines the desired state of Destroyer
properties:
foo:
description: Foo is an example field of Destroyer. Edit Destroyer_types.go
description: Foo is an example field of Destroyer. Edit destroyer_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: FrigateSpec defines the desired state of Frigate
properties:
foo:
description: Foo is an example field of Frigate. Edit Frigate_types.go
description: Foo is an example field of Frigate. Edit frigate_types.go
to remove/update
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
description: LakersSpec defines the desired state of Lakers
properties:
foo:
description: Foo is an example field of Lakers. Edit Lakers_types.go
description: Foo is an example field of Lakers. Edit lakers_types.go
to remove/update
type: string
type: object
Expand Down
Loading