componentinfo

package
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentInfo

type ComponentInfo struct {
	// contains filtered or unexported fields
}

ComponentInfo provides information about components of system

func NewComponentInfo

func NewComponentInfo(coreClient kubernetes.Interface, clusterAccess *kubeconfig.Kubeconfig, kappControllerVersion string) *ComponentInfo

NewComponentInfo returns a ComponentInfo

func (*ComponentInfo) KappControllerVersion

func (ci *ComponentInfo) KappControllerVersion() (semver.Version, error)

KappControllerVersion returns the running KC version

func (*ComponentInfo) KubernetesAPIs

func (ci *ComponentInfo) KubernetesAPIs() ([]string, error)

KubernetesAPIs returns the available kubernetes Group/Version resources

func (*ComponentInfo) KubernetesVersion

func (ci *ComponentInfo) KubernetesVersion(serviceAccountName string, specCluster *v1alpha1.AppCluster, objMeta *metav1.ObjectMeta) (semver.Version, error)

KubernetesVersion returns the running K8s version depending on AppSpec If AppSpec points to external cluster, we use that k8s version instead

Jump to

Keyboard shortcuts

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