cli

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cli contains the main sfconfig CLI for the end user. The goal is to be a onestop shop to get the service running with a single `sfconfig` command invocation.

Index

Constants

This section is empty.

Variables

View Source
var DevCmd = &cobra.Command{
	Use:   "dev",
	Short: "developer utilities",
	Run:   func(cmd *cobra.Command, args []string) {},
}
View Source
var DevPrepareCmd = &cobra.Command{
	Use:   "prepare",
	Short: "prepare dev environment",
	Run:   func(cmd *cobra.Command, args []string) { Run(cmd) },
}

Functions

func EnsureCRD

func EnsureCRD()

func EnsureCertManager

func EnsureCertManager(env *utils.ENV)

func EnsureDemoConfig

func EnsureDemoConfig(env *utils.ENV, sfconfig *config.SFConfig)

EnsureDemoConfig prepares a demo config

func EnsureGerritAccess

func EnsureGerritAccess(fqdn string)

func EnsureMicroshiftWorkarounds

func EnsureMicroshiftWorkarounds(env *utils.ENV)

func EnsureNamespaces

func EnsureNamespaces(env *utils.ENV)

func EnsurePrometheusOperator

func EnsurePrometheusOperator(env *utils.ENV)

func EnsureRepo

func EnsureRepo(sfconfig *config.SFConfig, apiKey string, name string)

func PushRepoIfNeeded

func PushRepoIfNeeded(path string)

func Run

func Run(cmd *cobra.Command)

func SetupTenant

func SetupTenant(configPath string, tenantName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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