Documentation ¶
Index ¶
- Constants
- Variables
- func CRDCompatibleVersion(operatorVersion string) (string, error)
- func GetResourcesForVersion(version string) ([]string, bool)
- func SupportedVersions() []string
- func UnknownBackupPolicyFrequencyTypesPruner(crdSpec *apiextensionsv1.JSONSchemaProps, obj runtime.Object) error
- type AtlasCRDs
- type FeatureValidator
- type Patcher
- type PatcherFunc
Constants ¶
View Source
const ( LatestOperatorMajorVersion = "2.2.0" ResourceVersion = "mongodb.com/atlas-resource-version" ResourceAtlasProject = "atlasprojects" ResourceAtlasDeployment = "atlasdeployments" ResourceAtlasDatabaseUser = "atlasdatabaseusers" ResourceAtlasBackupSchedule = "atlasbackupschedules" ResourceAtlasBackupPolicy = "atlasbackuppolicies" ResourceAtlasTeam = "atlasteams" ResourceAtlasDataFederation = "atlasdatafederations" ResourceAtlasFederatedAuth = "atlasfederatedauths" )
Variables ¶
View Source
var ( ErrVersionNotSupportedFmt = "version '%s' is not supported" ErrDownloadResourceFailedFmt = "can not download resource '%s': %v" ErrDocumentIsEmpty = errors.New("document is empty") ErrDocumentHasNoVersions = errors.New("document contains no versions") ErrDocumentHasNoSchema = errors.New("document contains no Schema") ErrDocumentHasNoSpec = errors.New("document contains no Spec") )
Functions ¶
func CRDCompatibleVersion ¶
func GetResourcesForVersion ¶
func SupportedVersions ¶
func SupportedVersions() []string
func UnknownBackupPolicyFrequencyTypesPruner ¶
func UnknownBackupPolicyFrequencyTypesPruner(crdSpec *apiextensionsv1.JSONSchemaProps, obj runtime.Object) error
UnknownBackupPolicyFrequencyTypesPruner removes backup policy items from a backup policy with unknown frequency types. It inspects the CRD definition to determine supported frequency types.
Types ¶
type AtlasCRDs ¶
type AtlasCRDs struct {
// contains filtered or unexported fields
}
func NewAtlasCRDs ¶
func NewAtlasCRDs(crdProvider crds.AtlasOperatorCRDProvider, version string) (*AtlasCRDs, error)
func (*AtlasCRDs) FeatureExist ¶
FeatureExist resourceName: one of SupportedResources featurePath: dot-separated string - path in CRD spec to check.
type FeatureValidator ¶
type Patcher ¶
type Patcher interface {
Patch(crdSpec *apiextensionsv1.JSONSchemaProps, obj runtime.Object) error
}
Patcher is the type that is able to patch Kubernetes objects using a CRD specification.
type PatcherFunc ¶
type PatcherFunc func(crdSpec *apiextensionsv1.JSONSchemaProps, obj runtime.Object) error
PatcherFunc is a convenience function wrapper around Patcher.
func (PatcherFunc) Patch ¶
func (pf PatcherFunc) Patch(crdSpec *apiextensionsv1.JSONSchemaProps, obj runtime.Object) error
Click to show internal directories.
Click to hide internal directories.