componentinfo

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package componentinfo provides access to version and configuration information about components of the system.

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

func (*ComponentInfo) NamespaceStatus added in v0.46.0

func (ci *ComponentInfo) NamespaceStatus(name string) (v1.NamespaceStatus, error)

NamespaceStatus returns the status of the App namespace

Jump to

Keyboard shortcuts

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