Skip to content
Snippets Groups Projects
Select Git revision
  • 3037fee5a14679155d64dfba58a13358a1a0abc6
  • main default protected
  • renovate/github.com-hashicorp-nomad-api-digest
  • renovate/pre-commit-pre-commit-hooks-6.x
  • release-please--branches--main--components--csi-driver
  • v2.17.0 protected
  • v2.16.0 protected
  • v2.15.0 protected
  • v2.14.0 protected
  • v2.13.0 protected
  • v2.12.0 protected
  • v2.11.0 protected
  • v2.10.1 protected
  • v2.10.0 protected
  • v2.9.0 protected
  • v2.8.0 protected
  • v2.7.1 protected
  • v2.7.0 protected
  • v2.6.0 protected
  • v2.5.1 protected
  • v2.5.0 protected
  • v2.4.0 protected
  • v2.3.2 protected
  • v2.3.1 protected
  • v2.3.0 protected
25 results

kubernetes

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Christian Groschupp authored and GitHub committed
    This pull request adds support for setting default labels on all newly
    created volumes in the Hetzner Cloud CSI driver.
    
    ## Changes
    
    - Introduced the environment variable `HCLOUD_VOLUME_DEFAULT_LABELS`,
    which accepts a comma-separated list of key:value pairs.
    - Added the `ParseEnvMap` function to parse and validate the environment
    variable into a `map[string]string`.
    - Extended `VolumeService` to apply the parsed labels during volume
    creation.
    - Added unit tests for the `ParseEnvMap` function in
    `internal/app/app_test.go`.
    
    ## Notes
    
    - Labels are only applied if `HCLOUD_VOLUME_DEFAULT_LABELS` is set and
    contains valid key=value pairs.
    - Invalid formats in the environment variable will cause the controller
    to fail on startup.
    3037fee5
    History
    Name Last commit Last update
    ..
    README.md
    how-to-import-volumes.md