Documentation
¶
Overview ¶
SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AdminKubeconfigRequest
- type AdminKubeconfigRequestSpec
- type AdminKubeconfigRequestStatus
- type ViewerKubeconfigRequest
- type ViewerKubeconfigRequestSpec
- type ViewerKubeconfigRequestStatus
Constants ¶
const GroupName = "authentication.gardener.cloud"
GroupName is the name of the authentication API group. "authentication.gardener.cloud/v1alpha1" API is already used for CRD registration and must not be served by the API server.
Variables ¶
var ( // SchemeBuilder is a new Scheme Builder which registers our API. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a reference to the Scheme Builder's AddToScheme function. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type AdminKubeconfigRequest ¶
type AdminKubeconfigRequest struct { metav1.TypeMeta `json:",inline"` // Standard object metadata. metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec is the specification of the AdminKubeconfigRequest. Spec AdminKubeconfigRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is the status of the AdminKubeconfigRequest. Status AdminKubeconfigRequestStatus `json:"status" protobuf:"bytes,3,opt,name=status"` }
AdminKubeconfigRequest can be used to request a kubeconfig with admin credentials for a Shoot cluster.
func (*AdminKubeconfigRequest) DeepCopy ¶
func (in *AdminKubeconfigRequest) DeepCopy() *AdminKubeconfigRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdminKubeconfigRequest.
func (*AdminKubeconfigRequest) DeepCopyInto ¶
func (in *AdminKubeconfigRequest) DeepCopyInto(out *AdminKubeconfigRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AdminKubeconfigRequest) DeepCopyObject ¶
func (in *AdminKubeconfigRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AdminKubeconfigRequestSpec ¶
type AdminKubeconfigRequestSpec struct { // ExpirationSeconds is the requested validity duration of the credential. The // credential issuer may return a credential with a different validity duration so a // client needs to check the 'expirationTimestamp' field in a response. // Defaults to 1 hour. // +optional ExpirationSeconds *int64 `json:"expirationSeconds,omitempty" protobuf:"varint,1,opt,name=expirationSeconds"` }
AdminKubeconfigRequestSpec contains the expiration time of the kubeconfig.
func (*AdminKubeconfigRequestSpec) DeepCopy ¶
func (in *AdminKubeconfigRequestSpec) DeepCopy() *AdminKubeconfigRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdminKubeconfigRequestSpec.
func (*AdminKubeconfigRequestSpec) DeepCopyInto ¶
func (in *AdminKubeconfigRequestSpec) DeepCopyInto(out *AdminKubeconfigRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AdminKubeconfigRequestStatus ¶
type AdminKubeconfigRequestStatus struct { // Kubeconfig contains the kubeconfig with cluster-admin privileges for the shoot cluster. Kubeconfig []byte `json:"kubeconfig" protobuf:"bytes,1,opt,name=kubeconfig"` // ExpirationTimestamp is the expiration timestamp of the returned credential. ExpirationTimestamp metav1.Time `json:"expirationTimestamp" protobuf:"bytes,2,opt,name=expirationTimestamp"` }
AdminKubeconfigRequestStatus is the status of the AdminKubeconfigRequest containing the kubeconfig and expiration of the credential.
func (*AdminKubeconfigRequestStatus) DeepCopy ¶
func (in *AdminKubeconfigRequestStatus) DeepCopy() *AdminKubeconfigRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdminKubeconfigRequestStatus.
func (*AdminKubeconfigRequestStatus) DeepCopyInto ¶
func (in *AdminKubeconfigRequestStatus) DeepCopyInto(out *AdminKubeconfigRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ViewerKubeconfigRequest ¶
type ViewerKubeconfigRequest struct { metav1.TypeMeta `json:",inline"` // Standard object metadata. metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec is the specification of the ViewerKubeconfigRequest. Spec ViewerKubeconfigRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is the status of the ViewerKubeconfigRequest. Status ViewerKubeconfigRequestStatus `json:"status" protobuf:"bytes,3,opt,name=status"` }
ViewerKubeconfigRequest can be used to request a kubeconfig with viewer credentials (excluding Secrets) for a Shoot cluster.
func (*ViewerKubeconfigRequest) DeepCopy ¶
func (in *ViewerKubeconfigRequest) DeepCopy() *ViewerKubeconfigRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ViewerKubeconfigRequest.
func (*ViewerKubeconfigRequest) DeepCopyInto ¶
func (in *ViewerKubeconfigRequest) DeepCopyInto(out *ViewerKubeconfigRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ViewerKubeconfigRequest) DeepCopyObject ¶
func (in *ViewerKubeconfigRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ViewerKubeconfigRequestSpec ¶
type ViewerKubeconfigRequestSpec struct { // ExpirationSeconds is the requested validity duration of the credential. The // credential issuer may return a credential with a different validity duration so a // client needs to check the 'expirationTimestamp' field in a response. // Defaults to 1 hour. // +optional ExpirationSeconds *int64 `json:"expirationSeconds,omitempty" protobuf:"varint,1,opt,name=expirationSeconds"` }
ViewerKubeconfigRequestSpec contains the expiration time of the kubeconfig.
func (*ViewerKubeconfigRequestSpec) DeepCopy ¶
func (in *ViewerKubeconfigRequestSpec) DeepCopy() *ViewerKubeconfigRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ViewerKubeconfigRequestSpec.
func (*ViewerKubeconfigRequestSpec) DeepCopyInto ¶
func (in *ViewerKubeconfigRequestSpec) DeepCopyInto(out *ViewerKubeconfigRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ViewerKubeconfigRequestStatus ¶
type ViewerKubeconfigRequestStatus struct { // Kubeconfig contains the kubeconfig with viewer privileges (excluding Secrets) for the shoot cluster. Kubeconfig []byte `json:"kubeconfig" protobuf:"bytes,1,opt,name=kubeconfig"` // ExpirationTimestamp is the expiration timestamp of the returned credential. ExpirationTimestamp metav1.Time `json:"expirationTimestamp" protobuf:"bytes,2,opt,name=expirationTimestamp"` }
ViewerKubeconfigRequestStatus is the status of the ViewerKubeconfigRequest containing the kubeconfig and expiration of the credential.
func (*ViewerKubeconfigRequestStatus) DeepCopy ¶
func (in *ViewerKubeconfigRequestStatus) DeepCopy() *ViewerKubeconfigRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ViewerKubeconfigRequestStatus.
func (*ViewerKubeconfigRequestStatus) DeepCopyInto ¶
func (in *ViewerKubeconfigRequestStatus) DeepCopyInto(out *ViewerKubeconfigRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.