cmd

package
v0.0.0-...-cd103b1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var (
	OdigosVersion string
	OdigosCommit  string
	OdigosDate    string
)
View Source
var (
	DefaultIgnoredNamespaces = []string{"odigos-system", "kube-system", "local-path-storage", "istio-system", "linkerd", "kube-node-lease"}
)

Functions

func DoDownloadNewUiBinary

func DoDownloadNewUiBinary(version string, binaryDir string, goarch string, goos string) error

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetLatestReleaseVersion

func GetLatestReleaseVersion() (string, error)

func GetOdigosUiBinaryPath

func GetOdigosUiBinaryPath() (binaryPath, binaryDir string)

func GetOdigosVersionInCluster

func GetOdigosVersionInCluster(ctx context.Context, client *kube.Client, ns string) (string, error)

Types

type Release

type Release struct {
	TagName string `json:"tag_name"`
}

type ResourceCreationFunc

type ResourceCreationFunc func(ctx context.Context, cmd *cobra.Command, client *kube.Client, ns string) error

type VersionChangeType

type VersionChangeType int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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