Documentation ¶
Overview ¶
Package componentinfo provides access to version and configuration information about components of the system.
Index ¶
- type ComponentInfo
- func (ci *ComponentInfo) KappControllerVersion() (semver.Version, error)
- func (ci *ComponentInfo) KubernetesAPIs() ([]string, error)
- func (ci *ComponentInfo) KubernetesVersion(serviceAccountName string, specCluster *v1alpha1.AppCluster, ...) (semver.Version, error)
- func (ci *ComponentInfo) NamespaceStatus(name string) (v1.NamespaceStatus, error)
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
Click to show internal directories.
Click to hide internal directories.