🌳
pt0/deployF/k8sF/getFixPermsContF.mts
1import type { V1VolumeMount } from '@kubernetes/client-node'
3type FixPermsProps = { volumeMounts?: V1VolumeMount[], fixPath?: string }
5export const getFixpermsContainer = ({volumeMounts, fixPath='/data'}: FixPermsProps) => {
6 return {
7 name: 'fixperms', // prob better way to do this
8 image: 'alpine:latest',
9 command: ['chown', '-R', '1000:1000', fixPath],
10 volumeMounts,
11 securityContext: {
12 runAsUser: 0,
13 privileged: true,
14 }
15 }