mgmtparams

package
v0.0.0-...-d1a32ca Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label represents mgmt label that can be used for test cases selection.
	Label = "mgmt"

	// LCANamespace is the namespace used by the lifecycle-agent.
	LCANamespace = "openshift-lifecycle-agent"

	// LCAWorkloadName is the name used for creating resources needed to backup workload app.
	LCAWorkloadName = "ibu-workload-app"

	// LCAOADPNamespace is the namespace used by the OADP operator.
	LCAOADPNamespace = "openshift-adp"

	// LCAKlusterletName is the name of the backup/restore objects related to the klusterlet.
	LCAKlusterletName = "ibu-klusterlet"

	// LCAKlusterletNamespace is the namespace that contains the klusterlet.
	LCAKlusterletNamespace = "open-cluster-management-agent"

	// MGMTLogLevel custom loglevel for the mgmt testing verbose mode.
	MGMTLogLevel = 50
)

Variables

View Source
var KlusterletBackup = brutil.BackupRestoreObject{
	Scheme: veleroScheme.Scheme,
	GVR:    velerov1.SchemeGroupVersion,
	Object: &velerov1.Backup{
		ObjectMeta: metav1.ObjectMeta{
			Name:      LCAKlusterletName,
			Namespace: LCAOADPNamespace,
			Labels: map[string]string{
				"velero.io/storage-location": "default",
			},
		},
		Spec: velerov1.BackupSpec{
			IncludedNamespaces: []string{
				LCAKlusterletNamespace,
			},
			IncludedClusterScopedResources: []string{
				"klusterlets.operator.open-cluster-management.io",
				"clusterclaims.cluster.open-cluster-management.io",
				"clusterroles.rbac.authorization.k8s.io",
				"clusterrolebindings.rbac.authorization.k8s.io",
			},
			IncludedNamespaceScopedResources: []string{
				"deployments",
				"serviceaccounts",
				"secrets",
			},
		},
	},
}

KlusterletBackup represents ibu klusterlet backup.

View Source
var KlusterletRestore = brutil.BackupRestoreObject{
	Scheme: veleroScheme.Scheme,
	GVR:    velerov1.SchemeGroupVersion,
	Object: &velerov1.Restore{
		ObjectMeta: metav1.ObjectMeta{
			Name:      LCAKlusterletName,
			Namespace: LCAOADPNamespace,
			Labels: map[string]string{
				"velero.io/storage-location": "default",
			},
		},
		Spec: velerov1.RestoreSpec{
			BackupName: LCAKlusterletName,
		},
	},
}

KlusterletRestore represents ibu klusterlet restore.

View Source
var (
	// Labels represents the range of labels that can be used for test cases selection.
	Labels = []string{ibuparams.Label, Label}
)
View Source
var WorkloadBackup = brutil.BackupRestoreObject{
	Scheme: veleroScheme.Scheme,
	GVR:    velerov1.SchemeGroupVersion,
	Object: &velerov1.Backup{
		ObjectMeta: metav1.ObjectMeta{
			Name:      LCAWorkloadName,
			Namespace: LCAOADPNamespace,
			Labels: map[string]string{
				"velero.io/storage-location": "default",
			},
		},
		Spec: velerov1.BackupSpec{
			IncludedNamespaces: []string{
				LCAWorkloadName,
			},
			IncludedNamespaceScopedResources: []string{
				"deployments",
				"services",
				"routes",
			},
			ExcludedClusterScopedResources: []string{
				"persistentVolumes",
			},
		},
	},
}

WorkloadBackup represents ibu-workload backup.

View Source
var WorkloadRestore = brutil.BackupRestoreObject{
	Scheme: veleroScheme.Scheme,
	GVR:    velerov1.SchemeGroupVersion,
	Object: &velerov1.Restore{
		ObjectMeta: metav1.ObjectMeta{
			Name:      LCAWorkloadName,
			Namespace: LCAOADPNamespace,
			Labels: map[string]string{
				"velero.io/storage-location": "default",
			},
		},
		Spec: velerov1.RestoreSpec{
			BackupName: LCAWorkloadName,
		},
	},
}

WorkloadRestore represents ibu-workload restore.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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