Skip to content

Commit

Permalink
Merge pull request #1927 from south37/use-lowered-resource-kind-as-fi…
Browse files Browse the repository at this point in the history
…le-name

🐛 Use correct file name in the comments of `[kind]_types.go`
  • Loading branch information
k8s-ci-robot committed Jan 6, 2021
2 parents 23b7082 + aa9c2e0 commit f660017
Show file tree
Hide file tree
Showing 50 changed files with 50 additions and 50 deletions.
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

0 comments on commit f660017

Please sign in to comment.