ocmlabels

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 WORKLOADS_LABEL_KEY = newAusLabelKey("workloads")

Functions

func LabelSupported added in v0.3.3

func LabelSupported(label *amv1.Label, supportedLabelKeys []string) bool

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 (f *OCMLabelsPolicyBackend) ApplyBlockedVersionExpressions(organizationId string, blockExpressions []string, dumpVersionBlocks bool, dryRun bool) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL