Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FluxCD does not apply any Labels to VolumeSnapshotClass resources #4968

Open
1 task done
Mobydack opened this issue Sep 3, 2024 · 0 comments
Open
1 task done

FluxCD does not apply any Labels to VolumeSnapshotClass resources #4968

Mobydack opened this issue Sep 3, 2024 · 0 comments

Comments

@Mobydack
Copy link

Mobydack commented Sep 3, 2024

Describe the bug

FluxCD does not apply the any labels to existing or new VolumeSnapshotClass resources. Even though the labels are defined in the manifest, they are not reflected in the actual VolumeSnapshotClass resource in the cluster after FluxCD synchronization.

Steps to reproduce

  1. Create volume snapshot class with labelsCreate or obtain a Kubernetes manifest for an existing VolumeSnapshotClass.
  2. Add new labels under metadata.labels in the manifest.
  3. Commit the changes to the Git repository managed by FluxCD.
  4. Wait for FluxCD to synchronize the changes with the cluster.
  5. Check the VolumeSnapshotClass resource in the cluster to verify if the labels have been applied.

Expected behavior

The specified labels in the Kubernetes manifest should be applied to the existing VolumeSnapshotClass resource in the cluster after FluxCD synchronization. The resource should reflect the updated labels as defined in the manifest.

Screenshots and recordings

No response

OS / Distro

Manjaro Linux x86_64

Flux version

v2.3.0

Flux check

► checking prerequisites
✔ Kubernetes 1.28.3-r0-28.0.21.7 >=1.28.0-0
► checking version in cluster
✔ distribution: flux-v2.3.0
✔ bootstrapped: true
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v1.0.1
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.38.0
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.32.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.3.0
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.3.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.3.0
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta3
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ gitrepositories.source.toolkit.fluxcd.io/v1
✔ helmcharts.source.toolkit.fluxcd.io/v1
✔ helmreleases.helm.toolkit.fluxcd.io/v2
✔ helmrepositories.source.toolkit.fluxcd.io/v1
✔ imagepolicies.image.toolkit.fluxcd.io/v1beta2
✔ imagerepositories.image.toolkit.fluxcd.io/v1beta2
✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta2
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta3
✔ receivers.notification.toolkit.fluxcd.io/v1
✔ all checks passed

Git provider

No response

Container Registry provider

No response

Additional context

flux trace volumesnapshotclasses/velero-csi-disk-snapclass 

Object:          VolumeSnapshotClass/velero-csi-disk-snapclass
Status:          Managed by Flux
---
Kustomization:   storage-classes
Namespace:       flux-system
Path:            ./customized-storage-classes/overlays/staging
Revision:        main@sha1:5171752b36ee5f687ef89b1df8c8165690c68
Status:          Last reconciled at 2024-09-03 15:44:09
Message:         Applied revision: main@sha1:5171752b36ee5f687ef89b1df8c8165690c68
---
GitRepository:   flux-system
Namespace:       flux-system
URL:             <path-to-repo>.git
Branch:          main
Revision:        main@sha1:5171752b36ee5f687ef89b1df8c8165690c68
Status:          Last reconciled at 2024-09-03 15:40:44
Message:         stored artifact for revision 'main@sha1:5171752b36ee5f687ef89b1df8c8165690c68'
kubectl get volumesnapshotclass velero-csi-disk-snapclass --show-managed-fields -oyaml

apiVersion: snapshot.storage.k8s.io/v1beta1
deletionPolicy: Delete
driver: disk.csi.everest.io
kind: VolumeSnapshotClass
metadata:
  creationTimestamp: "2024-09-03T15:31:11Z"
  generation: 1
  labels:
    kustomize.toolkit.fluxcd.io/name: storage-classes
    kustomize.toolkit.fluxcd.io/namespace: flux-system
    kustomize.toolkit.fluxcd.io/prune: disabled
  managedFields:
  - apiVersion: snapshot.storage.k8s.io/v1beta1
    fieldsType: FieldsV1
    fieldsV1:
      f:deletionPolicy: {}
      f:driver: {}
      f:metadata:
        f:labels:
          f:kustomize.toolkit.fluxcd.io/name: {}
          f:kustomize.toolkit.fluxcd.io/namespace: {}
          f:kustomize.toolkit.fluxcd.io/prune: {}
    manager: kustomize-controller
    operation: Apply
    time: "2024-09-03T15:31:11Z"
  name: velero-csi-disk-snapclass
  resourceVersion: "90224856"
  uid: 7e7df422-d51b-4f63-baec-1e8f4f26e444

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant