feat: add support for app-specific service accounts when deploying via k3s
Service accounts must still be bound to a role, but this ensures apps do not get access to the default service account.
This commit is contained in:
1 parent
ff319428bf
commit
d02c04c2a5
6 files changed
+28
-13
No files matched your search
@@ -277,7 +277,8 @@ func templateKubernetesJob(input Job) (batchv1.Job, error) {
|
||||
WorkingDir: input.WorkingDir,
|
||||
},
|
||||
},
|
||||
RestartPolicy: corev1.RestartPolicyNever,
|
||||
RestartPolicy: corev1.RestartPolicyNever,
|
||||
ServiceAccountName: input.AppName,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user