rebase: bump github.com/csi-addons/kubernetes-csi-addons

Bumps the github-dependencies group with 1 update: [github.com/csi-addons/kubernetes-csi-addons](https://github.com/csi-addons/kubernetes-csi-addons).


Updates `github.com/csi-addons/kubernetes-csi-addons` from 0.11.0 to 0.12.0
- [Release notes](https://github.com/csi-addons/kubernetes-csi-addons/releases)
- [Commits](https://github.com/csi-addons/kubernetes-csi-addons/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/csi-addons/kubernetes-csi-addons
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2025-03-03 20:12:20 +00:00 committed by mergify[bot]
parent a80295bf8f
commit 2e24cbf082
6 changed files with 29 additions and 21 deletions

2
go.mod
View File

@ -50,7 +50,7 @@ require (
require (
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.8.2
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azsecrets v1.3.1
github.com/csi-addons/kubernetes-csi-addons v0.11.0
github.com/csi-addons/kubernetes-csi-addons v0.12.0
)
require (

4
go.sum
View File

@ -1520,8 +1520,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
github.com/csi-addons/kubernetes-csi-addons v0.11.0 h1:0f6AIXcpu68Vj0Q1IKij1l6arJfKFiaTZ9GwHuvLm/o=
github.com/csi-addons/kubernetes-csi-addons v0.11.0/go.mod h1:HJd3znD4i5D92/2PKqzrwBg5Q7Ur2me20VYakdBHzpk=
github.com/csi-addons/kubernetes-csi-addons v0.12.0 h1:RbF2dCjWV4ljynibEOkA0wbwwt/09awjOKgEFC14Bns=
github.com/csi-addons/kubernetes-csi-addons v0.12.0/go.mod h1:8vrXJUZrlI2ms2aZ6qRfp8ieRlpHEefTX5azOFi67o0=
github.com/csi-addons/spec v0.2.1-0.20241104111131-27825f744db5 h1:j9NaWj5KmzEVarmsjxS/NDAhes6Uzq1qhkUGHvDlVBk=
github.com/csi-addons/spec v0.2.1-0.20241104111131-27825f744db5/go.mod h1:Mwq4iLiUV4s+K1bszcWU6aMsR5KPsbIYzzszJ6+56vI=
github.com/cyphar/filepath-securejoin v0.3.4 h1:VBWugsJh2ZxJmLFSM06/0qzQyiQX2Qs0ViKrUAcqdZ8=

View File

@ -28,9 +28,10 @@ type VolumeGroupReplicationSpec struct {
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeGroupReplicationClassName is immutable"
VolumeGroupReplicationClassName string `json:"volumeGroupReplicationClassName"`
// volumeReplicationClassName is the volumeReplicationClass name for VolumeReplication object
// volumeReplicationClassName is the volumeReplicationClass name for the VolumeReplication object
// created for this volumeGroupReplication
// +kubebuilder:validation:Required
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumReplicationClassName is immutable"
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeReplicationClassName is immutable"
VolumeReplicationClassName string `json:"volumeReplicationClassName"`
// Name of the VolumeReplication object created for this volumeGroupReplication
@ -65,7 +66,7 @@ type VolumeGroupReplicationSpec struct {
type VolumeGroupReplicationSource struct {
// Selector is a label query over persistent volume claims that are to be
// grouped together for replication.
// +optional
// +kubebuilder:validation:Required
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="selector is immutable"
Selector *metav1.LabelSelector `json:"selector,omitempty"`
}

View File

@ -27,16 +27,15 @@ type VolumeGroupReplicationContentSpec struct {
// VolumeGroupReplicationContent object is bound.
// VolumeGroupReplication.Spec.VolumeGroupReplicationContentName field must reference to
// this VolumeGroupReplicationContent's name for the bidirectional binding to be valid.
// For a pre-existing VolumeGroupReplicationContent object, name and namespace of the
// VolumeGroupReplication object MUST be provided for binding to happen.
// This field is immutable after creation.
// Required.
// +kubebuilder:validation:XValidation:rule="has(self.name) && has(self.__namespace__)",message="both volumeGroupReplicationRef.name and volumeGroupReplicationRef.namespace must be set"
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeGroupReplicationRef is immutable"
VolumeGroupReplicationRef corev1.ObjectReference `json:"volumeGroupReplicationRef"`
// For a pre-existing VolumeGroupReplication object, MUST provide an empty/nil value for
// VolumeGroupReplicationRef for the auto-binding to happen.
// +kubebuilder:validation:Optional
// +kubebuilder:validation:XValidation:rule="self != null ? has(self.name) && has(self.__namespace__) && has(self.uid) : true",message="volumeGroupReplicationRef.name, volumeGroupReplicationRef.namespace and volumeGroupReplicationRef.uid must be set if volumeGroupReplicationRef is defined"
VolumeGroupReplicationRef *corev1.ObjectReference `json:"volumeGroupReplicationRef,omitempty"`
// VolumeGroupReplicationHandle is a unique id returned by the CSI driver
// to identify the VolumeGroupReplication on the storage system.
// +kubebuilder:validation:Optional
VolumeGroupReplicationHandle string `json:"volumeGroupReplicationHandle"`
// provisioner is the name of the CSI driver used to create the physical
@ -45,17 +44,20 @@ type VolumeGroupReplicationContentSpec struct {
// This MUST be the same as the name returned by the CSI GetPluginName() call for
// that driver.
// Required.
// +kubebuilder:validation:Required
Provisioner string `json:"provisioner"`
// VolumeGroupReplicationClassName is the name of the VolumeGroupReplicationClass from
// which this group replication was (or will be) created.
// +optional
// Required.
// +kubebuilder:validation:Required
VolumeGroupReplicationClassName string `json:"volumeGroupReplicationClassName"`
// Source specifies whether the snapshot is (or should be) dynamically provisioned
// or already exists, and just requires a Kubernetes object representation.
// This field is immutable after creation.
// Source specifies whether the volume group is (or should be) dynamically provisioned
// or already exists using the volumes listed here, and just requires a
// Kubernetes object representation.
// Required.
// +kubebuilder:validation:Required
Source VolumeGroupReplicationContentSource `json:"source"`
}
@ -63,12 +65,13 @@ type VolumeGroupReplicationContentSpec struct {
type VolumeGroupReplicationContentSource struct {
// VolumeHandles is a list of volume handles on the backend to be grouped
// and replicated.
// +kubebuilder:validation:Required
VolumeHandles []string `json:"volumeHandles"`
}
// VolumeGroupReplicationContentStatus defines the status of VolumeGroupReplicationContent
type VolumeGroupReplicationContentStatus struct {
// PersistentVolumeRefList is the list of of PV for the group replication
// PersistentVolumeRefList is the list of PV for the group replication
// The maximum number of allowed PV in the group is 100.
// +optional
PersistentVolumeRefList []corev1.LocalObjectReference `json:"persistentVolumeRefList,omitempty"`

View File

@ -231,7 +231,11 @@ func (in *VolumeGroupReplicationContentSource) DeepCopy() *VolumeGroupReplicatio
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *VolumeGroupReplicationContentSpec) DeepCopyInto(out *VolumeGroupReplicationContentSpec) {
*out = *in
out.VolumeGroupReplicationRef = in.VolumeGroupReplicationRef
if in.VolumeGroupReplicationRef != nil {
in, out := &in.VolumeGroupReplicationRef, &out.VolumeGroupReplicationRef
*out = new(corev1.ObjectReference)
**out = **in
}
in.Source.DeepCopyInto(&out.Source)
}

4
vendor/modules.txt vendored
View File

@ -265,8 +265,8 @@ github.com/coreos/go-semver/semver
github.com/coreos/go-systemd/v22/daemon
github.com/coreos/go-systemd/v22/dbus
github.com/coreos/go-systemd/v22/journal
# github.com/csi-addons/kubernetes-csi-addons v0.11.0
## explicit; go 1.22.7
# github.com/csi-addons/kubernetes-csi-addons v0.12.0
## explicit; go 1.23.0
github.com/csi-addons/kubernetes-csi-addons/api/replication.storage/v1alpha1
# github.com/csi-addons/spec v0.2.1-0.20241104111131-27825f744db5
## explicit