upgrade

package
v1.6.7-prerelease.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright (c) 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AckVersionGate

func AckVersionGate(
	gateAgreementsClient *cmv1.VersionGateAgreementsClient,
	gateID string) error

func CheckAndCancelUpgrades

func CheckAndCancelUpgrades(
	ctx context.Context,
	client *cmv1.ClustersClient,
	upgrades []MachinePoolUpgrade, desiredVersion *semver.Version) (bool, error)

Check the provided list of upgrades, canceling pending upgrades that are not for the correct version, and returning an error if there is already an upgrade in progress that is not for the desired version

func CheckMissingAgreements

func CheckMissingAgreements(version string,
	clusterKey string, upgradePoliciesClient *cmv1.NodePoolUpgradePoliciesClient) ([]*cmv1.VersionGate, string, error)

Construct a list of missing gate agreements for upgrade to a given cluster version Returns: a list of all un-acked gate agreements, a string describing the ones that need user ack, and an error

func GetAvailableUpgradeVersions

func GetAvailableUpgradeVersions(
	ctx context.Context,
	clustersClient *cmv1.ClustersClient,
	versionClient *cmv1.VersionsClient,
	clusterId string, nodePoolId string) ([]*cmv1.Version, error)

Get the available upgrade versions that are reachable from a given starting version

Types

type MachinePoolUpgrade

type MachinePoolUpgrade struct {
	Policy      *cmv1.NodePoolUpgradePolicy
	PolicyState *cmv1.UpgradePolicyState
}

func GetScheduledUpgrades

func GetScheduledUpgrades(ctx context.Context,
	client *cmv1.ClustersClient, clusterId string, machinePoolId string) ([]MachinePoolUpgrade, error)

Get the list of upgrade policies associated with a cluster

Jump to

Keyboard shortcuts

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