Skip to content

Commit

Permalink
Mount token secret with default permission for Function k8s runtime (#…
Browse files Browse the repository at this point in the history
…10743)

* user token secret mounted as default 644 permission to support rootless container

* keep the read only permission for token file
  • Loading branch information
zzzming authored May 30, 2021
1 parent 1ab2bfc commit 04b5da0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ public void configureAuthDataStatefulSet(V1StatefulSet statefulSet, Optional<Fun
.name(SECRET_NAME)
.secret(
new V1SecretVolumeSource()
.secretName(getSecretName(new String(functionAuthData.get().getData())))
.defaultMode(256))));
.secretName(getSecretName(new String(functionAuthData.get().getData()))))));

podSpec.getContainers().forEach(container -> container.setVolumeMounts(Collections.singletonList(
new V1VolumeMount()
Expand Down

0 comments on commit 04b5da0

Please sign in to comment.