wildfly / wildfly-charts

Helm Charts for WildFly
https://docs.wildfly.org/wildfly-charts/
Apache License 2.0
3 stars 14 forks source link

I want to inject content from an image during S2I build step #64

Closed jmesnil closed 2 years ago

jmesnil commented 2 years ago

Is your feature request related to a problem? Please describe.

During S2I build, we might need to inject content in the source before it can be built.

The BuildConfig resource allows to do that by setting the source.images array

We should be able to configure these images resource from the Helm Chart when S2I is used.

Describe the solution you'd like

I want to inject images during S2I build with the following configuration

build:
  images:
    - from:
         kind: ImageStreamTag
         name: 'my-image-to-inject:latest'
       paths:
         - sourcePath: /my-source
            destinationDir: ./my-destination-dir

The content of the build.images field is an array that complies with buildconfig.spec.source.images[]