Documentation
¶
Index ¶
- Variables
- func LabelSupported(label *amv1.Label, supportedLabelKeys []string) bool
- type OCMLabelsContainer
- type OCMLabelsPolicyBackend
- func (f *OCMLabelsPolicyBackend) ApplyBlockedVersionExpressions(organizationId string, blockExpressions []string, dumpVersionBlocks bool, ...) error
- func (f *OCMLabelsPolicyBackend) ApplyPolicies(organizationId string, policies []policy.ClusterUpgradePolicy, dumpPolicy bool, ...) error
- func (f *OCMLabelsPolicyBackend) ApplySectorConfiguration(organizationId string, sectorDependencies []sectors.SectorDependencies, ...) error
- func (f *OCMLabelsPolicyBackend) ApplyVersionDataInheritanceConfiguration(organizationId string, inheritance versiondata.VersionDataInheritanceConfig, ...) error
- func (f *OCMLabelsPolicyBackend) DeletePolicy(organizationId string, clusterName string, dryRun bool) error
- func (f *OCMLabelsPolicyBackend) GetVersionDataInheritanceConfiguration(organizationId string) (versiondata.VersionDataInheritanceConfig, error)
- func (f *OCMLabelsPolicyBackend) ListBlockedVersionExpressions(organizationId string) ([]string, error)
- func (f *OCMLabelsPolicyBackend) ListPolicies(organizationId string, showClustersWithoutPolicy bool) (map[string]*clusters.ClusterInfo, error)
- func (f *OCMLabelsPolicyBackend) ListSectorConfiguration(organizationId string) ([]sectors.SectorDependencies, error)
- func (f *OCMLabelsPolicyBackend) Status(organizationId string, showClustersWithoutPolicy bool) (organization *amv1.Organization, clusterInfos []*clusters.ClusterInfo, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var BLOCKED_VERSIONS_LABEL_KEY = newAusLabelKey("blocked-versions")
View Source
var INHERIT_LABEL_KEY = newAusLabelKey("version-data.inherit")
View Source
var MUTEXES_LABEL_KEY = newAusLabelKey("mutexes")
View Source
var PUBLISH_LABEL_KEY = newAusLabelKey("version-data.publish")
View Source
var SCHEDULE_LABEL_KEY = newAusLabelKey("schedule")
View Source
var SECTOR_LABEL_KEY = newAusLabelKey("sector")
View Source
var SOAK_DAYS_LABEL_KEY = newAusLabelKey("soak-days")
View Source
var SUPPORTED_POLICY_LABELS = []string{ SOAK_DAYS_LABEL_KEY, WORKLOADS_LABEL_KEY, SECTOR_LABEL_KEY, SCHEDULE_LABEL_KEY, MUTEXES_LABEL_KEY, BLOCKED_VERSIONS_LABEL_KEY, }
View Source
var WORKLOADS_LABEL_KEY = newAusLabelKey("workloads")
Functions ¶
Types ¶
type OCMLabelsContainer ¶
type OCMLabelsContainer struct {
// contains filtered or unexported fields
}
func NewOCMLabelsContainer ¶
func NewOCMLabelsContainer(currentLLabels []*amv1.Label) *OCMLabelsContainer
func NewRestrictingOCMLabelsContainer ¶ added in v0.3.3
func NewRestrictingOCMLabelsContainer(currentLLabels []*amv1.Label, supportedLabelKeys []string) *OCMLabelsContainer
func (*OCMLabelsContainer) AddLabel ¶
func (lc *OCMLabelsContainer) AddLabel(label *amv1.Label) bool
func (*OCMLabelsContainer) AddLabels ¶
func (lc *OCMLabelsContainer) AddLabels(label []*amv1.Label) bool
func (*OCMLabelsContainer) LabelSupported ¶ added in v0.3.3
func (lc *OCMLabelsContainer) LabelSupported(label *amv1.Label) bool
func (*OCMLabelsContainer) Reconcile ¶
func (lc *OCMLabelsContainer) Reconcile(dryRun bool, connection *sdk.Connection) error
type OCMLabelsPolicyBackend ¶
type OCMLabelsPolicyBackend struct { }
func NewOCMLabelsPolicyBackend ¶
func NewOCMLabelsPolicyBackend() *OCMLabelsPolicyBackend
func (*OCMLabelsPolicyBackend) ApplyBlockedVersionExpressions ¶
func (*OCMLabelsPolicyBackend) ApplyPolicies ¶
func (f *OCMLabelsPolicyBackend) ApplyPolicies(organizationId string, policies []policy.ClusterUpgradePolicy, dumpPolicy bool, dryRun bool) error
func (*OCMLabelsPolicyBackend) ApplySectorConfiguration ¶
func (f *OCMLabelsPolicyBackend) ApplySectorConfiguration(organizationId string, sectorDependencies []sectors.SectorDependencies, dumpSectorDeps bool, dryRun bool) error
func (*OCMLabelsPolicyBackend) ApplyVersionDataInheritanceConfiguration ¶ added in v0.4.0
func (f *OCMLabelsPolicyBackend) ApplyVersionDataInheritanceConfiguration(organizationId string, inheritance versiondata.VersionDataInheritanceConfig, dumpConfig bool, dryRun bool) error
func (*OCMLabelsPolicyBackend) DeletePolicy ¶
func (f *OCMLabelsPolicyBackend) DeletePolicy(organizationId string, clusterName string, dryRun bool) error
func (*OCMLabelsPolicyBackend) GetVersionDataInheritanceConfiguration ¶ added in v0.4.0
func (f *OCMLabelsPolicyBackend) GetVersionDataInheritanceConfiguration(organizationId string) (versiondata.VersionDataInheritanceConfig, error)
func (*OCMLabelsPolicyBackend) ListBlockedVersionExpressions ¶
func (f *OCMLabelsPolicyBackend) ListBlockedVersionExpressions(organizationId string) ([]string, error)
func (*OCMLabelsPolicyBackend) ListPolicies ¶
func (f *OCMLabelsPolicyBackend) ListPolicies(organizationId string, showClustersWithoutPolicy bool) (map[string]*clusters.ClusterInfo, error)
func (*OCMLabelsPolicyBackend) ListSectorConfiguration ¶
func (f *OCMLabelsPolicyBackend) ListSectorConfiguration(organizationId string) ([]sectors.SectorDependencies, error)
func (*OCMLabelsPolicyBackend) Status ¶
func (f *OCMLabelsPolicyBackend) Status(organizationId string, showClustersWithoutPolicy bool) (organization *amv1.Organization, clusterInfos []*clusters.ClusterInfo, blockedVersions []string, sectors []sectors.SectorDependencies, inheritance versiondata.VersionDataInheritanceConfig, err error)
Click to show internal directories.
Click to hide internal directories.