Skip to content

Commit

Permalink
tool: fix the types.go template
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyih committed Feb 5, 2025
1 parent 2aa4fe3 commit 698d83c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions apis/iap/v1alpha1/iapsettings_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ type IAPSettingsStatus struct {
// ObservedState *IAPSettingsObservedState `json:"observedState,omitempty"`
}

// IAPSettingsSpec defines the desired state of IAPSettings
// +kcc:proto=google.cloud.iap.v1.IapSettings
// IAPSettingsObservedState is the state of the IAPSettings resource as most recently observed in GCP.
// +kcc:proto=google.cloud.iap.v1.IapSettings
// NOTYET: there is no output only field
// type IAPSettingsObservedState struct {
// }
Expand Down
3 changes: 1 addition & 2 deletions apis/managedkafka/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ type ManagedKafkaClusterStatus struct {
ObservedState *ManagedKafkaClusterObservedState `json:"observedState,omitempty"`
}

// ManagedKafkaClusterSpec defines the desired state of ManagedKafkaCluster
// +kcc:proto=google.cloud.managedkafka.v1.Cluster
// ManagedKafkaClusterObservedState is the state of the ManagedKafkaCluster resource as most recently observed in GCP.
// +kcc:proto=google.cloud.managedkafka.v1.Cluster
type ManagedKafkaClusterObservedState struct {
// Identifier. The name of the cluster. Structured like:
// projects/{project_number}/locations/{location}/clusters/{cluster_id}
Expand Down
3 changes: 1 addition & 2 deletions apis/managedkafka/v1alpha1/topic_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ type ManagedKafkaTopicStatus struct {
ObservedState *ManagedKafkaTopicObservedState `json:"observedState,omitempty"`
}

// ManagedKafkaTopicSpec defines the desired state of ManagedKafkaTopic
// +kcc:proto=google.cloud.managedkafka.v1.Topic
// ManagedKafkaTopicObservedState is the state of the ManagedKafkaTopic resource as most recently observed in GCP.
// +kcc:proto=google.cloud.managedkafka.v1.Topic
type ManagedKafkaTopicObservedState struct {
// Identifier. The name of the topic. The `topic` segment is used when
// connecting directly to the cluster. Structured like:
Expand Down
3 changes: 1 addition & 2 deletions dev/tools/controllerbuilder/template/apis/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ type {{ .Kind }}Status struct {
ObservedState *{{ .Kind }}ObservedState ` + "`" + `json:"observedState,omitempty"` + "`" + `
}
// {{ .Kind }}Spec defines the desired state of {{ .Kind }}
// {{ .Kind }}ObservedState is the state of the {{ .Kind }} resource as most recently observed in GCP.
{{- if .KindProtoTag }}
// +kcc:proto={{ .KindProtoTag }}
{{- end }}
// {{ .Kind }}ObservedState is the state of the {{ .Kind }} resource as most recently observed in GCP.
type {{ .Kind }}ObservedState struct {
}
Expand Down

0 comments on commit 698d83c

Please sign in to comment.