pkg

package
v0.0.0-...-f8ac4ba Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssetUri

func GetAssetUri(releaseManifestUrl, component, assetType, os, arch string) (string, error)

func GetEksDistroReleaseManifestUrl

func GetEksDistroReleaseManifestUrl(releaseChannel, releaseNumber string) string

func ParseEksDistroReleaseManifestUrl

func ParseEksDistroReleaseManifestUrl(releaseManifestUrl string) (string, string)

func UpdateImageDigests

func UpdateImageDigests(ecrPublicClient *ecrpublic.ECRPublic, r *ReleaseConfig, componentsTable map[string]*distrov1alpha1.Component) error

Types

type ReleaseConfig

type ReleaseConfig struct {
	ContainerImageRepository string
	ArtifactURL              string
	BuildRepoSource          string
	ArtifactDir              string
	ReleaseDate              time.Time
}

ReleaseConfig contains metadata fields for a release

func (*ReleaseConfig) CreateDevReleaseClients

func (r *ReleaseConfig) CreateDevReleaseClients() (*ecrpublic.ECRPublic, error)

Function to create release clients for dev release

func (*ReleaseConfig) CreateProdReleaseClients

func (r *ReleaseConfig) CreateProdReleaseClients() (*ecrpublic.ECRPublic, error)

Function to create clients for production release

func (*ReleaseConfig) GenerateComponentsTable

func (r *ReleaseConfig) GenerateComponentsTable(release *distrov1alpha1.Release) (map[string]*distrov1alpha1.Component, error)

GenerateComponentsTable generates a table of EKS-D components

func (*ReleaseConfig) GetAttacherComponent

func (r *ReleaseConfig) GetAttacherComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetAttacherComponent returns the Component for External Attacher

func (*ReleaseConfig) GetAuthenticatorComponent

func (r *ReleaseConfig) GetAuthenticatorComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetAuthenticatorComponent returns the Component for AWS IAM Authenticator

func (*ReleaseConfig) GetCniComponent

GetCniComponent returns the Component for CNI plugins

func (*ReleaseConfig) GetCorednsComponent

func (r *ReleaseConfig) GetCorednsComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetCorednsComponent returns the Component for CoreDNS

func (*ReleaseConfig) GetEtcdComponent

func (r *ReleaseConfig) GetEtcdComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetEtcdComponent returns the Component for Etcd

func (*ReleaseConfig) GetKubernetesComponent

func (r *ReleaseConfig) GetKubernetesComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetKubernetesComponent returns the Component for Kubernetes

func (*ReleaseConfig) GetLivenessprobeComponent

func (r *ReleaseConfig) GetLivenessprobeComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetLivenessprobeComponent returns the Component for Liveness Probe

func (*ReleaseConfig) GetMetricsServerComponent

func (r *ReleaseConfig) GetMetricsServerComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetMetricsServerComponent returns the Component for Metrics Server

func (*ReleaseConfig) GetProvisionerComponent

func (r *ReleaseConfig) GetProvisionerComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetProvisionerComponent returns the Component for External Provisioner

func (*ReleaseConfig) GetRegistrarComponent

func (r *ReleaseConfig) GetRegistrarComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetRegistrarComponent returns the Component for Node Driver Registrar

func (*ReleaseConfig) GetResizerComponent

func (r *ReleaseConfig) GetResizerComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetResizerComponent returns the Component for External Resizer

func (*ReleaseConfig) GetSnapshotterComponent

func (r *ReleaseConfig) GetSnapshotterComponent(spec distrov1alpha1.ReleaseSpec) (*distrov1alpha1.Component, error)

GetSnapshotterComponent returns the Component for External Snapshotter

func (*ReleaseConfig) GetURI

func (r *ReleaseConfig) GetURI(path string) (string, error)

GetURI returns an full URL for the given path

func (*ReleaseConfig) ReadK8sShaSums

func (r *ReleaseConfig) ReadK8sShaSums(gitTag, filename string) (sha256, sha512 string, err error)

func (*ReleaseConfig) UpdateReleaseStatus

func (r *ReleaseConfig) UpdateReleaseStatus(release *distrov1alpha1.Release, componentsTable map[string]*distrov1alpha1.Component) error

UpdateReleaseStatus returns a release struct

Jump to

Keyboard shortcuts

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