conversion

package
v0.9.1-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OldVersion = "08"
	NewVersion = "09"
)

Variables

This section is empty.

Functions

func FetchAndConversionResources

func FetchAndConversionResources(versionMeta *VersionConversionMeta) ([]unstructured.Unstructured, error)

func UpdateNewVersionResources

func UpdateNewVersionResources(versionMeta *VersionConversionMeta, targetObjects []unstructured.Unstructured) error

Types

type VersionConversionMeta

type VersionConversionMeta struct {
	dynamic.Interface
	Ctx context.Context

	FromVersion string
	ToVersion   string
}

func NewVersionConversion

func NewVersionConversion(dynamic dynamic.Interface, fromVersion, toVersion string) *VersionConversionMeta

func (VersionConversionMeta) NeedConversion

func (version VersionConversionMeta) NeedConversion() bool

Jump to

Keyboard shortcuts

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