Skip to content

Commit e4f097e

Browse files
committed
Revert FsGroupAttribute to a string const
Signed-off-by: joshvanl <[email protected]>
1 parent 8675503 commit e4f097e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

example/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ const (
6464

6565
RenewBeforeKey string = "csi.cert-manager.io/renew-before"
6666
ReusePrivateKey string = "csi.cert-manager.io/reuse-private-key"
67-
)
6867

69-
var (
7068
// fs-group is used to optionally set the GID ownership of the volume's
7169
// files. Useful when running containers with a specified user and group.
7270
FsGroupKey string = "csi.cert-manager.io/fs-group"
@@ -103,7 +101,7 @@ func main() {
103101
panic("failed to setup filesystem: " + err.Error())
104102
}
105103

106-
store.FSGroupVolumeAttributeKey = &FsGroupKey
104+
store.FSGroupVolumeAttributeKey = FsGroupKey
107105

108106
d, err := driver.New(*endpoint, log, driver.Options{
109107
DriverName: "csi.cert-manager.io",

0 commit comments

Comments
 (0)