version

package
v1.20.5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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.

Types

type Cmd

type Cmd struct {
	Client bool `env:"" help:"If true, shows client version only (no server required)."`
}

Cmd represents the version command.

func (*Cmd) Run

func (c *Cmd) Run(k *kong.Context) error

Run runs the version command.

Jump to

Keyboard shortcuts

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