snc

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	ServiceEndpoints        []string
	Profiles                []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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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