clusters

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AckAllGatesForYStream

func AckAllGatesForYStream(cluster *ClusterInfo, yStream string, connection *sdk.Connection, dryRun bool) ([]*csv1.VersionGateAgreement, error)

func SortClusters

func SortClusters(clusters []*ClusterInfo)

Types

type ClusterInfo

type ClusterInfo struct {
	Subscription          *amv1.Subscription
	Cluster               *csv1.Cluster
	VersionGateAgreements *map[string]*csv1.VersionGateAgreement
	Policy                *policy.ClusterUpgradePolicy
}

func ClusterInfosForOrganization

func ClusterInfosForOrganization(organizationId string, subscriptionSearchQuery string, withAgreements bool, connection *sdk.Connection) ([]*ClusterInfo, error)

func GetClusterInfoByName

func GetClusterInfoByName(organizationID string, clusterName string, connection *sdk.Connection) (*ClusterInfo, error)

func (*ClusterInfo) AvailableUpgrades

func (c *ClusterInfo) AvailableUpgrades(considerBlockedVersions bool, additionalBlockedVersions []*regexp.Regexp) []string

func (*ClusterInfo) MissingGateAgreements added in v0.5.2

func (c *ClusterInfo) MissingGateAgreements(additionalBlockedVersions []*regexp.Regexp, gates map[string][]*csv1.VersionGate) ([]*csv1.VersionGate, error)

func (*ClusterInfo) STSEnabled

func (c *ClusterInfo) STSEnabled() bool

func (*ClusterInfo) YStreamUpgrades

func (c *ClusterInfo) YStreamUpgrades(considerBlockedVersions bool, additionalBlockedVersions []*regexp.Regexp) []string

func (*ClusterInfo) YStreamsWithMissingSTSGateAgreements

func (c *ClusterInfo) YStreamsWithMissingSTSGateAgreements(additionalBlockedVersions []*regexp.Regexp, gates map[string][]*csv1.VersionGate) ([]string, error)

Jump to

Keyboard shortcuts

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