snc

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StackName = "stackOpenshiftSNC"
	OCPSNCID  = "snc"

	OutputHost           = "aosHost"
	OutputUsername       = "aosUsername"
	OutputUserPrivateKey = "aosPrivatekey"
	OutputKubeconfig     = "aosKubeconfig"
	OutputKubeAdminPass  = "aosKubeAdminPasss"
	OutputDeveloperPass  = "aosDeveloperPass"

	PortHTTPS = 443
	PortAPI   = 6443
)
View Source
var (
	ClientKubeconfigPath       = "/opt/crc/kubeconfig"
	ContextAdminStarterVersion = "4.20.8"

	CommandKubeconfigExists = fmt.Sprintf("while [ ! -f %s ]; do sleep 5; done", ClientKubeconfigPath)
	CommandCrcReadiness     = "while [ ! -f /tmp/.crc-cluster-ready ]; do sleep 5; done"
)
View Source
var CloudConfigFile []byte

Functions

func CloudConfig

func CloudConfig(data DataValues) (*string, error)

func CommandCaServiceRan

func CommandCaServiceRan(version string) string

Types

type DataValues

type DataValues struct {
	// user auth information
	Username string
	PubKey   string
	// IP
	PublicIP string
	// Secret information will be moved through ssm
	SSMPullSecretName        string
	SSMKubeAdminPasswordName string
	SSMDeveloperPasswordName string
}

type SNCArgs

type SNCArgs struct {
	Prefix                  string
	ComputeRequest          *cr.ComputeRequestArgs
	Version                 string
	DisableClusterReadiness bool
	Arch                    string
	PullSecretFile          string
	Spot                    *spotTypes.SpotArgs
	Timeout                 string
}

type SNCResults

type SNCResults struct {
	Username      string   `json:"username"`
	PrivateKey    string   `json:"private_key"`
	Host          string   `json:"host"`
	Kubeconfig    string   `json:"kubeconfig"`
	KubeadminPass string   `json:"kubeadmin_pass"`
	SpotPrice     *float64 `json:"spot_price,omitempty"`
	ConsoleUrl    string   `json:"console_url,omitempty"`
}

func Results

func Results(stackResult auto.UpResult, prefix *string,
	resultOutputPath string, spotPrice *float64,
	disableClusterReadiness bool) (*SNCResults, error)

Jump to

Keyboard shortcuts

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