Skip to content

defaultMode on configmap not set #607

Open
@khauser

Description

@khauser

Describe the Issue

  volumes:
  - configMap:
      defaultMode: 511
      name: icm-11-azure-test-icm-as-jgroups-config-xml
    name: jgroups-config-volume

results in a ls -la on a normal pod:

-rwxrwxrwx 1 root      intershop 2201 Apr 29 13:34 jgroups-config.xml

and on a virtual-kublet it's:

drwxr-xr-x 2 root      root      4096 Apr 29 13:34 jgroups-config.xml

On both I configured:

  securityContext:
    fsGroup: 150
    fsGroupChangePolicy: OnRootMismatch
    runAsGroup: 150
    runAsNonRoot: false
    runAsUser: 150

Expected behavior
Both should look like:

-rwxrwxrwx 1 root      intershop 2201 Apr 29 13:34 jgroups-config.xml

Virtual-kubelet version
kubeletVersion: v1.25.0-vk-azure-aci-1.6.1
Kubernetes version
1.28.3
Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions