Documentation ¶
Overview ¶
Package ensurer provides functions used to ensure infrastructure changes to be applied
Package ensurer provides functions used to ensure infrastructure changes to be applied
Index ¶
- func EnsureNetworks(ctx context.Context, client *hcloud.Client, namespace, zone string, ...) (int, error)
- func EnsureNetworksDeleted(ctx context.Context, client *hcloud.Client, namespace string, ...) error
- func EnsureSSHPublicKey(ctx context.Context, client *hcloud.Client, ...) (string, error)
- func EnsureSSHPublicKeyDeleted(ctx context.Context, client *hcloud.Client, fingerprint string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureNetworks ¶
func EnsureNetworks(ctx context.Context, client *hcloud.Client, namespace, zone string, networks *apis.InfrastructureConfigNetworks) (int, error)
EnsureNetworks verifies the network resources requested are available.
PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client namespace string Shoot namespace zone string Shoot zone networks *apis.InfrastructureConfigNetworks Networks struct
func EnsureNetworksDeleted ¶
func EnsureNetworksDeleted(ctx context.Context, client *hcloud.Client, namespace string, networks *apis.InfrastructureConfigNetworkIDs) error
EnsureNetworksDeleted removes any previously created network resources.
PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client namespace string Shoot namespace networks *apis.InfrastructureConfigNetworkIDs Network IDs struct
func EnsureSSHPublicKey ¶
func EnsureSSHPublicKey(ctx context.Context, client *hcloud.Client, cluster *extensionscontroller.Cluster, infra *extensionsv1alpha1.Infrastructure) (string, error)
EnsureSSHPublicKey verifies that the SSH public key resource requested is available.
PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client publicKey []byte SSH public key
func EnsureSSHPublicKeyDeleted ¶ added in v0.3.6
func EnsureSSHPublicKeyDeleted(ctx context.Context, client *hcloud.Client, fingerprint string) error
EnsureSSHPublicKeyDeleted removes any previously created SSH public key resource identified by the given fingerprint.
PARAMETERS ctx context.Context Execution context client *hcloud.Client HCloud client fingerprint string SSH fingerprint
Types ¶
This section is empty.