Skip to content

Commit 52df1c3

Browse files
committed
Bump controller-gen to v0.9.2.
With the latest controller-gen, leading and trailing whitespace is stripped from the generated description text, and topology markers (e.g. +structType, +mapType) are now being recognized when applied to types as well as fields.
1 parent 66f8283 commit 52df1c3

31 files changed

+257
-214
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GO_BUILD_PACKAGES :=$(GO_PACKAGES)
1717
GO_BUILD_PACKAGES_EXPANDED :=$(GO_BUILD_PACKAGES)
1818
# LDFLAGS are not needed for dummy builds (saving time on calling git commands)
1919
GO_LD_FLAGS:=
20-
CONTROLLER_GEN_VERSION :=v0.7.0
20+
CONTROLLER_GEN_VERSION :=v0.9.2
2121

2222
# $1 - target name
2323
# $2 - apis

apiserver/v1/apiserver.openshift.io_apirequestcount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ spec:
6767
description: conditions contains details of the current status of this API Resource.
6868
type: array
6969
items:
70-
description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n \ttype FooStatus struct{ \t // Represents the observations of a foo's current state. \t // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" \t // +patchMergeKey=type \t // +patchStrategy=merge \t // +listType=map \t // +listMapKey=type \t Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n \t // other fields \t}"
70+
description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
7171
type: object
7272
required:
7373
- lastTransitionTime

authorization/v1/0000_03_authorization-openshift_01_rolebindingrestriction.crd.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ spec:
7777
type: object
7878
additionalProperties:
7979
type: string
80+
x-kubernetes-map-type: atomic
8081
nullable: true
8182
nullable: true
8283
serviceaccountrestriction:
@@ -145,6 +146,7 @@ spec:
145146
type: object
146147
additionalProperties:
147148
type: string
149+
x-kubernetes-map-type: atomic
148150
nullable: true
149151
users:
150152
description: Users specifies a list of literal user names.

authorization/v1/generated.pb.go

Lines changed: 59 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudnetwork/v1/001-cloudprivateipconfig.crd.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,12 @@ spec:
6666
description: "Condition contains details for one aspect of the current
6767
state of this API Resource. --- This struct is intended for direct
6868
use as an array at the field path .status.conditions. For example,
69-
\n \ttype FooStatus struct{ \t // Represents the observations
70-
of a foo's current state. \t // Known .status.conditions.type
71-
are: \"Available\", \"Progressing\", and \"Degraded\" \t //
72-
+patchMergeKey=type \t // +patchStrategy=merge \t // +listType=map
73-
\t // +listMapKey=type \t Conditions []metav1.Condition
69+
\n type FooStatus struct{ // Represents the observations of a
70+
foo's current state. // Known .status.conditions.type are: \"Available\",
71+
\"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge
72+
// +listType=map // +listMapKey=type Conditions []metav1.Condition
7473
`json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\"
75-
protobuf:\"bytes,1,rep,name=conditions\"` \n \t // other fields
76-
\t}"
74+
protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
7775
properties:
7876
lastTransitionTime:
7977
description: lastTransitionTime is the last time the condition

config/v1/0000_00_cluster-version-operator_01_clusterversion.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ spec:
208208
description: 'conditions represents the observations of the conditional update''s current status. Known types are: * Evaluating, for whether the cluster-version operator will attempt to evaluate any risks[].matchingRules. * Recommended, for whether the update is recommended for the current cluster.'
209209
type: array
210210
items:
211-
description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n \ttype FooStatus struct{ \t // Represents the observations of a foo's current state. \t // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" \t // +patchMergeKey=type \t // +patchStrategy=merge \t // +listType=map \t // +listMapKey=type \t Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n \t // other fields \t}"
211+
description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, \n type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
212212
type: object
213213
required:
214214
- lastTransitionTime

0 commit comments

Comments
 (0)