midstream

package
v1.104.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDisasterRecoveryLabelTransformer

func EnsureDisasterRecoveryLabelTransformer(archiveDir string, additionalLabels map[string]string) error

func LoadPrivateRegistryInfo

func LoadPrivateRegistryInfo(archivePath string) (*registrytypes.RegistrySettings, error)

func ProcessAirgapImages added in v1.92.1

func ProcessAirgapImages(options image.ProcessImageOptions, kotsKinds *kotsutil.KotsKinds, license *kotsv1beta1.License, log *logger.CLILogger) (*upstream.ProcessAirgapImagesResult, error)

processAirgapImages Will rewrite images found in the airgap bundle/airgap root and copy them (if necessary) to the configured registry.

func RewriteBaseImages added in v1.99.0

func RewriteBaseImages(options image.ProcessImageOptions, baseDir string, kotsKinds *kotsutil.KotsKinds, license *kotsv1beta1.License, dockerHubRegistryCreds registry.Credentials, log *logger.CLILogger) (*base.RewriteImagesResult, error)

RewriteBaseImages Will rewrite images found in base and copy them (if necessary) to the configured registry.

Types

type Midstream

type Midstream struct {
	Kustomization          *kustomizetypes.Kustomization
	Base                   *base.Base
	DocForPatches          []k8sdoc.K8sDoc
	AppPullSecret          *corev1.Secret
	AdminConsolePullSecret *corev1.Secret
	DockerHubPullSecret    *corev1.Secret
	IdentitySpec           *kotsv1beta1.Identity
	IdentityConfig         *kotsv1beta1.IdentityConfig
}

func CreateMidstream

func CreateMidstream(b *base.Base, images []kustomizetypes.Image, objects []k8sdoc.K8sDoc, pullSecrets *registry.ImagePullSecrets, identitySpec *kotsv1beta1.Identity, identityConfig *kotsv1beta1.IdentityConfig) (*Midstream, error)

func WriteMidstream added in v1.92.1

func WriteMidstream(writeMidstreamOptions WriteOptions, processImageOptions image.ProcessImageOptions, b *base.Base, license *kotsv1beta1.License, identityConfig *kotsv1beta1.IdentityConfig, upstreamDir string, log *logger.CLILogger) (*Midstream, error)

func (*Midstream) Write added in v1.92.1

func (m *Midstream) Write(options WriteOptions) error

type WriteOptions

type WriteOptions struct {
	MidstreamDir       string
	BaseDir            string
	AppSlug            string
	IsGitOps           bool
	IsOpenShift        bool
	Builder            template.Builder
	HTTPProxyEnvValue  string
	HTTPSProxyEnvValue string
	NoProxyEnvValue    string
	UseHelmInstall     map[string]bool
	NewHelmCharts      []*kotsv1beta1.HelmChart
}

Jump to

Keyboard shortcuts

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