diff --git a/docs/user-guide.md b/docs/user-guide.md index b0f415f7..b5f18cdf 100755 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -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. diff --git a/pkg/loader/compose/utils.go b/pkg/loader/compose/utils.go index 840e1bf3..7a800ab0 100644 --- a/pkg/loader/compose/utils.go +++ b/pkg/loader/compose/utils.go @@ -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