Documentation ¶
Index ¶
- Variables
- func RandomString(n int) string
- type BackupImageSpoke
- type Client
- func (c Client) CreatePlacementBinding(PlacementBindingName string, PlacementRuleName string) error
- func (c Client) CreatePlacementRule() error
- func (c Client) GetImageFromImageSet(name string) (string, error)
- func (c Client) GetReleaseImage() (string, error)
- func (c Client) GetRootFSUrl() (string, error)
- func (c Client) GetRootFsFromVersion(version string) (string, error)
- func (c Client) LaunchLiveImageBackup(liveImg string) error
- func (c Client) LaunchReleaseImageBackup(releaseImg string) error
- func (c *Client) MonitorPolicies() bool
- func (c Client) NoPoliciesExist() bool
- func (c Client) RemovePreviousResources() error
- func (c Client) SpokeClusterExists() bool
- func (c Client) WaitForCompletion() error
- type PlacementBinding
Constants ¶
This section is empty.
Variables ¶
View Source
var LIVE_POLICY string = "policy-backup-live-image"
View Source
var NAMESPACE = "open-cluster-management"
View Source
var RELEASE_POLICY string = "policy-backup-release-image"
View Source
var RETRY_PERIOD_SECONDS = 10
View Source
var TIMEOUT_MINUTES = 15
Functions ¶
func RandomString ¶
Types ¶
type BackupImageSpoke ¶
type Client ¶
type Client struct { KubeconfigPath string Spoke string BinaryImage string BackupPath string KubernetesClient dynamic.Interface CurrentLiveVersion string CurrentReleaseVersion string }
func (Client) CreatePlacementBinding ¶
create a generic placement binding
func (Client) CreatePlacementRule ¶
creates a global placement rule for spoke
func (Client) GetImageFromImageSet ¶
function to query an imageset and return the image
func (Client) GetReleaseImage ¶
function to retrieve a Release Image of a given cluster
func (Client) GetRootFSUrl ¶
function to retrieve the openshift version and retrieve rootfs
func (Client) GetRootFsFromVersion ¶
given a version, retrieves the matching rootfs
func (Client) LaunchLiveImageBackup ¶
launch the backup for the spoke cluster, for the specific image
func (Client) LaunchReleaseImageBackup ¶
launch the backup for the spoke cluster, for the specific release image
func (*Client) MonitorPolicies ¶
checks status of policies and deletes if completed
func (Client) NoPoliciesExist ¶
checks if the expected policies are already removed
func (Client) RemovePreviousResources ¶
removes all previously created resources
func (Client) SpokeClusterExists ¶
func (Client) WaitForCompletion ¶
waits until policies are completed, and clean resources
type PlacementBinding ¶
Click to show internal directories.
Click to hide internal directories.