deprecated

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package deprecated handles package deprecations and migrations

Package deprecated handles package deprecations and migrations

Package deprecated handles package deprecations and migrations

Index

Constants

View Source
const (
	// This should be updated when a breaking change is introduced to the Zarf package structure.  See: https://github.com/zarf-dev/zarf/releases/tag/v0.27.0
	LastNonBreakingVersion   = "v0.27.0"
	ScriptsToActionsMigrated = "scripts-to-actions"
	PluralizeSetVariable     = "pluralize-set-variable"
)

List of migrations tracked in the zarf.yaml build data.

Variables

This section is empty.

Functions

func MigrateComponent

func MigrateComponent(build v1alpha1.ZarfBuildData, component v1alpha1.ZarfComponent) (migratedComponent v1alpha1.ZarfComponent, warnings []string)

MigrateComponent runs all migrations on a component. Build should be empty on package create, but include just in case someone copied a zarf.yaml from a zarf package.

func PrintBreakingChanges

func PrintBreakingChanges(w io.Writer, deployedZarfVersion, cliVersion string) error

PrintBreakingChanges prints the breaking changes between the provided version and the current CLIVersion.

Types

type BreakingChange

type BreakingChange struct {
	// contains filtered or unexported fields
}

BreakingChange represents a breaking change that happened on a specified Zarf version.

func (BreakingChange) String

func (bc BreakingChange) String() string

String returns the string representation of the BreakingChange.

Jump to

Keyboard shortcuts

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