gardener

package
v0.0.0-...-f7d1ac2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretBindingResource = schema.GroupVersionResource{Group: "core.gardener.cloud", Version: "v1beta1", Resource: "secretbindings"}
View Source
var ShootResource = schema.GroupVersionResource{Group: "core.gardener.cloud", Version: "v1beta1", Resource: "shoots"}

Functions

func CreateShootName

func CreateShootName() string

CreateShootName generates random shoot name in pattern "[a-z0-0]{7}" or "c-[a-z0-0]{7}"

func NewDynamicFakeClient

func NewDynamicFakeClient(objects ...runtime.Object) *fake.FakeDynamicClient

func NewGardenerClusterConfig

func NewGardenerClusterConfig(kubeconfigPath string) (*restclient.Config, error)

func RESTConfig

func RESTConfig(kubeconfig []byte) (*restclient.Config, error)

Types

type Config

type Config struct {
	Project        string           `envconfig:"default=gardenerProject"`
	ShootDomain    string           `envconfig:"optional"`
	KubeconfigPath string           `envconfig:"default=./dev/kubeconfig.yaml"`
	DNSProviders   DNSProvidersData `envconfig:"-"`
}

type DNSProviderData

type DNSProviderData struct {
	DomainsInclude []string `json:"domainsInclude" yaml:"domainsInclude"`
	Primary        bool     `json:"primary" yaml:"primary"`
	SecretName     string   `json:"secretName" yaml:"secretName"`
	Type           string   `json:"type" yaml:"type"`
}

type DNSProvidersData

type DNSProvidersData struct {
	Providers []DNSProviderData `json:"providers" yaml:"providers"`
}

func ReadDNSProvidersValuesFromYAML

func ReadDNSProvidersValuesFromYAML(yamlFilePath string) (DNSProvidersData, error)

type SecretBinding

type SecretBinding struct {
	unstructured.Unstructured
}

func (SecretBinding) GetSecretRefName

func (b SecretBinding) GetSecretRefName() string

func (SecretBinding) GetSecretRefNamespace

func (b SecretBinding) GetSecretRefNamespace() string

type Shoot

type Shoot struct {
	unstructured.Unstructured
}

func (Shoot) GetSpecMaintenanceTimeWindowBegin

func (b Shoot) GetSpecMaintenanceTimeWindowBegin() string

func (Shoot) GetSpecMaintenanceTimeWindowEnd

func (b Shoot) GetSpecMaintenanceTimeWindowEnd() string

func (Shoot) GetSpecRegion

func (b Shoot) GetSpecRegion() string

func (Shoot) GetSpecSecretBindingName

func (b Shoot) GetSpecSecretBindingName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL