Add additional secrets to custom builds
@@ -233,6 +233,9 @@ type CustomBuildStrategy struct {
// ForcePull describes if the controller should configure the build pod to always pull the images
// for the builder or only pull if it is not present locally
ForcePull bool `json:"forcePull,omitempty" description:"forces pulling of builder image from remote registry if true"`
+
+ // Secrets is a list of additional secrets that will be included in the build pod
+ Secrets []SecretSpec `json:"secrets,omitempty" description:"a list of secrets to include in the build pod in addition to pull, push and source secrets"`
}
// DockerBuildStrategy defines input parameters specific to Docker build.
@@ -459,3 +462,12 @@ type BuildLogOptions struct {
// is not available yet. Otherwise the server will wait until the build has started.
NoWait bool `json:"nowait,omitempty" description:"if true indicates that the server should not wait for a log to be available before returning; defaults to false"`
}
+
+// SecretSpec specifies a secret to be included in a build pod and its corresponding mount point
+type SecretSpec struct {
+ // SecretSource is a reference to the secret
+ SecretSource kapi.LocalObjectReference `json:"secretSource" description:"a reference to a secret"`
+
+ // MountPath is the path at which to mount the secret
+ MountPath string `json:"mountPath" description:"path within the container at which the secret should be mounted"`
+}
