Documentation ¶
Index ¶
- Variables
- func CreateShootName() string
- func NewDynamicFakeClient(objects ...runtime.Object) *fake.FakeDynamicClient
- func NewGardenerClusterConfig(kubeconfigPath string) (*restclient.Config, error)
- func RESTConfig(kubeconfig []byte) (*restclient.Config, error)
- type Config
- type DNSProviderData
- type DNSProvidersData
- type SecretBinding
- type Shoot
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 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 (Shoot) GetSpecMaintenanceTimeWindowEnd ¶
func (Shoot) GetSpecRegion ¶
func (Shoot) GetSpecSecretBindingName ¶
Click to show internal directories.
Click to hide internal directories.