fabric8 资源无效名称

fabric8 resource invalid name

A​​'m 运行 mvn fabric8:resource 我得到这个输出:

...
[INFO] F8: validating /home/jcabre/projects/tdevhub/application-src/t-devhub/tdev-wsec-service/target/classes/META-INF/fabric8/openshift/tdev-wsec-service-deploymentconfig.yml resource
[WARNING] F8: Invalid Resource : /home/jcabre/projects/tdevhub/application-src/t-devhub/tdev-wsec-service/target/classes/META-INF/fabric8/openshift/tdev-wsec-service-deploymentconfig.yml
[message=.spec.template.spec.containers[0].name: does not match the regex pattern ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$, violation type=pattern]
[INFO] F8: validating /home/jcabre/projects/tdevhub/application-src/t-devhub/tdev-wsec-service/target/classes/META-INF/fabric8/kubernetes/tdev-wsec-service-deployment.yml resource
[WARNING] F8: Invalid Resource : /home/jcabre/projects/tdevhub/application-src/t-devhub/tdev-wsec-service/target/classes/META-INF/fabric8/kubernetes/tdev-wsec-service-deployment.yml
...

我不太明白哪里出了问题。 tdev-wsec-service-deploymentconfig.yml的内容为:

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  annotations:
    fabric8.io/git-commit: 4bb3b53369213a4b4d9940d49aa47c9df4a2f611
    fabric8.io/iconUrl: img/icons/spring-boot.svg
    fabric8.io/git-branch: master
    fabric8.io/metrics-path: dashboard/file/kubernetes-pods.json/?var-project=tdev-wsec-service&var-version=0.0.1-SNAPSHOT
    fabric8.io/scm-tag: HEAD
    fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/t-devhub/tdev-wsec-service
  labels:
    app: tdev-wsec-service
    provider: fabric8
    version: 0.0.1-SNAPSHOT
    group: com.raw.io
  name: tdev-wsec-service
spec:
  replicas: 1
  revisionHistoryLimit: 2
  selector:
    matchLabels:
      app: tdev-wsec-service
      provider: fabric8
      group: com.raw.io
  template:
    metadata:
      annotations:
        fabric8.io/git-commit: 4bb3b53369213a4b4d9940d49aa47c9df4a2f611
        fabric8.io/metrics-path: dashboard/file/kubernetes-pods.json/?var-project=tdev-wsec-service&var-version=0.0.1-SNAPSHOT
        fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/t-devhub/tdev-wsec-service
        fabric8.io/iconUrl: img/icons/spring-boot.svg
        fabric8.io/git-branch: master
        fabric8.io/scm-tag: HEAD
      labels:
        app: tdev-wsec-service
        provider: fabric8
        version: 0.0.1-SNAPSHOT
        group: com.raw.io
    spec:
      containers:
      - env:
        - name: KUBERNETES_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        image: wsec:0.0.1-SNAPSHOT
        imagePullPolicy: IfNotPresent
        name: com.raw.io-tdev-wsec-service
        securityContext:
          privileged: false

message=.spec.template.spec.containers[0].name -> KUBERNETES_NAMESPACE

^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ -> 不允许使用字符“_”

这不是架构限制,我尝试了 运行 使用 kubectl 的类似 pod def,我得到了相同的消息。