Payment Flow + Access Flow Change
This commit is contained in:
@@ -599,6 +599,16 @@ func (k *KubernetesService) CreateSecret(context context.Context, minioId string
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeleteSecretsByLabel deletes all Secrets in the given namespace matching labelSelector.
|
||||
// Used by oc-datacenter to clean up ephemeral source-presigned Secrets after workflow completion.
|
||||
func (k *KubernetesService) DeleteSecretsByLabel(ctx context.Context, namespace, labelSelector string) error {
|
||||
return k.Set.CoreV1().Secrets(namespace).DeleteCollection(
|
||||
ctx,
|
||||
metav1.DeleteOptions{},
|
||||
metav1.ListOptions{LabelSelector: labelSelector},
|
||||
)
|
||||
}
|
||||
|
||||
// CreatePVC creates a static PersistentVolume + PersistentVolumeClaim in the given namespace.
|
||||
// Static provisioning (no StorageClass) avoids the WaitForFirstConsumer deadlock
|
||||
// with Admiralty virtual nodes — the PVC binds immediately.
|
||||
|
||||
Reference in New Issue
Block a user