Documentation
¶
Index ¶
- func CreateImagePullSecret(ctx context.Context, c client.Client, namespace, token string) (string, error)
- func EnsureNamespace(ctx context.Context, c client.Client, name string, out io.Writer) (bool, error)
- func NewCommand(version string) *cobra.Command
- func RunInit(version string, image, imagePullSecret, skipPhases string, autoApprove bool, ...) error
- func RunReset(skipPhases string, autoApprove bool, configFlags *kubeconfig.ConfigFlags, ...) error
- func WaitForNamespaceDeletion(ctx context.Context, c client.Client, name string, out io.Writer)
- type SetupStatus
- type SetupStatusComponents
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateImagePullSecret ¶
func CreateImagePullSecret(ctx context.Context, c client.Client, namespace, token string) (string, error)
CreateImagePullSecret creates a dockerconfigjson Secret for ghcr.io. token is a GitHub Personal Access Token with read:packages scope.
func EnsureNamespace ¶
func EnsureNamespace(ctx context.Context, c client.Client, name string, out io.Writer) (bool, error)
EnsureNamespace creates a namespace if it doesn't exist. Returns true if the namespace was created by this call (false if it already existed).
func NewCommand ¶
NewCommand returns the "setup" cobra command. version is the running binary version and is threaded through to init/upgrade operations.
func RunInit ¶
func RunInit( version string, image, imagePullSecret, skipPhases string, autoApprove bool, configFlags *kubeconfig.ConfigFlags, versionOverride string, in io.Reader, out io.Writer, ) error
runInit executes the init phases sequentially.
Types ¶
type SetupStatus ¶
type SetupStatus struct {
// Installed is true when all required components are present and ready.
Installed bool `json:"installed"`
Components SetupStatusComponents `json:"components"`
// contains filtered or unexported fields
}
SetupStatus is the JSON output structure for ncrectl setup status.
type SetupStatusComponents ¶
type SetupStatusComponents struct {
CRECRDs bool `json:"creCRDs"`
CREController bool `json:"creController"`
KubeflowTrainer bool `json:"kubeflowTrainer"`
LogProfiles bool `json:"logProfiles"`
GPUOperator bool `json:"gpuOperator"`
// DCGM is optional. Only the diagnostics/dcgm-level4 category needs it,
// so it does not count toward Installed.
DCGM bool `json:"dcgm"`
}
SetupStatusComponents reports the status of each individual component.
Click to show internal directories.
Click to hide internal directories.