@@ -604,6 +604,10 @@ type BuildSource struct {
604
604
// Secrets represents a list of secrets and their destinations that will
605
605
// be used only for the build.
606
606
Secrets []SecretBuildSource
607
+
608
+ // ConfigMaps represents a list of configMaps and their destinations that will
609
+ // be used only for the build.
610
+ ConfigMaps []ConfigMapBuildSource
607
611
}
608
612
609
613
// ImageSource is used to describe build source that will be extracted from an image or used during a
@@ -669,6 +673,24 @@ type SecretBuildSource struct {
669
673
DestinationDir string
670
674
}
671
675
676
+ // ConfigMapBuildSource describes a configMap and its destination directory that will be
677
+ // used only at the build time. The content of the configMap referenced here will
678
+ // be copied into the destination directory instead of mounting.
679
+ type ConfigMapBuildSource struct {
680
+ // ConfigMap is a reference to an existing configMap that you want to use in your
681
+ // build.
682
+ ConfigMap kapi.LocalObjectReference
683
+
684
+ // DestinationDir is the directory where the files from the configMap should be
685
+ // available for the build time.
686
+ // For the Source build strategy, these will be injected into a container
687
+ // where the assemble script runs.
688
+ // For the Docker build strategy, these will be copied into the build
689
+ // directory, where the Dockerfile is located, so users can ADD or COPY them
690
+ // during docker build.
691
+ DestinationDir string
692
+ }
693
+
672
694
type BinaryBuildSource struct {
673
695
// AsFile indicates that the provided binary input should be considered a single file
674
696
// within the build input. For example, specifying "webapp.war" would place the provided
0 commit comments