Skip to content

storage-provioners/netapp components missing unique name #1106

@hiteshmathur19

Description

@hiteshmathur19

We are deploying Trident in an airgap system. So we package the needed trident containers in our local registry (running inside the k8s cluster)

During installation, we give the registry url in the TridentOrchestator object.

cp1:~> kubectl get tridentorchestrators.trident.netapp.io trident -o yaml | grep -i image
autosupportImage: registry.local:5000/trident-autosupport:25.06-2da0d1b1
imagePullPolicy: IfNotPresent
imageRegistry: registry.local:5000
tridentImage: registry.local:5000/trident:25.06.0-2da0d1b1

The rest of the csi containers are pulled from this registry, whose versions are hardcoded in the trident code.

https://github.com/NetApp/trident/blob/master/config/config.go#:~:text=config.go

      // KubernetesCSISidecarRegistry is where the CSI sidecar images are hosted
      KubernetesCSISidecarRegistry = "registry.k8s.io/sig-storage"
      CSISidecarProvisionerImageTag = "csi-provisioner:v5.3.0"
      CSISidecarAttacherImageTag = "csi-attacher:v4.10.0"
      CSISidecarResizerImageTag = "csi-resizer:v1.14.0"
      CSISidecarSnapshotterImageTag = "csi-snapshotter:v8.3.0"
      CSISidecarNodeDriverRegistrarImageTag = "csi-node-driver-registrar:v2.15.0"
      CSISidecarLivenessProbeImageTag = "livenessprobe:v2.15.0”

These containers versions are hardcoded. Our product release cycle contains multiple major and patch releases that are going on in parallel, and we do the CVE corrections in above containers frequently. Since the versions are hardcoded in trident code, we cannot use unique names when we rebuild these containers, This creates frequent overwrites problem in our registry. There is no way to track which container was built for which release cycle and so on.
NetApp Support Case for this : 2010559854

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions