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
Click to show internal directories.
Click to hide internal directories.