Update generated code from previous commit.

This commit is contained in:
Matt Moyer 2021-05-19 11:39:53 -05:00
parent 54e0b83146
commit 13372a43e6
No known key found for this signature in database
GPG Key ID: EAE88AD172C5AE2D
19 changed files with 96 additions and 156 deletions

View File

@ -37,31 +37,20 @@ spec:
metadata: metadata:
type: object type: object
spec: spec:
default:
impersonationProxy:
mode: disabled
service:
type: LoadBalancer
description: Spec describes the intended configuration of the Concierge. description: Spec describes the intended configuration of the Concierge.
properties: properties:
impersonationProxy: impersonationProxy:
default:
mode: disabled
service:
type: LoadBalancer
description: ImpersonationProxy describes the intended configuration description: ImpersonationProxy describes the intended configuration
of the Concierge impersonation proxy. of the Concierge impersonation proxy.
properties: properties:
externalEndpoint: externalEndpoint:
description: "ExternalEndpoint describes the HTTPS endpoint where description: "ExternalEndpoint describes the HTTPS endpoint where
the proxy will be exposed. If the proxy is enabled and this the proxy will be exposed. If not set, the proxy will be served
field is not set, a Service of type LoadBalancer will be automatically using the external name of the LoadBalancer service or the cluster
provisioned and its external name will be advertised. \n Setting service DNS name. \n This field must be non-empty when spec.impersonationProxy.service.mode
this field disables the automatic creation of this LoadBalancer is \"None\"."
Service."
type: string type: string
mode: mode:
default: disabled
description: 'Mode configures whether the impersonation proxy description: 'Mode configures whether the impersonation proxy
should be started: - "disabled" explicitly disables the impersonation should be started: - "disabled" explicitly disables the impersonation
proxy. This is the default. - "enabled" explicitly enables the proxy. This is the default. - "enabled" explicitly enables the
@ -75,7 +64,8 @@ spec:
service: service:
default: default:
type: LoadBalancer type: LoadBalancer
description: Service describes the configuraiton description: Service describes the configuration of the Service
provisioned to expose the impersonation proxy to clients.
properties: properties:
annotations: annotations:
additionalProperties: additionalProperties:

View File

