fix: mark oauth client metadata nullable and optional

This commit is contained in:
Roman Lytvyn 2021-06-03 20:14:06 +02:00
parent d9eeaace15
commit 1bd0d394b0
2 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,8 @@ type OAuth2ClientSpec struct {
TokenEndpointAuthMethod TokenEndpointAuthMethod `json:"tokenEndpointAuthMethod,omitempty"` TokenEndpointAuthMethod TokenEndpointAuthMethod `json:"tokenEndpointAuthMethod,omitempty"`
// +kubebuilder:validation:Type=object // +kubebuilder:validation:Type=object
// +nullable
// +optional
// //
// Metadata is abritrary data // Metadata is abritrary data
Metadata apiextensionsv1.JSON `json:"metadata,omitempty"` Metadata apiextensionsv1.JSON `json:"metadata,omitempty"`

View File

@ -99,6 +99,7 @@ spec:
type: object type: object
metadata: metadata:
description: Metadata is abritrary data description: Metadata is abritrary data
nullable: true
type: object type: object
x-kubernetes-preserve-unknown-fields: true x-kubernetes-preserve-unknown-fields: true
postLogoutRedirectUris: postLogoutRedirectUris: