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 ¶
This section is empty.
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. 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.