cmd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenSecretIgnitionReachedAnnotation = "hypershift.openshift.io/ignition-reached"
)

Functions

func NewRunLocalIgnitionProviderCommand

func NewRunLocalIgnitionProviderCommand() *cobra.Command

func NewStartCommand

func NewStartCommand() *cobra.Command

This is an https server that enable us to satisfy 1 - 1 relation between clusters and ign endpoints. It runs a token Secret controller. The token Secret controller uses an IgnitionProvider provider implementation (e.g machineConfigServerIgnitionProvider) to keep up to date a payload store in memory. The payload store has the structure "NodePool token": "payload". A token represents a given cluster version (and in the future also a machine Config) at any given point in time. For a request to succeed a token needs to be passed in the Header.

Types

type Options

type Options struct {
	Addr              string
	CertFile          string
	KeyFile           string
	RegistryOverrides map[string]string
	Platform          string
	WorkDir           string
	MetricsAddr       string
}

type RunLocalIgnitionProviderOptions

type RunLocalIgnitionProviderOptions struct {
	Namespace   string
	Image       string
	TokenSecret string
	WorkDir     string
}

func (*RunLocalIgnitionProviderOptions) Run

Jump to

Keyboard shortcuts

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