Documentation
¶
Overview ¶
Package data provides data types for the TKR Resolver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OSImageQuery ¶
type OSImageQuery struct {
// K8sVersionPrefix is a version prefix for matching Kubernetes versions.
K8sVersionPrefix string
// TKRSelector is a label selector that resolved TKRs must satisfy.
TKRSelector labels.Selector
// OSImageSelector is a label selector that resolved OSImages must satisfy.
OSImageSelector labels.Selector
}
OSImageQuery sets constraints for resolution of OSImages for the control plane or a machine deployment of a cluster.
func (*OSImageQuery) String ¶ added in v0.20.0
func (q *OSImageQuery) String() string
type OSImageResult ¶
type OSImageResult struct {
// K8sVersion is the latest conforming K8s version. If empty, then no K8s version satisfied the query.
K8sVersion string
// TKRName is the latest conforming TKR name. If empty, then no TKRs satisfied the query.
TKRName string
// TKRsByK8sVersion maps resolved K8s versions to TKRs.
TKRsByK8sVersion map[string]TKRs
// OSImagesByTKR maps resolved TKR names to OSImages.
OSImagesByTKR map[string]OSImages
}
OSImageResult carries the results of OSImage resolution for the control plane or a machine deployment of a cluster.
func (*OSImageResult) String ¶ added in v0.20.0
func (r *OSImageResult) String() string
type OSImages ¶
OSImages is a set of OSImage objects implemented as a map osImage.Name -> osImage.
type Query ¶
type Query struct {
// ControlPlane specifies the Query for the control plane.
// Set to nil if we want to skip resolving the control plane part.
ControlPlane *OSImageQuery
// MachineDeployments specifies the OSImageQueries for worker machine deployments.
// An individual machine deployment query part may be set to nil if we want to skip resolving it.
MachineDeployments []*OSImageQuery
}
Query sets constraints for resolution of TKRs. Its structure reflects Cluster API cluster topology.
type Result ¶
type Result struct {
// ControlPlane carries the Result for the control plane.
// It is set to nil if resolving the control plane part was skipped.
ControlPlane *OSImageResult
// ControlPlane carries the Result for worker machine deployments.
// An individual machine deployment result is set to nil if resolving it was skipped.
MachineDeployments []*OSImageResult
}
Result carries the results of TKR resolution. Its structure reflects Cluster API cluster topology.
type TKRs ¶
type TKRs map[string]*runv1.TanzuKubernetesRelease
TKRs is a set of TanzuKubernetesRelease objects implemented as a map tkr.Name -> tkr.