v4_13

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ROLE_LABEL_KEY = "machineconfiguration.openshift.io/role"

Variables

This section is empty.

Functions

func ToConfigBytes

func ToConfigBytes(input []byte, options common.TranslateBytesOptions) ([]byte, report.Report, error)

ToConfigBytes translates from a v4.13 Butane config to a v4.13 MachineConfig or a v3.2.0 Ignition config. It returns a report of any errors or warnings in the source and resultant config. If the report has fatal errors or it encounters other problems translating, an error is returned.

Types

type Config

type Config struct {
	fcos.Config `yaml:",inline"`
	Metadata    Metadata  `yaml:"metadata"`
	OpenShift   OpenShift `yaml:"openshift"`
}

func (Config) FieldFilters added in v0.19.0

func (c Config) FieldFilters() *cutil.FieldFilters

Return FieldFilters for this spec.

func (Config) ToIgn3_2

func (c Config) ToIgn3_2(options common.TranslateOptions) (types.Config, report.Report, error)

ToIgn3_2 translates the config to an Ignition config. It returns a report of any errors or warnings in the source and resultant config. If the report has fatal errors or it encounters other problems translating, an error is returned.

func (Config) ToIgn3_2Unvalidated

func (c Config) ToIgn3_2Unvalidated(options common.TranslateOptions) (types.Config, translate.TranslationSet, report.Report)

ToIgn3_2Unvalidated translates the config to an Ignition config. It also returns the set of translations it did so paths in the resultant config can be tracked back to their source in the source config. No config validation is performed on input or output.

func (Config) ToMachineConfig4_13

func (c Config) ToMachineConfig4_13(options common.TranslateOptions) (result.MachineConfig, report.Report, error)

ToMachineConfig4_13 translates the config to a MachineConfig. It returns a report of any errors or warnings in the source and resultant config. If the report has fatal errors or it encounters other problems translating, an error is returned.

func (Config) ToMachineConfig4_13Unvalidated

func (c Config) ToMachineConfig4_13Unvalidated(options common.TranslateOptions) (result.MachineConfig, translate.TranslationSet, report.Report)

ToMachineConfig4_13Unvalidated translates the config to a MachineConfig. It also returns the set of translations it did so paths in the resultant config can be tracked back to their source in the source config. No config validation is performed on input or output.

type Metadata

type Metadata struct {
	Name   string            `yaml:"name"`
	Labels map[string]string `yaml:"labels,omitempty"`
}

func (Metadata) Validate

func (m Metadata) Validate(c path.ContextPath) (r report.Report)

type OpenShift

type OpenShift struct {
	KernelArguments []string `yaml:"kernel_arguments"`
	Extensions      []string `yaml:"extensions"`
	FIPS            *bool    `yaml:"fips"`
	KernelType      *string  `yaml:"kernel_type"`
}

func (OpenShift) Validate

func (os OpenShift) Validate(c path.ContextPath) (r report.Report)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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