addon

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PodIdentityS3BucketPrefix = "podid"
)

Variables

View Source
var ErrPodIdentityBucketNotFound = errors.New("pod identity bucket not found")

Functions

func PodIdentityBucket added in v1.0.4

func PodIdentityBucket(ctx context.Context, client *s3.Client, cluster string) (string, error)

PodIdentityBucket returns the pod identity bucket for the given cluster.

Types

type Addon

type Addon struct {
	Name          string
	Cluster       string
	Configuration string
}

func (Addon) Create

func (a Addon) Create(ctx context.Context, client *eks.Client, logger logr.Logger) error

func (Addon) WaitUtilActive

func (a Addon) WaitUtilActive(ctx context.Context, client *eks.Client, logger logr.Logger) error

type PodIdentityAddon added in v1.0.3

type PodIdentityAddon struct {
	Addon
	// contains filtered or unexported fields
}

func NewPodIdentityAddon added in v1.0.3

func NewPodIdentityAddon(cluster, roleArn string) PodIdentityAddon

func (PodIdentityAddon) Create added in v1.0.3

func (p PodIdentityAddon) Create(ctx context.Context, logger logr.Logger, eksClient *eks.Client, k8sClient clientgo.Interface) error

func (PodIdentityAddon) UploadFileForVerification added in v1.0.4

func (p PodIdentityAddon) UploadFileForVerification(ctx context.Context, logger logr.Logger, client *s3.Client, bucket string) error

type PolicyDocument added in v1.0.4

type PolicyDocument struct {
	Version   string
	Statement []StatementEntry
}

type StatementEntry added in v1.0.4

type StatementEntry struct {
	Effect   string
	Action   []string
	Resource []string
}

type VerifyPodIdentityAddon

type VerifyPodIdentityAddon struct {
	Cluster             string
	NodeName            string
	PodIdentityS3Bucket string
	K8S                 clientgo.Interface
	EKSClient           *eks.Client
	IAMClient           *iam.Client
	S3Client            *s3.Client
	Logger              logr.Logger
	K8SConfig           *rest.Config
	Region              string
}

func (VerifyPodIdentityAddon) Run

Jump to

Keyboard shortcuts

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