Skip to content

Commit ce3e632

Browse files
author
Nikolas De Giorgis
authored
Use emptyDir instead of volumefromsecret for keyfile (#395)
1 parent 8b4e261 commit ce3e632

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

controllers/construct/mongodbstatefulset.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ func BuildMongoDBReplicaSetStatefulSetModificationFunction(mdb MongoDBStatefulSe
8585

8686
logVolumeMount := statefulset.CreateVolumeMount(logVolumeName, automationconfig.DefaultAgentLogPath)
8787

88-
mode := int32(0600)
8988
keyFileNsName := mdb.GetAgentKeyfileSecretNamespacedName()
90-
keyFileVolume := statefulset.CreateVolumeFromSecret(keyFileNsName.Name, keyFileNsName.Name, statefulset.WithSecretDefaultMode(&mode))
89+
keyFileVolume := statefulset.CreateVolumeFromEmptyDir(keyFileNsName.Name)
9190
keyFileVolumeVolumeMount := statefulset.CreateVolumeMount(keyFileVolume.Name, "/var/lib/mongodb-mms-automation/authentication", statefulset.WithReadOnly(false))
9291
keyFileVolumeVolumeMountMongod := statefulset.CreateVolumeMount(keyFileVolume.Name, "/var/lib/mongodb-mms-automation/authentication", statefulset.WithReadOnly(false))
9392

0 commit comments

Comments
 (0)