Documentation ¶
Index ¶
- Variables
- func CreateVariables(cmd *cobra.Command, ignoreSecretVariable bool) (vars map[string]testkube.Variable, err error)
- func GetClient(cmd *cobra.Command) (client.Client, string)
- func GetCurrentKubernetesContext() (string, error)
- func HelmUpgradeOrInstalTestkube(options HelmOptions) error
- func HelmUpgradeOrInstallTestkubeCloud(options HelmOptions, cfg config.Data) error
- func KubectlScaleDeployment(namespace, deployment string, replicas int) (string, error)
- func NewDataFromFlags(cmd *cobra.Command) (data *string, err error)
- func NewRepositoryFromFlags(cmd *cobra.Command) (repository *testkube.Repository, err error)
- func NewRepositoryUpdateFromFlags(cmd *cobra.Command) (repository *testkube.RepositoryUpdate, err error)
- func PopulateAgentDataToContext(options HelmOptions, cfg config.Data) error
- func PopulateHelmFlags(cmd *cobra.Command, options *HelmOptions)
- func RunMigrations(cmd *cobra.Command) (hasMigrations bool, err error)
- func UIPrintCRD(tmpl crd.Template, object any, firstEntry *bool)
- func UiPrintContext(cfg config.Data)
- func ValidateUpsertOptions(cmd *cobra.Command, sourceName string) error
- type CloudUris
- type HelmOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Commit string Version string BuiltBy string Date string )
Functions ¶
func CreateVariables ¶ added in v1.1.10
func GetCurrentKubernetesContext ¶ added in v1.11.25
func HelmUpgradeOrInstalTestkube ¶ added in v1.11.25
func HelmUpgradeOrInstalTestkube(options HelmOptions) error
func HelmUpgradeOrInstallTestkubeCloud ¶ added in v1.11.25
func HelmUpgradeOrInstallTestkubeCloud(options HelmOptions, cfg config.Data) error
func KubectlScaleDeployment ¶ added in v1.11.25
func NewDataFromFlags ¶ added in v1.7.29
NewDataFromFlags read input data from stdin or '--file' parameter
func NewRepositoryFromFlags ¶ added in v1.7.29
func NewRepositoryFromFlags(cmd *cobra.Command) (repository *testkube.Repository, err error)
NewRepositoryFromFlags creates repository from command flags
func NewRepositoryUpdateFromFlags ¶ added in v1.7.29
func NewRepositoryUpdateFromFlags(cmd *cobra.Command) (repository *testkube.RepositoryUpdate, err error)
NewRepositoryUpdateFromFlags creates repository update from command flags
func PopulateAgentDataToContext ¶ added in v1.11.25
func PopulateAgentDataToContext(options HelmOptions, cfg config.Data) error
func PopulateHelmFlags ¶ added in v1.11.25
func PopulateHelmFlags(cmd *cobra.Command, options *HelmOptions)
func RunMigrations ¶ added in v1.11.25
func UIPrintCRD ¶ added in v1.2.39
UIPrintCRD prints crd to ui
func UiPrintContext ¶ added in v1.9.23
Types ¶
type CloudUris ¶ added in v1.11.25
type CloudUris struct { RootDomain string `json:"rootDomain"` Api string `json:"api"` Agent string `json:"agent"` Ui string `json:"ui"` Auth string `json:"auth"` }
func NewCloudUris ¶ added in v1.11.25
type HelmOptions ¶ added in v1.11.25
type HelmOptions struct {
Name, Namespace, Chart, Values string
NoDashboard, NoMinio, NoMongo, NoConfirm bool
MinioReplicas, MongoReplicas, DashboardReplicas int
// Cloud only params
CloudAgentToken string
CloudIdToken string
CloudRootDomain string
CloudOrgId, CloudEnvId string
CloudUris CloudUris
// For debug
DryRun bool
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.