apparchive

package
v1.108.11 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRenderedApp

func GetRenderedApp(versionArchive string, downstreamName, kustomizeBinPath string) ([]byte, map[string][]byte, error)

func GetRenderedV1Beta1ChartsArchive

func GetRenderedV1Beta1ChartsArchive(versionArchive string, downstreamName, kustomizeBinPath string) ([]byte, map[string][]byte, error)

func GetRenderedV1Beta2FileMap

func GetRenderedV1Beta2FileMap(deployedVersionArchive, downstream string) (map[string][]byte, error)

GetRenderedV1Beta2FileMap returns a map of the rendered v1beta2 charts to be deployed

func GetV1Beta2ChartsArchive

func GetV1Beta2ChartsArchive(deployedVersionArchive string) ([]byte, error)

GetV1Beta2ChartsArchive returns an archive of the v1beta2 charts to be deployed

func RenderChartsArchive

func RenderChartsArchive(baseDir string, overlaysDir string, downstreamName string, kustomizeBinPath string) ([]byte, map[string][]byte, error)

func WriteRenderedApp

func WriteRenderedApp(options AppWriteOptions) error

func WriteRenderedV1Beta2HelmCharts

func WriteRenderedV1Beta2HelmCharts(opts WriteRenderedV1Beta2HelmChartsOptions) error

WriteRenderedV1Beta2HelmCharts writes the rendered v1beta2 helm charts to the rendered directory for diffing

func WriteV1Beta2HelmCharts

func WriteV1Beta2HelmCharts(opts WriteV1Beta2HelmChartsOptions) error

WriteV1Beta2HelmCharts copies the upstream helm chart archive and rendered values to the helm directory and processes online images (if necessary)

Types

type AppWriteOptions

type AppWriteOptions struct {
	BaseDir          string
	OverlaysDir      string
	RenderedDir      string
	Downstreams      []string
	KustomizeBinPath string
}

type Diff

type Diff struct {
	FilesChanged int `json:"filesChanged"`
	LinesAdded   int `json:"linesAdded"`
	LinesRemoved int `json:"linesRemoved"`
}

func DiffAppVersionsForDownstream

func DiffAppVersionsForDownstream(downstreamName string, archive string, diffBasePath string, kustomizeBinPath string) (*Diff, error)

DiffAppVersionsForDownstream will generate a diff of the rendered yaml between two different archive dirs

type WriteRenderedV1Beta2HelmChartsOptions

type WriteRenderedV1Beta2HelmChartsOptions struct {
	HelmDir             string
	RenderedDir         string
	Log                 *logger.CLILogger
	Downstreams         []string
	KotsKinds           *kotsutil.KotsKinds
	ProcessImageOptions imagetypes.ProcessImageOptions
}

type WriteV1Beta2HelmChartsOptions

type WriteV1Beta2HelmChartsOptions struct {
	Upstream             *upstreamtypes.Upstream
	WriteUpstreamOptions upstreamtypes.WriteOptions
	RenderOptions        *base.RenderOptions
	ProcessImageOptions  imagetypes.ProcessImageOptions
	KotsKinds            *kotsutil.KotsKinds
	Clientset            kubernetes.Interface
}

Jump to

Keyboard shortcuts

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