@ -398,7 +398,7 @@ ImpersonationProxyServiceSpec describes how the Concierge should provision a Ser
[id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-concierge-config-v1alpha1-impersonationproxyspec"] [id="{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-concierge-config-v1alpha1-impersonationproxyspec"]
==== ImpersonationProxySpec ==== ImpersonationProxySpec
ImpersonationProxySpec describes the intended configuration of the Concierge impersonation proxy.
.Appears In: .Appears In:
**** ****
@ -409,9 +409,9 @@ ImpersonationProxySpec describes the intended configuration of the Concierge imp
|=== |===
| Field | Description | Field | Description
| *`mode`* __ImpersonationProxyMode__ | Mode configures whether the impersonation proxy should be started: - "disabled" explicitly disables the impersonation proxy. This is the default. - "enabled" explicitly enables the impersonation proxy. - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. | *`mode`* __ImpersonationProxyMode__ | Mode configures whether the impersonation proxy should be started: - "disabled" explicitly disables the impersonation proxy. This is the default. - "enabled" explicitly enables the impersonation proxy. - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
| *`service`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-concierge-config-v1alpha1-impersonationproxyservicespec[$$ImpersonationProxyServiceSpec$$]__ | Service describes the configuraiton | *`service`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-17-apis-concierge-config-v1alpha1-impersonationproxyservicespec[$$ImpersonationProxyServiceSpec$$]__ | Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
| *`externalEndpoint`* __string__ | ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be advertised. | *`externalEndpoint`* __string__ | ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will be served using the external name of the LoadBalancer service or the cluster service DNS name.
Setting this field disables the automatic creation of this LoadBalancer Service. This field must be non-empty when spec.impersonationProxy.service.mode is "None".
|=== |===

View File

@ -45,9 +45,7 @@ const (
// CredentialIssuerSpec describes the intended configuration of the Concierge. // CredentialIssuerSpec describes the intended configuration of the Concierge.
type CredentialIssuerSpec struct { type CredentialIssuerSpec struct {
// ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy. // ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy.
// ImpersonationProxy *ImpersonationProxySpec `json:"impersonationProxy"`
//+kubebuilder:default:={"mode": "disabled", "service": {"type": "LoadBalancer"}}
ImpersonationProxy ImpersonationProxySpec `json:"impersonationProxy"`
} }
// ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy. // ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy.
@ -88,20 +86,17 @@ type ImpersonationProxySpec struct {
// - "disabled" explicitly disables the impersonation proxy. This is the default. // - "disabled" explicitly disables the impersonation proxy. This is the default.
// - "enabled" explicitly enables the impersonation proxy. // - "enabled" explicitly enables the impersonation proxy.
// - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. // - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
//
// +kubebuilder:default:="disabled"
Mode ImpersonationProxyMode `json:"mode"` Mode ImpersonationProxyMode `json:"mode"`
// Service describes the configuraiton // Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
// //
// +kubebuilder:default:={"type": "LoadBalancer"} // +kubebuilder:default:={"type": "LoadBalancer"}
Service ImpersonationProxyServiceSpec `json:"service"` Service ImpersonationProxyServiceSpec `json:"service"`
// ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this // ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will
// field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be // be served using the external name of the LoadBalancer service or the cluster service DNS name.
// advertised.
// //
// Setting this field disables the automatic creation of this LoadBalancer Service. // This field must be non-empty when spec.impersonationProxy.service.mode is "None".
// //
// +optional // +optional
ExternalEndpoint string `json:"externalEndpoint,omitempty"` ExternalEndpoint string `json:"externalEndpoint,omitempty"`
@ -228,7 +223,6 @@ type CredentialIssuer struct {
// Spec describes the intended configuration of the Concierge. // Spec describes the intended configuration of the Concierge.
// //
// +optional // +optional
// +kubebuilder:default:={"impersonationProxy": {"mode": "disabled", "service": {"type": "LoadBalancer"}}}
Spec CredentialIssuerSpec `json:"spec"` Spec CredentialIssuerSpec `json:"spec"`
// CredentialIssuerStatus describes the status of the Concierge. // CredentialIssuerStatus describes the status of the Concierge.

View File

@ -117,7 +117,11 @@ func (in *CredentialIssuerList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) { func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) {
*out = *in *out = *in
in.ImpersonationProxy.DeepCopyInto(&out.ImpersonationProxy) if in.ImpersonationProxy != nil {
in, out := &in.ImpersonationProxy, &out.ImpersonationProxy
*out = new(ImpersonationProxySpec)
(*in).DeepCopyInto(*out)
}
return return
} }

View File

@ -37,31 +37,20 @@ spec:
metadata: metadata:
type: object type: object
spec: spec:
default:
impersonationProxy:
mode: disabled
service:
type: LoadBalancer
description: Spec describes the intended configuration of the Concierge. description: Spec describes the intended configuration of the Concierge.
properties: properties:
impersonationProxy: impersonationProxy:
default:
mode: disabled
service:
type: LoadBalancer
description: ImpersonationProxy describes the intended configuration description: ImpersonationProxy describes the intended configuration
of the Concierge impersonation proxy. of the Concierge impersonation proxy.
properties: properties:
externalEndpoint: externalEndpoint:
description: "ExternalEndpoint describes the HTTPS endpoint where description: "ExternalEndpoint describes the HTTPS endpoint where
the proxy will be exposed. If the proxy is enabled and this the proxy will be exposed. If not set, the proxy will be served
field is not set, a Service of type LoadBalancer will be automatically using the external name of the LoadBalancer service or the cluster
provisioned and its external name will be advertised. \n Setting service DNS name. \n This field must be non-empty when spec.impersonationProxy.service.mode
this field disables the automatic creation of this LoadBalancer is \"None\"."
Service."
type: string type: string
mode: mode:
default: disabled
description: 'Mode configures whether the impersonation proxy description: 'Mode configures whether the impersonation proxy
should be started: - "disabled" explicitly disables the impersonation should be started: - "disabled" explicitly disables the impersonation
proxy. This is the default. - "enabled" explicitly enables the proxy. This is the default. - "enabled" explicitly enables the
@ -75,7 +64,8 @@ spec:
service: service:
default: default:
type: LoadBalancer type: LoadBalancer
description: Service describes the configuraiton description: Service describes the configuration of the Service
provisioned to expose the impersonation proxy to clients.
properties: properties:
annotations: annotations:
additionalProperties: additionalProperties:

View File

@ -398,7 +398,7 @@ ImpersonationProxyServiceSpec describes how the Concierge should provision a Ser
[id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-concierge-config-v1alpha1-impersonationproxyspec"] [id="{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-concierge-config-v1alpha1-impersonationproxyspec"]
==== ImpersonationProxySpec ==== ImpersonationProxySpec
ImpersonationProxySpec describes the intended configuration of the Concierge impersonation proxy.
.Appears In: .Appears In:
**** ****
@ -409,9 +409,9 @@ ImpersonationProxySpec describes the intended configuration of the Concierge imp
|=== |===
| Field | Description | Field | Description
| *`mode`* __ImpersonationProxyMode__ | Mode configures whether the impersonation proxy should be started: - "disabled" explicitly disables the impersonation proxy. This is the default. - "enabled" explicitly enables the impersonation proxy. - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. | *`mode`* __ImpersonationProxyMode__ | Mode configures whether the impersonation proxy should be started: - "disabled" explicitly disables the impersonation proxy. This is the default. - "enabled" explicitly enables the impersonation proxy. - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
| *`service`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-concierge-config-v1alpha1-impersonationproxyservicespec[$$ImpersonationProxyServiceSpec$$]__ | Service describes the configuraiton | *`service`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-18-apis-concierge-config-v1alpha1-impersonationproxyservicespec[$$ImpersonationProxyServiceSpec$$]__ | Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
| *`externalEndpoint`* __string__ | ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be advertised. | *`externalEndpoint`* __string__ | ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will be served using the external name of the LoadBalancer service or the cluster service DNS name.
Setting this field disables the automatic creation of this LoadBalancer Service. This field must be non-empty when spec.impersonationProxy.service.mode is "None".
|=== |===

View File

@ -45,9 +45,7 @@ const (
// CredentialIssuerSpec describes the intended configuration of the Concierge. // CredentialIssuerSpec describes the intended configuration of the Concierge.
type CredentialIssuerSpec struct { type CredentialIssuerSpec struct {
// ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy. // ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy.
// ImpersonationProxy *ImpersonationProxySpec `json:"impersonationProxy"`
//+kubebuilder:default:={"mode": "disabled", "service": {"type": "LoadBalancer"}}
ImpersonationProxy ImpersonationProxySpec `json:"impersonationProxy"`
} }
// ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy. // ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy.
@ -88,20 +86,17 @@ type ImpersonationProxySpec struct {
// - "disabled" explicitly disables the impersonation proxy. This is the default. // - "disabled" explicitly disables the impersonation proxy. This is the default.
// - "enabled" explicitly enables the impersonation proxy. // - "enabled" explicitly enables the impersonation proxy.
// - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. // - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
//
// +kubebuilder:default:="disabled"
Mode ImpersonationProxyMode `json:"mode"` Mode ImpersonationProxyMode `json:"mode"`
// Service describes the configuraiton // Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
// //
// +kubebuilder:default:={"type": "LoadBalancer"} // +kubebuilder:default:={"type": "LoadBalancer"}
Service ImpersonationProxyServiceSpec `json:"service"` Service ImpersonationProxyServiceSpec `json:"service"`
// ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this // ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will
// field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be // be served using the external name of the LoadBalancer service or the cluster service DNS name.
// advertised.
// //
// Setting this field disables the automatic creation of this LoadBalancer Service. // This field must be non-empty when spec.impersonationProxy.service.mode is "None".
// //
// +optional // +optional
ExternalEndpoint string `json:"externalEndpoint,omitempty"` ExternalEndpoint string `json:"externalEndpoint,omitempty"`
@ -228,7 +223,6 @@ type CredentialIssuer struct {
// Spec describes the intended configuration of the Concierge. // Spec describes the intended configuration of the Concierge.
// //
// +optional // +optional
// +kubebuilder:default:={"impersonationProxy": {"mode": "disabled", "service": {"type": "LoadBalancer"}}}
Spec CredentialIssuerSpec `json:"spec"` Spec CredentialIssuerSpec `json:"spec"`
// CredentialIssuerStatus describes the status of the Concierge. // CredentialIssuerStatus describes the status of the Concierge.

View File

@ -117,7 +117,11 @@ func (in *CredentialIssuerList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) { func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) {
*out = *in *out = *in
in.ImpersonationProxy.DeepCopyInto(&out.ImpersonationProxy) if in.ImpersonationProxy != nil {
in, out := &in.ImpersonationProxy, &out.ImpersonationProxy
*out = new(ImpersonationProxySpec)
(*in).DeepCopyInto(*out)
}
return return
} }

View File

@ -37,31 +37,20 @@ spec:
metadata: metadata:
type: object type: object
spec: spec:
default:
impersonationProxy:
mode: disabled
service:
type: LoadBalancer
description: Spec describes the intended configuration of the Concierge. description: Spec describes the intended configuration of the Concierge.
properties: properties:
impersonationProxy: impersonationProxy:
default:
mode: disabled
service:
type: LoadBalancer
description: ImpersonationProxy describes the intended configuration description: ImpersonationProxy describes the intended configuration
of the Concierge impersonation proxy. of the Concierge impersonation proxy.
properties: properties:
externalEndpoint: externalEndpoint:
description: "ExternalEndpoint describes the HTTPS endpoint where description: "ExternalEndpoint describes the HTTPS endpoint where
the proxy will be exposed. If the proxy is enabled and this the proxy will be exposed. If not set, the proxy will be served
field is not set, a Service of type LoadBalancer will be automatically using the external name of the LoadBalancer service or the cluster
provisioned and its external name will be advertised. \n Setting service DNS name. \n This field must be non-empty when spec.impersonationProxy.service.mode
this field disables the automatic creation of this LoadBalancer is \"None\"."
Service."
type: string type: string
mode: mode:
default: disabled
description: 'Mode configures whether the impersonation proxy description: 'Mode configures whether the impersonation proxy
should be started: - "disabled" explicitly disables the impersonation should be started: - "disabled" explicitly disables the impersonation
proxy. This is the default. - "enabled" explicitly enables the proxy. This is the default. - "enabled" explicitly enables the
@ -75,7 +64,8 @@ spec:
service: service:
default: default:
type: LoadBalancer type: LoadBalancer
description: Service describes the configuraiton description: Service describes the configuration of the Service
provisioned to expose the impersonation proxy to clients.
properties: properties:
annotations: annotations:
additionalProperties: additionalProperties:

View File

@ -398,7 +398,7 @@ ImpersonationProxyServiceSpec describes how the Concierge should provision a Ser
[id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-concierge-config-v1alpha1-impersonationproxyspec"] [id="{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-concierge-config-v1alpha1-impersonationproxyspec"]
==== ImpersonationProxySpec ==== ImpersonationProxySpec
ImpersonationProxySpec describes the intended configuration of the Concierge impersonation proxy.
.Appears In: .Appears In:
**** ****
@ -409,9 +409,9 @@ ImpersonationProxySpec describes the intended configuration of the Concierge imp
|=== |===
| Field | Description | Field | Description
| *`mode`* __ImpersonationProxyMode__ | Mode configures whether the impersonation proxy should be started: - "disabled" explicitly disables the impersonation proxy. This is the default. - "enabled" explicitly enables the impersonation proxy. - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. | *`mode`* __ImpersonationProxyMode__ | Mode configures whether the impersonation proxy should be started: - "disabled" explicitly disables the impersonation proxy. This is the default. - "enabled" explicitly enables the impersonation proxy. - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
| *`service`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-concierge-config-v1alpha1-impersonationproxyservicespec[$$ImpersonationProxyServiceSpec$$]__ | Service describes the configuraiton | *`service`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-19-apis-concierge-config-v1alpha1-impersonationproxyservicespec[$$ImpersonationProxyServiceSpec$$]__ | Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
| *`externalEndpoint`* __string__ | ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be advertised. | *`externalEndpoint`* __string__ | ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will be served using the external name of the LoadBalancer service or the cluster service DNS name.
Setting this field disables the automatic creation of this LoadBalancer Service. This field must be non-empty when spec.impersonationProxy.service.mode is "None".
|=== |===

View File

@ -45,9 +45,7 @@ const (
// CredentialIssuerSpec describes the intended configuration of the Concierge. // CredentialIssuerSpec describes the intended configuration of the Concierge.
type CredentialIssuerSpec struct { type CredentialIssuerSpec struct {
// ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy. // ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy.
// ImpersonationProxy *ImpersonationProxySpec `json:"impersonationProxy"`
//+kubebuilder:default:={"mode": "disabled", "service": {"type": "LoadBalancer"}}
ImpersonationProxy ImpersonationProxySpec `json:"impersonationProxy"`
} }
// ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy. // ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy.
@ -88,20 +86,17 @@ type ImpersonationProxySpec struct {
// - "disabled" explicitly disables the impersonation proxy. This is the default. // - "disabled" explicitly disables the impersonation proxy. This is the default.
// - "enabled" explicitly enables the impersonation proxy. // - "enabled" explicitly enables the impersonation proxy.
// - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. // - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
//
// +kubebuilder:default:="disabled"
Mode ImpersonationProxyMode `json:"mode"` Mode ImpersonationProxyMode `json:"mode"`
// Service describes the configuraiton // Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
// //
// +kubebuilder:default:={"type": "LoadBalancer"} // +kubebuilder:default:={"type": "LoadBalancer"}
Service ImpersonationProxyServiceSpec `json:"service"` Service ImpersonationProxyServiceSpec `json:"service"`
// ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this // ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will
// field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be // be served using the external name of the LoadBalancer service or the cluster service DNS name.
// advertised.
// //
// Setting this field disables the automatic creation of this LoadBalancer Service. // This field must be non-empty when spec.impersonationProxy.service.mode is "None".
// //
// +optional // +optional
ExternalEndpoint string `json:"externalEndpoint,omitempty"` ExternalEndpoint string `json:"externalEndpoint,omitempty"`
@ -228,7 +223,6 @@ type CredentialIssuer struct {
// Spec describes the intended configuration of the Concierge. // Spec describes the intended configuration of the Concierge.
// //
// +optional // +optional
// +kubebuilder:default:={"impersonationProxy": {"mode": "disabled", "service": {"type": "LoadBalancer"}}}
Spec CredentialIssuerSpec `json:"spec"` Spec CredentialIssuerSpec `json:"spec"`
// CredentialIssuerStatus describes the status of the Concierge. // CredentialIssuerStatus describes the status of the Concierge.

View File

@ -117,7 +117,11 @@ func (in *CredentialIssuerList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) { func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) {
*out = *in *out = *in
in.ImpersonationProxy.DeepCopyInto(&out.ImpersonationProxy) if in.ImpersonationProxy != nil {
in, out := &in.ImpersonationProxy, &out.ImpersonationProxy
*out = new(ImpersonationProxySpec)
(*in).DeepCopyInto(*out)
}
return return
} }

View File

@ -37,31 +37,20 @@ spec:
metadata: metadata:
type: object type: object
spec: spec:
default:
impersonationProxy:
mode: disabled
service:
type: LoadBalancer
description: Spec describes the intended configuration of the Concierge. description: Spec describes the intended configuration of the Concierge.
properties: properties:
impersonationProxy: impersonationProxy:
default:
mode: disabled
service:
type: LoadBalancer
description: ImpersonationProxy describes the intended configuration description: ImpersonationProxy describes the intended configuration
of the Concierge impersonation proxy. of the Concierge impersonation proxy.
properties: properties:
externalEndpoint: externalEndpoint:
description: "ExternalEndpoint describes the HTTPS endpoint where description: "ExternalEndpoint describes the HTTPS endpoint where
the proxy will be exposed. If the proxy is enabled and this the proxy will be exposed. If not set, the proxy will be served
field is not set, a Service of type LoadBalancer will be automatically using the external name of the LoadBalancer service or the cluster
provisioned and its external name will be advertised. \n Setting service DNS name. \n This field must be non-empty when spec.impersonationProxy.service.mode
this field disables the automatic creation of this LoadBalancer is \"None\"."
Service."
type: string type: string
mode: mode:
default: disabled
description: 'Mode configures whether the impersonation proxy description: 'Mode configures whether the impersonation proxy
should be started: - "disabled" explicitly disables the impersonation should be started: - "disabled" explicitly disables the impersonation
proxy. This is the default. - "enabled" explicitly enables the proxy. This is the default. - "enabled" explicitly enables the
@ -75,7 +64,8 @@ spec:
service: service:
default: default:
type: LoadBalancer type: LoadBalancer
description: Service describes the configuraiton description: Service describes the configuration of the Service
provisioned to expose the impersonation proxy to clients.
properties: properties:
annotations: annotations:
additionalProperties: additionalProperties:

View File

@ -398,7 +398,7 @@ ImpersonationProxyServiceSpec describes how the Concierge should provision a Ser
[id="{anchor_prefix}-go-pinniped-dev-generated-1-20-apis-concierge-config-v1alpha1-impersonationproxyspec"] [id="{anchor_prefix}-go-pinniped-dev-generated-1-20-apis-concierge-config-v1alpha1-impersonationproxyspec"]
==== ImpersonationProxySpec ==== ImpersonationProxySpec
ImpersonationProxySpec describes the intended configuration of the Concierge impersonation proxy.
.Appears In: .Appears In:
**** ****
@ -409,9 +409,9 @@ ImpersonationProxySpec describes the intended configuration of the Concierge imp
|=== |===
| Field | Description | Field | Description
| *`mode`* __ImpersonationProxyMode__ | Mode configures whether the impersonation proxy should be started: - "disabled" explicitly disables the impersonation proxy. This is the default. - "enabled" explicitly enables the impersonation proxy. - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. | *`mode`* __ImpersonationProxyMode__ | Mode configures whether the impersonation proxy should be started: - "disabled" explicitly disables the impersonation proxy. This is the default. - "enabled" explicitly enables the impersonation proxy. - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
| *`service`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-20-apis-concierge-config-v1alpha1-impersonationproxyservicespec[$$ImpersonationProxyServiceSpec$$]__ | Service describes the configuraiton | *`service`* __xref:{anchor_prefix}-go-pinniped-dev-generated-1-20-apis-concierge-config-v1alpha1-impersonationproxyservicespec[$$ImpersonationProxyServiceSpec$$]__ | Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
| *`externalEndpoint`* __string__ | ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be advertised. | *`externalEndpoint`* __string__ | ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will be served using the external name of the LoadBalancer service or the cluster service DNS name.
Setting this field disables the automatic creation of this LoadBalancer Service. This field must be non-empty when spec.impersonationProxy.service.mode is "None".
|=== |===

View File

@ -45,9 +45,7 @@ const (
// CredentialIssuerSpec describes the intended configuration of the Concierge. // CredentialIssuerSpec describes the intended configuration of the Concierge.
type CredentialIssuerSpec struct { type CredentialIssuerSpec struct {
// ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy. // ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy.
// ImpersonationProxy *ImpersonationProxySpec `json:"impersonationProxy"`
//+kubebuilder:default:={"mode": "disabled", "service": {"type": "LoadBalancer"}}
ImpersonationProxy ImpersonationProxySpec `json:"impersonationProxy"`
} }
// ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy. // ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy.
@ -88,20 +86,17 @@ type ImpersonationProxySpec struct {
// - "disabled" explicitly disables the impersonation proxy. This is the default. // - "disabled" explicitly disables the impersonation proxy. This is the default.
// - "enabled" explicitly enables the impersonation proxy. // - "enabled" explicitly enables the impersonation proxy.
// - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. // - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
//
// +kubebuilder:default:="disabled"
Mode ImpersonationProxyMode `json:"mode"` Mode ImpersonationProxyMode `json:"mode"`
// Service describes the configuraiton // Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
// //
// +kubebuilder:default:={"type": "LoadBalancer"} // +kubebuilder:default:={"type": "LoadBalancer"}
Service ImpersonationProxyServiceSpec `json:"service"` Service ImpersonationProxyServiceSpec `json:"service"`
// ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this // ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will
// field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be // be served using the external name of the LoadBalancer service or the cluster service DNS name.
// advertised.
// //
// Setting this field disables the automatic creation of this LoadBalancer Service. // This field must be non-empty when spec.impersonationProxy.service.mode is "None".
// //
// +optional // +optional
ExternalEndpoint string `json:"externalEndpoint,omitempty"` ExternalEndpoint string `json:"externalEndpoint,omitempty"`
@ -228,7 +223,6 @@ type CredentialIssuer struct {
// Spec describes the intended configuration of the Concierge. // Spec describes the intended configuration of the Concierge.
// //
// +optional // +optional
// +kubebuilder:default:={"impersonationProxy": {"mode": "disabled", "service": {"type": "LoadBalancer"}}}
Spec CredentialIssuerSpec `json:"spec"` Spec CredentialIssuerSpec `json:"spec"`
// CredentialIssuerStatus describes the status of the Concierge. // CredentialIssuerStatus describes the status of the Concierge.

View File

@ -117,7 +117,11 @@ func (in *CredentialIssuerList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) { func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) {
*out = *in *out = *in
in.ImpersonationProxy.DeepCopyInto(&out.ImpersonationProxy) if in.ImpersonationProxy != nil {
in, out := &in.ImpersonationProxy, &out.ImpersonationProxy
*out = new(ImpersonationProxySpec)
(*in).DeepCopyInto(*out)
}
return return
} }

View File

@ -37,31 +37,20 @@ spec:
metadata: metadata:
type: object type: object
spec: spec:
default:
impersonationProxy:
mode: disabled
service:
type: LoadBalancer
description: Spec describes the intended configuration of the Concierge. description: Spec describes the intended configuration of the Concierge.
properties: properties:
impersonationProxy: impersonationProxy:
default:
mode: disabled
service:
type: LoadBalancer
description: ImpersonationProxy describes the intended configuration description: ImpersonationProxy describes the intended configuration
of the Concierge impersonation proxy. of the Concierge impersonation proxy.
properties: properties:
externalEndpoint: externalEndpoint:
description: "ExternalEndpoint describes the HTTPS endpoint where description: "ExternalEndpoint describes the HTTPS endpoint where
the proxy will be exposed. If the proxy is enabled and this the proxy will be exposed. If not set, the proxy will be served
field is not set, a Service of type LoadBalancer will be automatically using the external name of the LoadBalancer service or the cluster
provisioned and its external name will be advertised. \n Setting service DNS name. \n This field must be non-empty when spec.impersonationProxy.service.mode
this field disables the automatic creation of this LoadBalancer is \"None\"."
Service."
type: string type: string
mode: mode:
default: disabled
description: 'Mode configures whether the impersonation proxy description: 'Mode configures whether the impersonation proxy
should be started: - "disabled" explicitly disables the impersonation should be started: - "disabled" explicitly disables the impersonation
proxy. This is the default. - "enabled" explicitly enables the proxy. This is the default. - "enabled" explicitly enables the
@ -75,7 +64,8 @@ spec:
service: service:
default: default:
type: LoadBalancer type: LoadBalancer
description: Service describes the configuraiton description: Service describes the configuration of the Service
provisioned to expose the impersonation proxy to clients.
properties: properties:
annotations: annotations:
additionalProperties: additionalProperties:

View File

@ -45,9 +45,7 @@ const (
// CredentialIssuerSpec describes the intended configuration of the Concierge. // CredentialIssuerSpec describes the intended configuration of the Concierge.
type CredentialIssuerSpec struct { type CredentialIssuerSpec struct {
// ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy. // ImpersonationProxy describes the intended configuration of the Concierge impersonation proxy.
// ImpersonationProxy *ImpersonationProxySpec `json:"impersonationProxy"`
//+kubebuilder:default:={"mode": "disabled", "service": {"type": "LoadBalancer"}}
ImpersonationProxy ImpersonationProxySpec `json:"impersonationProxy"`
} }
// ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy. // ImpersonationProxyMode enumerates the configuration modes for the impersonation proxy.
@ -88,20 +86,17 @@ type ImpersonationProxySpec struct {
// - "disabled" explicitly disables the impersonation proxy. This is the default. // - "disabled" explicitly disables the impersonation proxy. This is the default.
// - "enabled" explicitly enables the impersonation proxy. // - "enabled" explicitly enables the impersonation proxy.
// - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running. // - "auto" enables or disables the impersonation proxy based upon the cluster in which it is running.
//
// +kubebuilder:default:="disabled"
Mode ImpersonationProxyMode `json:"mode"` Mode ImpersonationProxyMode `json:"mode"`
// Service describes the configuraiton // Service describes the configuration of the Service provisioned to expose the impersonation proxy to clients.
// //
// +kubebuilder:default:={"type": "LoadBalancer"} // +kubebuilder:default:={"type": "LoadBalancer"}
Service ImpersonationProxyServiceSpec `json:"service"` Service ImpersonationProxyServiceSpec `json:"service"`
// ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If the proxy is enabled and this // ExternalEndpoint describes the HTTPS endpoint where the proxy will be exposed. If not set, the proxy will
// field is not set, a Service of type LoadBalancer will be automatically provisioned and its external name will be // be served using the external name of the LoadBalancer service or the cluster service DNS name.
// advertised.
// //
// Setting this field disables the automatic creation of this LoadBalancer Service. // This field must be non-empty when spec.impersonationProxy.service.mode is "None".
// //
// +optional // +optional
ExternalEndpoint string `json:"externalEndpoint,omitempty"` ExternalEndpoint string `json:"externalEndpoint,omitempty"`
@ -228,7 +223,6 @@ type CredentialIssuer struct {
// Spec describes the intended configuration of the Concierge. // Spec describes the intended configuration of the Concierge.
// //
// +optional // +optional
// +kubebuilder:default:={"impersonationProxy": {"mode": "disabled", "service": {"type": "LoadBalancer"}}}
Spec CredentialIssuerSpec `json:"spec"` Spec CredentialIssuerSpec `json:"spec"`
// CredentialIssuerStatus describes the status of the Concierge. // CredentialIssuerStatus describes the status of the Concierge.

View File

@ -117,7 +117,11 @@ func (in *CredentialIssuerList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) { func (in *CredentialIssuerSpec) DeepCopyInto(out *CredentialIssuerSpec) {
*out = *in *out = *in
in.ImpersonationProxy.DeepCopyInto(&out.ImpersonationProxy) if in.ImpersonationProxy != nil {
in, out := &in.ImpersonationProxy, &out.ImpersonationProxy
*out = new(ImpersonationProxySpec)
(*in).DeepCopyInto(*out)
}
return return
} }