package
0.0.0-20240906143141-b635a80ff528
Repository: https://github.com/ramendr/ramen.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
outputs a string for use in creating a ManagedClusterView name example: when looking for a vrg with name 'demo' in the namespace 'ramen', input: ("demo", "ramen", "vrg") this will give output "demo-ramen-vrg-mcv".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GeneratePolicyName generates a policy name by combining the word "vs-secret-" with the name.
GeneratePolicyResourceNames returns names (in order) for policy resources that are created, policyName: Name of the policy plBindingName: Name of the PlacementBinding that ties a Policy to a PlacementRule plRuleName: Name of the PlacementRule configPolicyName: Name of the ConfigurationPolicy resource embedded within the Policy.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint:gomnd.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VSHandler will either look at VolumeAttachments or pods to determine if a PVC is mounted To do this, it requires an index on pods and volumeattachments to keep track of persistent volume claims mounted.
No description provided by the author
No description provided by the author
For CSI drivers that support it, volume attachments will be created for the PV to indicate which node they are attached to.
IsPVCInUseByPod determines if there are any pod resources that reference the pvcName in the current pvcNamespace and returns true if found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Copies src's key-value pairs into dst.
No description provided by the author
Deletes any key-value pairs from dst that are in src.
No description provided by the author
No description provided by the author
Copies src's key-value pairs into dst only if src's keys are all absent from dst.
No description provided by the author
MergeConditions merges VRG conditions of the same type to generate a single condition for the Type.
No description provided by the author
NewEventReporter returns EventReporter object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OptionalEqual returns True if optional field values are equal, or one of them is unset.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReportIfNotPresent will report event if lastReportedEvent is not the same in last 10 minutes TODO: The duration 10 minutes can be changed to some other value if necessary.
Return true if resource was marked for deletion.
No description provided by the author
UpdateStringMap copies all key/value pairs in src adding them to map referenced by the dst pointer.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventReasonSecondarySuccess is an event generated when VRG is successfully processed as Primary.
EventReasonDeployFail is an event generated when DRPC fails to do a successful initial deployment of the application and ramen managed cluster component(s).
EventReasonDeploying is generated when DRPC begins to deploy ramen manged cluster component(s) and the application.
EventReasonDeploySuccess is an event generated when DRPC successfully deploys ramen and the application in the managed cluster initially.
EventReasonFailingOver is an event generated when DRPC starts the failover process.
EventReasonFailoverSuccess is an evenet generated when DRPC does a successful failover.
EventReasonPrimarySuccess is an event generated when VRG is successfully processed as Primary.
EventReasonProtectPVCFailed is used when VRG fails to protect PVC.
EventReasonPVCListFailed is used when VRG fails to get the list of PVCs.
EventReasonRelocating is an event generated when DRPC starts relocating.
EventReasonRelocationSuccess is an event generated when DRPC successfully relocates an application along with ramen managed cluster component(s).
EventReasonSecondarySuccess is an event generated when VRG is successfully processed as Primary.
EventReasonSwitchFailed is generated when DRPC fails to switch the cluster where the app is placed.
EventReasonUploadFailed is used when VRG fails to upload PV cluster data.
EventReasonValidationFailed is used when VolumeReplicationGroup validation fails.
EventReasonVRCreateFailed is used when VRG fails to create VolRep resource.
EventReasonVrgUploadFailed is used when VRG fails to upload VRG object.
EventReasonVRCreateFailed is used when VRG fails to update VolRep resource.
No description provided by the author
This implementation of events infrastructure is mainly based on the way events is handled in the ocs-operator.
ManifestWorkNameFormat is a formated a string used to generate the manifest name The format is name-namespace-type-mw where: - name is the DRPC name - namespace is the DRPC namespace - type is "vrg".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ManifestWork Types.
No description provided by the author
No description provided by the author
No description provided by the author
nolint:lll See: https://github.com/stolostron/rhacm-docs/blob/2.4_stage/governance/custom_template.adoc#special-annotation-for-reprocessing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Finalizer on the secret.
do not delete the vs in a vgs, only for testing.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
EventReporter is custom events reporter type which allows user to limit the events.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

begin MCV code.

# Type aliases

No description provided by the author
No description provided by the author
TargetSecretFormat defines the secret format to deliver to the cluster.