awsauth

package
v0.0.0-...-862afa6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMap

type ConfigMap struct {
	kube.App

	ConfigMap *corev1.ConfigMap
}

ConfigMap is an application to manage the aws-auth ConfigMap. The AWS EKS kube-system/aws-auth ConfigMap manages access to the Kubernetes cluster and AWS Roles and Users need to be added to grant access

func NewConfigMap

func NewConfigMap(data *Data) (*ConfigMap, error)

type Data

type Data struct {
	MapRoles []*RolesAuth `json:"mapRoles"`
	MapUsers []*UsersAuth `json:"mapUsers"`
}

Data represents the data of the aws-auth configmap

type RolesAuth

type RolesAuth struct {
	RoleARN  string   `json:"rolearn"`
	Username string   `json:"username"`
	Groups   []string `json:"groups,omitempty"`
}

RolesAuth is the basic structure of a mapRoles authentication object

type UsersAuth

type UsersAuth struct {
	UserARN  string   `json:"userarn"`
	Username string   `json:"username"`
	Groups   []string `json:"groups,omitempty"`
}

UsersAuth is the basic structure of a mapUsers authentication object

Jump to

Keyboard shortcuts

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