Fixed LabelServiceAccountName

This commit is contained in:
tk42 2021-08-12 21:47:53 +09:00
parent f7f987de49
commit 998dbd72f2
2 changed files with 3 additions and 3 deletions

View File

@ -244,7 +244,7 @@ services:
- "6379"
```
- `kompose.service.accountname` defines the service account name to provide the credential info of the pod.
- `kompose.serviceaccount-name` defines the service account name to provide the credential info of the pod.
For example:
@ -254,7 +254,7 @@ services:
app:
image: python
labels:
kompose.service.accountname: "my-service"
kompose.serviceaccount-name: "my-service"
```
- `kompose.image-pull-secret` defines a kubernetes secret name for imagePullSecrets podspec field.

View File

@ -41,7 +41,7 @@ const (
// 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"
LabelServiceAccountName = "kompose.serviceaccount-name"
// LabelControllerType defines the type of controller to be created
LabelControllerType = "kompose.controller.type"
// LabelImagePullSecret defines a secret name for kubernetes ImagePullSecrets