Documentation
¶
Overview ¶
Package crd installs CustomResourceDefinitions bundled with Deckhouse packages (modules) and reports the GroupVersionKinds of Deckhouse-managed CRDs present in the cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrCRDsNotFound = fmt.Errorf("no crds found")
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service applies CRDs found in package paths and reports the GroupVersionKinds of Deckhouse-managed CRDs. It records the GVKs each module applies at install time, so GetManagedGVKs is served from memory without listing the cluster, and the path it installed, so an unchanged path is not installed again. It is safe for concurrent use.
func NewService ¶
NewService returns a Service that applies CRDs via the given Kubernetes client.
func (*Service) GetManagedGVKs ¶
GetManagedGVKs returns the GroupVersionKinds of the CRDs applied for the given enabled modules, as "group/version/kind" strings. The set is built from what each module's Install recorded, so a module whose CRDs have not been ensured (or that is not enabled) contributes nothing. Results are deduplicated. Returns nil when no modules are enabled.
func (*Service) HasCRDs ¶ added in v1.78.0
HasCRDs scans the package's crds directory and returns nil if any CRDs are found.