util

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyManifests

func ApplyManifests(ctx context.Context, kubeClient *RetryableClient, manifestYamlsCombined string) (d diag.Diagnostics)

func DescribeKubeCluster

func DescribeKubeCluster(ctx context.Context, dp awsconfig.AWSDataplane, cfg aws.Config) (cluster *types.Cluster, err error)

func GetARNForCPService

func GetARNForCPService(ctx context.Context, cfg aws.Config, cc awsconfig.ClusterConfiguration, service string) string

func GetARNForService

func GetARNForService(ctx context.Context, cfg aws.Config, cc awsconfig.ClusterConfiguration, service string) string

func GetAwsConfig

func GetAwsConfig(ctx context.Context, dp awsconfig.AWSDataplane) (cfg aws.Config, d diag.Diagnostics)

func GetKubeClusterName

func GetKubeClusterName(ctx context.Context, dp awsconfig.AWSDataplane) (name string, err error)

func GetKubeConfig

func GetKubeConfig(ctx context.Context, dp awsconfig.AWSDataplane, cfg aws.Config) (kubeConfig []byte, err error)

func LogError added in v0.0.11

func LogError(ctx context.Context, d diag.Diagnostics, summary string, err error) diag.Diagnostics

func RenderAndApplyTemplate

func RenderAndApplyTemplate(ctx context.Context, kubeClient *RetryableClient, name string, templateData []byte, data map[string]string) (d diag.Diagnostics)

Types

type RetryableClient added in v0.0.11

type RetryableClient struct {
	Client client.Client
}

func GetKubeClient

func GetKubeClient(ctx context.Context, cfg aws.Config, dp awsconfig.AWSDataplane) (rClient *RetryableClient, err error)

func (*RetryableClient) Create added in v0.0.11

func (r *RetryableClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (*RetryableClient) Delete added in v0.0.11

func (r *RetryableClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (*RetryableClient) DeleteAllOf added in v0.0.11

func (r *RetryableClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

func (*RetryableClient) Get added in v0.0.11

func (*RetryableClient) List added in v0.0.11

func (r *RetryableClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (*RetryableClient) Patch added in v0.0.11

func (r *RetryableClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (*RetryableClient) Update added in v0.0.11

func (r *RetryableClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

Jump to

Keyboard shortcuts

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