Documentation ¶
Index ¶
- Constants
- Variables
- func AddNamespaceAnnotationForVolSync(client client.Client, namespace string) error
- func CreateNamespace(client client.Client, namespace string) error
- func CreateNamespaceAndAddAnnotation(namespace string) error
- func DeleteNamespace(client client.Client, namespace string, log logr.Logger) error
- func EnsureChannel() error
- func EnsureChannelDeleted() error
- func FindPod(client *kubernetes.Clientset, namespace, labelSelector, podIdentifier string) (*v1.Pod, error)
- func GetChannelName() string
- func GetChannelNamespace() string
- func GetDRPolicy(client client.Client, name string) (*ramen.DRPolicy, error)
- func GetGitURL() string
- func GetRamenNameSpace(k8sClient *kubernetes.Clientset) (string, error)
- func IsOpenShiftCluster(k8sClient *kubernetes.Clientset) (bool, error)
- func ReadConfig(log logr.Logger, configFile string) error
- func ValidateRamenDRClusterOperator(k8sClient *kubernetes.Clientset, clusterName string) error
- func ValidateRamenHubOperator(k8sClient *kubernetes.Clientset) error
- type Cluster
- type Context
- type PVCSpec
- type TestConfig
Constants ¶
View Source
const ( RamenSystemNamespace = "ramen-system" Timeout = 600 * time.Second RetryInterval = 5 * time.Second ArgocdNamespace = "argocd" RamenOpsNs = "ramen-ops" )
View Source
const DefaultDRPolicyName = "dr-policy"
Variables ¶
View Source
var ConfigFile string
Functions ¶
func CreateNamespaceAndAddAnnotation ¶
Problem: currently we must manually add an annotation to application’s namespace to make volsync work. See this link https://volsync.readthedocs.io/en/stable/usage/permissionmodel.html#controlling-mover-permissions Workaround: create ns in both drclusters and add annotation
func DeleteNamespace ¶
func EnsureChannel ¶
func EnsureChannel() error
func EnsureChannelDeleted ¶
func EnsureChannelDeleted() error
func FindPod ¶
func FindPod(client *kubernetes.Clientset, namespace, labelSelector, podIdentifier string) ( *v1.Pod, error, )
FindPod returns the first pod matching the label selector including the pod identifier in the namespace.
func GetChannelName ¶
func GetChannelName() string
func GetChannelNamespace ¶
func GetChannelNamespace() string
func GetDRPolicy ¶
nolint:unparam
func GetRamenNameSpace ¶
func GetRamenNameSpace(k8sClient *kubernetes.Clientset) (string, error)
func IsOpenShiftCluster ¶
func IsOpenShiftCluster(k8sClient *kubernetes.Clientset) (bool, error)
IsOpenShiftCluster checks if the given Kubernetes cluster is an OpenShift cluster. It returns true if the cluster is OpenShift, false otherwise, along with any error encountered.
func ValidateRamenDRClusterOperator ¶
func ValidateRamenDRClusterOperator(k8sClient *kubernetes.Clientset, clusterName string) error
func ValidateRamenHubOperator ¶
func ValidateRamenHubOperator(k8sClient *kubernetes.Clientset) error
Types ¶
type PVCSpec ¶
func GetPVCSpecs ¶
func GetPVCSpecs() []PVCSpec
Click to show internal directories.
Click to hide internal directories.