iam_role

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFsGroup int64 = 65534

Functions

func EnsureForIamRole

func EnsureForIamRole(ctx context.Context, client controllerruntimeclient.Client, namespace string, iamRoleConfig *IamRoleConfig, defaultIamRole string) error

EnsureForIamRole: prepare AWS IAM role for use

func SetIamRoleConfigDefaults

func SetIamRoleConfigDefaults(iamRoleConfig *IamRoleConfig)

SetIamRoleConfigDefaults: sets the default values for the AWS IAM role config

func UpdatePodTemplateSpecForIamRole

func UpdatePodTemplateSpecForIamRole(podTemplateSpec *corev1.PodTemplateSpec, iamRoleConfig *IamRoleConfig, defaultIamRole string, defaultFsGroup int64)

UpdatePodTemplateSpecForIamRole: updates provided pod template specs for kiam or AWS pod identity

Types

type IamRoleConfig

type IamRoleConfig struct {
	// +optional
	IamRoleProvider *string `json:"iam_role_provider,omitempty"`
	// +optional
	IamRole *string `json:"iam_role,omitempty"`
	// PAASTA-16919: remove everything related to fs_group when
	// https://github.com/aws/amazon-eks-pod-identity-webhook/issues/8 will be
	// fixed.
	// +optional
	FsGroup *int64 `json:"fs_group,omitempty"`
}

IamRoleConfig : config for AWS IAM role settings for a paasta container

func (*IamRoleConfig) DeepCopy added in v0.0.14

func (in *IamRoleConfig) DeepCopy() *IamRoleConfig

func (*IamRoleConfig) DeepCopyInto added in v0.0.14

func (in *IamRoleConfig) DeepCopyInto(out *IamRoleConfig)

Jump to

Keyboard shortcuts

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