Skip to content

Commit ca32842

Browse files
committed
Fix invalid kubebuilder code gen markers
1 parent 5bc61e5 commit ca32842

File tree

7 files changed

+15
-7
lines changed

7 files changed

+15
-7
lines changed

api/bindings/v1alpha1/boundendpoint_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ type EndpointTarget struct {
114114
Port int32 `json:"port"`
115115

116116
// Metadata is a subset of metav1.ObjectMeta that is added to the Service
117-
// +kube:validation:Optional
117+
// +kubebuilder:validation:Optional
118118
Metadata TargetMetadata `json:"metadata,omitempty"`
119119
}
120120

api/ngrok/v1alpha1/agentendpoint_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ type AgentEndpointSpec struct {
137137
//
138138
// +kubebuilder:validation:Optional
139139
// +kubebuilder:validation:MaxItems=1
140-
// +kubebuilder:validation:Items=pattern=`^(public|internal|kubernetes)$`
140+
// +kubebuilder:validation:items:Pattern=`^(public|internal|kubernetes)$`
141141
Bindings []string `json:"bindings,omitempty"`
142142

143143
// List of client certificates to present to the upstream when performing a TLS handshake
@@ -194,7 +194,7 @@ type AgentEndpointStatus struct {
194194
// DomainRef is a reference to the Domain resource associated with this endpoint.
195195
// For internal endpoints, this will be nil.
196196
// +kubebuilder:validation:Optional
197-
// +kubebuilder:validation:Nullable
197+
// +nullable
198198
DomainRef *K8sObjectRefOptionalNamespace `json:"domainRef"`
199199

200200
// Conditions describe the current conditions of the AgentEndpoint.

api/ngrok/v1alpha1/cloudendpoint_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type CloudEndpointSpec struct {
7979
//
8080
// +kubebuilder:validation:Optional
8181
// +kubebuilder:validation:MaxItems=1
82-
// +kubebuilder:validation:Items=pattern=`^(public|internal|kubernetes)$`
82+
// +kubebuilder:validation:items:Pattern=`^(public|internal|kubernetes)$`
8383
Bindings []string `json:"bindings,omitempty"`
8484
}
8585

@@ -91,7 +91,7 @@ type CloudEndpointStatus struct {
9191
// DomainRef is a reference to the Domain resource associated with this endpoint.
9292
// For internal endpoints, this will be nil.
9393
// +kubebuilder:validation:Optional
94-
// +kubebuilder:validation:Nullable
94+
// +nullable
9595
DomainRef *K8sObjectRefOptionalNamespace `json:"domainRef"`
9696

9797
// Conditions describe the current conditions of the AgentEndpoint.

api/ngrok/v1alpha1/kubernetesoperator_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ type KubernetesOperatorStatus struct {
6464
URI string `json:"uri,omitempty"`
6565

6666
// RegistrationStatus is the status of the registration of this Kubernetes Operator with the ngrok API
67-
// +kube:validation:Enum=registered;error;pending
67+
// +kubebuilder:validation:Enum=registered;error;pending
6868
// +kubebuilder:default="pending"
6969
RegistrationStatus string `json:"registrationStatus,omitempty"`
7070

7171
// RegistrationErrorCode is the returned ngrok error code
72-
// +kube:validation:Optional
72+
// +kubebuilder:validation:Optional
7373
// +kubebuilder:validation:Pattern=`^ERR_NGROK_\d+$`
7474
RegistrationErrorCode string `json:"registrationErrorCode,omitempty"`
7575

helm/ngrok-operator/templates/crds/ngrok.k8s.ngrok.com_agentendpoints.yaml

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

helm/ngrok-operator/templates/crds/ngrok.k8s.ngrok.com_cloudendpoints.yaml

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

helm/ngrok-operator/templates/crds/ngrok.k8s.ngrok.com_kubernetesoperators.yaml

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

0 commit comments

Comments
 (0)