Make fields optional on OIDCClientSecretRequest

This commit is contained in:
Ryan Richard 2022-09-16 13:23:02 -07:00
parent 6d863a159b
commit 7997285b19
33 changed files with 121 additions and 43 deletions

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -113,7 +113,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -191,7 +191,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -113,7 +113,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -191,7 +191,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -114,7 +114,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -192,7 +192,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -117,7 +117,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -199,7 +199,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -117,7 +117,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -199,7 +199,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -117,7 +117,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -199,7 +199,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -117,7 +117,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -199,7 +199,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -117,7 +117,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -199,7 +199,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -117,7 +117,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -199,7 +199,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -14,15 +14,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta // metadata.name must be set to the client ID metav1.ObjectMeta // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec Spec OIDCClientSecretRequestSpec
// +optional
Status OIDCClientSecretRequestStatus Status OIDCClientSecretRequestStatus
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool GenerateNewSecret bool
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool RevokeOldSecrets bool
} }

View File

@ -17,15 +17,19 @@ type OIDCClientSecretRequest struct {
metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID metav1.ObjectMeta `json:"metadata,omitempty"` // metadata.name must be set to the client ID
Spec OIDCClientSecretRequestSpec `json:"spec"` Spec OIDCClientSecretRequestSpec `json:"spec"`
// +optional
Status OIDCClientSecretRequestStatus `json:"status"` Status OIDCClientSecretRequestStatus `json:"status"`
} }
// Spec of the OIDCClientSecretRequest. // Spec of the OIDCClientSecretRequest.
type OIDCClientSecretRequestSpec struct { type OIDCClientSecretRequestSpec struct {
// Request a new client secret to for the OIDCClient referenced by the metadata.name field. // Request a new client secret to for the OIDCClient referenced by the metadata.name field.
// +optional
GenerateNewSecret bool `json:"generateNewSecret"` GenerateNewSecret bool `json:"generateNewSecret"`
// Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field. // Revoke the old client secrets associated with the OIDCClient referenced by the metadata.name field.
// +optional
RevokeOldSecrets bool `json:"revokeOldSecrets"` RevokeOldSecrets bool `json:"revokeOldSecrets"`
} }

View File

@ -117,7 +117,7 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequest(ref co
}, },
}, },
}, },
Required: []string{"spec", "status"}, Required: []string{"spec"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
@ -199,7 +199,6 @@ func schema_apis_supervisor_clientsecret_v1alpha1_OIDCClientSecretRequestSpec(re
}, },
}, },
}, },
Required: []string{"generateNewSecret", "revokeOldSecrets"},
}, },
}, },
} }

View File

@ -136,7 +136,7 @@ echo "generating API-related code for our public API groups..."
echo "generating API-related code for our internal API groups..." echo "generating API-related code for our internal API groups..."
(cd apis && (cd apis &&
OPENAPI_EXTRA_PACKAGES="k8s.io/api/core/v1" \ OPENAPI_EXTRA_PACKAGES="k8s.io/api/core/v1" \
bash -x "${GOPATH}/src/k8s.io/code-generator/generate-internal-groups.sh" \ bash "${GOPATH}/src/k8s.io/code-generator/generate-internal-groups.sh" \
"deepcopy,defaulter,conversion,openapi" \ "deepcopy,defaulter,conversion,openapi" \
"${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/client/concierge" \ "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/client/concierge" \
"${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/apis" \ "${BASE_PKG}/generated/${KUBE_MINOR_VERSION}/apis" \