Documentation
¶
Index ¶
Constants ¶
View Source
const (
BundleConfigWatchNamespaceKey = "watchNamespace"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.6.0
type Config struct {
WatchNamespace *string `json:"watchNamespace"`
}
func UnmarshalConfig ¶ added in v1.6.0
func UnmarshalConfig(bytes []byte, rv1 RegistryV1, installNamespace string) (*Config, error)
UnmarshalConfig returns a deserialized *bundle.Config based on bytes and validated against rv1 and the desired install namespaces. It will error if: - rv is nil - bytes is not a valid YAML/JSON object - bytes is a valid YAML/JSON object but does not follow the registry+v1 schema - if bytes is nil, a nil *bundle.Config is returned with no error
type RegistryV1 ¶
type RegistryV1 struct {
PackageName string
CSV v1alpha1.ClusterServiceVersion
CRDs []apiextensionsv1.CustomResourceDefinition
Others []unstructured.Unstructured
}
Click to show internal directories.
Click to hide internal directories.