fabric8io / fabric8-maven-plugin

📢 This project is migrated to 👉 https://github.com/eclipse/jkube
Apache License 2.0
334 stars 202 forks source link

issue parsing volumemounts to deployment.yml #1783

Open narsi-nallamilli opened 4 years ago

narsi-nallamilli commented 4 years ago

Description

fmp is not parsing VolumeMounts specified in resources as specified in https://maven.fabric8.io/#fabric8:resource

Info

fmp is not translating volumenMounts specified in resources into deployment.yml it is ignoring it.

You will see the openshift deployment.yml created without volumeMount which is expected.

---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  annotations:
    fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/testbugfmp
    fabric8.io/scm-tag: HEAD
  labels:
    app: testbugfmp
    provider: fabric8
    version: 1.0-SNAPSHOT
    group: org.example
  name: testbugfmp
spec:
  replicas: 1
  revisionHistoryLimit: 2
  selector:
    app: testbugfmp
    provider: fabric8
    group: org.example
  strategy:
    rollingParams:
      timeoutSeconds: 3600
    type: Rolling
  template:
    metadata:
      annotations:
        fabric8.io/scm-tag: HEAD
        fabric8.io/scm-url: https://github.com/spring-projects/spring-boot/spring-boot-starter-parent/testbugfmp
      labels:
        app: testbugfmp
        provider: fabric8
        version: 1.0-SNAPSHOT
        group: org.example
    spec:
      containers:
      - env:
        - name: KUBERNETES_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        image: testbugfmp:latest
        imagePullPolicy: IfNotPresent
        name: spring-boot
        ports:
        - containerPort: 8080
          name: http
          protocol: TCP
        - containerPort: 9779
          name: prometheus
          protocol: TCP
        - containerPort: 8778
          name: jolokia
          protocol: TCP
        securityContext:
          privileged: false
      volumes:
      - emptyDir: {}
        name: work
  triggers:
  - type: ConfigChange
  - imageChangeParams:
      automatic: true
      containerNames:
      - spring-boot
      from:
        kind: ImageStreamTag
        name: testbugfmp:latest
    type: ImageChange
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!