Documentation ¶
Index ¶
- func CloudProfileFromCluster(decoder runtime.Decoder, cluster *extensionsv1alpha1.Cluster) (*gardencorev1beta1.CloudProfile, error)
- func GetShoot(ctx context.Context, c client.Client, namespace string) (*gardencorev1beta1.Shoot, error)
- func NewGardenDecoder() (runtime.Decoder, error)
- func SeedFromCluster(decoder runtime.Decoder, cluster *extensionsv1alpha1.Cluster) (*gardencorev1beta1.Seed, error)
- func ShootFromCluster(decoder runtime.Decoder, cluster *extensionsv1alpha1.Cluster) (*gardencorev1beta1.Shoot, error)
- type Cluster
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudProfileFromCluster ¶
func CloudProfileFromCluster(decoder runtime.Decoder, cluster *extensionsv1alpha1.Cluster) (*gardencorev1beta1.CloudProfile, error)
CloudProfileFromCluster returns the CloudProfile resource inside the Cluster resource.
func GetShoot ¶
func GetShoot(ctx context.Context, c client.Client, namespace string) (*gardencorev1beta1.Shoot, error)
GetShoot tries to read Gardener's Cluster extension resource in the given namespace and return the embedded Shoot resource.
func NewGardenDecoder ¶
NewGardenDecoder returns a new Garden API decoder.
func SeedFromCluster ¶
func SeedFromCluster(decoder runtime.Decoder, cluster *extensionsv1alpha1.Cluster) (*gardencorev1beta1.Seed, error)
SeedFromCluster returns the Seed resource inside the Cluster resource.
func ShootFromCluster ¶
func ShootFromCluster(decoder runtime.Decoder, cluster *extensionsv1alpha1.Cluster) (*gardencorev1beta1.Shoot, error)
ShootFromCluster returns the Shoot resource inside the Cluster resource.
Types ¶
type Cluster ¶
type Cluster struct { ObjectMeta metav1.ObjectMeta CloudProfile *gardencorev1beta1.CloudProfile Seed *gardencorev1beta1.Seed Shoot *gardencorev1beta1.Shoot }
Cluster contains the decoded resources of Gardener's extension Cluster resource.
Click to show internal directories.
Click to hide internal directories.