connector

package
v0.83.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 26 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetManifestFilenames

func GetManifestFilenames() ([]string, error)

GetManifestFilenames gets the filenames for EKS Connector manifests

func WriteResources

func WriteResources(fs afero.Fs, manifestList *ManifestList) error

WriteResources writes the EKS Connector resources to the current directory.

Types

type EKSConnector

type EKSConnector struct {
	Provider         provider
	ManifestTemplate ManifestTemplate
}

func (*EKSConnector) DeregisterCluster

func (c *EKSConnector) DeregisterCluster(clusterName string) error

DeregisterCluster deregisters the cluster and removes associated IAM resources.

func (*EKSConnector) RegisterCluster

func (c *EKSConnector) RegisterCluster(cluster ExternalCluster) (*ManifestList, error)

RegisterCluster registers the specified external cluster with EKS and returns a list of Kubernetes resources for EKS Connector.

type ExternalCluster

type ExternalCluster struct {
	Name             string
	Provider         string
	ConnectorRoleARN string
}

type ManifestFile

type ManifestFile struct {
	Data     []byte
	Filename string
}

type ManifestList

type ManifestList struct {
	ConnectorResources     ManifestFile
	ClusterRoleResources   ManifestFile
	ConsoleAccessResources ManifestFile
	Expiry                 time.Time
	IAMIdentityARN         string
}

type ManifestTemplate

type ManifestTemplate struct {
	Connector     ManifestFile
	ClusterRole   ManifestFile
	ConsoleAccess ManifestFile
}

ManifestTemplate holds the manifest templates for EKS Connector.

func GetManifestTemplate

func GetManifestTemplate() (ManifestTemplate, error)

GetManifestTemplate returns the resources for EKS Connector.

Jump to

Keyboard shortcuts

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