v4_9

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 12 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.9 Butane config to a v4.9 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) ToIgn3_2 added in v0.13.1

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 added in v0.13.1

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_9

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

ToMachineConfig4_9 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_9Unvalidated

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

ToMachineConfig4_9Unvalidated 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