Documentation

Overview

    Package irsa implements tester for IAM Roles for Service Accounts (IRSA).

    Index

    Constants

    View Source
    const TemplateConfigMap = `` /* 1384-byte string literal not displayed */
    

      TemplateConfigMap is the IRSA config map. Do not download to the same file paths. e.g. download failed: s3://aws-k8s-tester-eks-s3-bucket/eks-2020062621-misty8up27dz/irsa-s3-key to var/log/output-configmap.log [Errno 16] Device or resource busy: '/var/log/output-configmap.log.75Caa245' -> '/var/log/output-configmap.log' ${HOSTNAME} is same as Pod name, writes "/var/log/[POD_NAME].s3.output"

      View Source
      const TemplateDeploymentScript = `printf '\n\nexecuting...\n\n'; /opt/{{ .ConfigMapScriptFileName }};`

        TemplateDeploymentScript is the script to run in Deployment.

        View Source
        const TemplateRole = `` /* 1486-byte string literal not displayed */
        

          TemplateRole is the CloudFormation template for EKS IRSA role.

          Variables

          This section is empty.

          Functions

          func New

          func New(cfg Config) eks_tester.Tester

            New creates a new Job tester.

            Types

            type Config

            type Config struct {
            	Logger    *zap.Logger
            	LogWriter io.Writer
            	Stopc     chan struct{}
            	EKSConfig *eksconfig.Config
            	K8SClient k8s_client.EKS
            	S3API     s3iface.S3API
            	CFNAPI    cloudformationiface.CloudFormationAPI
            	IAMAPI    iamiface.IAMAPI
            	ECRAPI    ecriface.ECRAPI
            }

              Config defines "IAM Roles for Service Accounts (IRSA)" configuration. ref. https://aws.amazon.com/blogs/opensource/introducing-fine-grained-iam-roles-service-accounts/

              Source Files