Documentation ¶
Overview ¶
Package version contains common functions to get versions
Package version contains version cmd
Index ¶
- func FetchCrossplaneVersion(ctx context.Context, clientset kubernetes.Clientset) (string, error)
- func FetchSpacesVersion(ctx context.Context, context *clientcmdapi.Context, ...) (string, error)
- type Cmd
- func (c *Cmd) AfterApply(kongCtx *kong.Context) error
- func (c *Cmd) BeforeApply() error
- func (c *Cmd) BuildVersionInfo(ctx context.Context, kongCtx *kong.Context, upCtx *upbound.Context) (v versionInfo)
- func (c *Cmd) Help() string
- func (c *Cmd) Run(ctx context.Context, kongCtx *kong.Context, upCtx *upbound.Context, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchCrossplaneVersion ¶
FetchCrossplaneVersion initializes a Kubernetes client and fetches and returns the version of the Crossplane deployment. If the version does not have a leading 'v', it prepends it.
func FetchSpacesVersion ¶
func FetchSpacesVersion(ctx context.Context, context *clientcmdapi.Context, clientset kubernetes.Clientset) (string, error)
FetchSpacesVersion initializes a Kubernetes client and fetches and returns the version of the spaces-controller deployment.
Types ¶
type Cmd ¶
type Cmd struct { Client bool `env:"" help:"If true, shows client version only (no server required)." json:"client,omitempty"` // Common Upbound API configuration Flags upbound.Flags `embed:""` }
func (*Cmd) BeforeApply ¶
BeforeApply sets default values and parses flags
func (*Cmd) BuildVersionInfo ¶ added in v0.30.0
Click to show internal directories.
Click to hide internal directories.