version

package
v0.27.0-rc.0 Latest Latest
Warning

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

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

Documentation

Overview

Package version contains common functions to get versions

Package version contains version cmd

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchCrossplaneVersion

func FetchCrossplaneVersion(ctx context.Context) (string, error)

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) (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"`
}

func (*Cmd) BeforeApply

func (c *Cmd) BeforeApply() error

BeforeApply sets default values and parses flags

func (*Cmd) Help

func (c *Cmd) Help() string

func (*Cmd) Run

func (c *Cmd) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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