Add ServiceAccountName

The label `kompose.service.accountname` defines the service account name
to provide the credential info of the pod.
This commit is contained in:
tk42
2021-07-24 08:44:07 +09:00
parent bc7d9f4fb0
commit f7f987de49
7 changed files with 116 additions and 1 deletions
+3 -1
View File
@@ -38,8 +38,10 @@ const (
LabelNodePortPort = "kompose.service.nodeport.port"
// LabelServiceExpose defines if the service needs to be made accessible from outside the cluster or not
LabelServiceExpose = "kompose.service.expose"
// LabelServiceExposeTLSSecret provides the name of the TLS secret to use with the Kubernetes ingress controller
// LabelServiceExposeTLSSecret provides the name of the TLS secret to use with the Kubernetes ingress controller
LabelServiceExposeTLSSecret = "kompose.service.expose.tls-secret"
// LabelServiceAccountName defines the service account name to provide the credential info of the pod.
LabelServiceAccountName = "kompose.service.accountname"
// LabelControllerType defines the type of controller to be created
LabelControllerType = "kompose.controller.type"
// LabelImagePullSecret defines a secret name for kubernetes ImagePullSecrets