Documentation
¶
Index ¶
- func NewREST(optsGetter generic.RESTOptionsGetter, ...) (*REST, *StatusREST, *BindingREST)
- type BindingREST
- func (r *BindingREST) Destroy()
- func (r *BindingREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *BindingREST) New() runtime.Object
- func (r *BindingREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- type KubeconfigREST
- type REST
- type ShootStorage
- type StatusREST
- func (r *StatusREST) Destroy()
- func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *StatusREST) New() runtime.Object
- func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewREST ¶
func NewREST(optsGetter generic.RESTOptionsGetter, credentialsRotationInterval time.Duration) (*REST, *StatusREST, *BindingREST)
NewREST returns a RESTStorage object that will work against shoots.
Types ¶
type BindingREST ¶ added in v1.50.0
type BindingREST struct {
// contains filtered or unexported fields
}
BindingREST implements the REST endpoint for changing the binding of a Shoot.
func (*BindingREST) Destroy ¶ added in v1.56.0
func (r *BindingREST) Destroy()
Destroy cleans up its resources on shutdown.
func (*BindingREST) Get ¶ added in v1.50.0
func (r *BindingREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the object from the storage. It is required to support Patch.
func (*BindingREST) New ¶ added in v1.50.0
func (r *BindingREST) New() runtime.Object
New creates a new (empty) internal Shoot object.
func (*BindingREST) Update ¶ added in v1.50.0
func (r *BindingREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Update alters the binding subset of an object.
type KubeconfigREST ¶ added in v1.86.0
type KubeconfigREST struct {
// contains filtered or unexported fields
}
KubeconfigREST implements a RESTStorage for a kubeconfig request.
func NewAdminKubeconfigREST ¶ added in v1.86.0
func NewAdminKubeconfigREST( shootGetter getter, secretLister kubecorev1listers.SecretLister, internalSecretLister gardencorelisters.InternalSecretLister, maxExpiration time.Duration, ) *KubeconfigREST
NewAdminKubeconfigREST returns a new KubeconfigREST for admin kubeconfigs.
func NewViewerKubeconfigREST ¶ added in v1.86.0
func NewViewerKubeconfigREST( shootGetter getter, secretLister kubecorev1listers.SecretLister, internalSecretLister gardencorelisters.InternalSecretLister, maxExpiration time.Duration, ) *KubeconfigREST
NewViewerKubeconfigREST returns a new KubeconfigREST for viewer kubeconfigs.
func (*KubeconfigREST) Create ¶ added in v1.86.0
func (r *KubeconfigREST) Create(ctx context.Context, name string, obj runtime.Object, createValidation rest.ValidateObjectFunc, _ *metav1.CreateOptions) (runtime.Object, error)
Create returns a kubeconfig request with kubeconfig based on - shoot's advertised addresses - shoot's certificate authority - user making the request - configured organization for the client certificate
func (*KubeconfigREST) Destroy ¶ added in v1.86.0
func (r *KubeconfigREST) Destroy()
Destroy cleans up its resources on shutdown.
func (*KubeconfigREST) GroupVersionKind ¶ added in v1.86.0
func (r *KubeconfigREST) GroupVersionKind(schema.GroupVersion) schema.GroupVersionKind
GroupVersionKind returns the GVK for the kubeconfig request type.
func (*KubeconfigREST) New ¶ added in v1.86.0
func (r *KubeconfigREST) New() runtime.Object
New returns an instance of the object.
type REST ¶
type REST struct {
*genericregistry.Store
}
REST implements a RESTStorage for shoots against etcd
func (*REST) Categories ¶
Categories implements the CategoriesProvider interface. Returns a list of categories a resource is part of.
func (*REST) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
type ShootStorage ¶
type ShootStorage struct { Shoot *REST Status *StatusREST AdminKubeconfig *KubeconfigREST ViewerKubeconfig *KubeconfigREST Binding *BindingREST }
ShootStorage implements the storage for Shoots and all their subresources.
func NewStorage ¶
func NewStorage( optsGetter generic.RESTOptionsGetter, internalSecretLister gardencorelisters.InternalSecretLister, secretLister kubecorev1listers.SecretLister, adminKubeconfigMaxExpiration time.Duration, viewerKubeconfigMaxExpiration time.Duration, credentialsRotationInterval time.Duration, ) ShootStorage
NewStorage creates a new ShootStorage object.
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a Shoot.
func (*StatusREST) Destroy ¶ added in v1.56.0
func (r *StatusREST) Destroy()
Destroy cleans up its resources on shutdown.
func (*StatusREST) Get ¶
func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the object from the storage. It is required to support Patch.
func (*StatusREST) New ¶
func (r *StatusREST) New() runtime.Object
New creates a new (empty) internal Shoot object.
func (*StatusREST) Update ¶
func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Update alters the status subset of an object.