From 8f493a41edb499770d9351ccdd5122551a7eaaa5 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 1 Jul 2024 16:54:23 -0400 Subject: [PATCH] Provide default value for optional-secret --- task/buildah-oci-ta/0.1/README.md | 2 +- task/buildah-oci-ta/0.1/buildah-oci-ta.yaml | 2 +- task/buildah-remote-oci-ta/0.1/buildah-remote-oci-ta.yaml | 2 +- task/buildah-remote/0.1/buildah-remote.yaml | 2 +- task/buildah/0.1/README.md | 1 + task/buildah/0.1/buildah.yaml | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/task/buildah-oci-ta/0.1/README.md b/task/buildah-oci-ta/0.1/README.md index 5c8c111afc..5bca2a62a9 100644 --- a/task/buildah-oci-ta/0.1/README.md +++ b/task/buildah-oci-ta/0.1/README.md @@ -20,7 +20,7 @@ When prefetch-dependencies task was activated it is using its artifacts to run b |HERMETIC|Determines if build will be executed without network access.|false|false| |IMAGE|Reference of the image buildah will produce.||true| |IMAGE_EXPIRES_AFTER|Delete image tag after specified time. Empty means to keep the image tag. Time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.|""|false| -|OPTIONAL_SECRET|Name of a secret which will be made available to the build with 'buildah build --secret' at /run/secrets/$OPTIONAL_SECRET|""|false| +|OPTIONAL_SECRET|Name of a secret which will be made available to the build with 'buildah build --secret' at /run/secrets/$OPTIONAL_SECRET|does-not-exist|false| |PREFETCH_INPUT|In case it is not empty, the prefetched content should be made available to the build.|""|false| |SOURCE_ARTIFACT|The Trusted Artifact URI pointing to the artifact with the application source code.||true| |TARGET_STAGE|Target stage in Dockerfile to build. If not specified, the Dockerfile is processed entirely to (and including) its last stage.|""|false| diff --git a/task/buildah-oci-ta/0.1/buildah-oci-ta.yaml b/task/buildah-oci-ta/0.1/buildah-oci-ta.yaml index 374ddd2c7c..e182145591 100644 --- a/task/buildah-oci-ta/0.1/buildah-oci-ta.yaml +++ b/task/buildah-oci-ta/0.1/buildah-oci-ta.yaml @@ -71,7 +71,7 @@ spec: description: Name of a secret which will be made available to the build with 'buildah build --secret' at /run/secrets/$OPTIONAL_SECRET type: string - default: "" + default: does-not-exist - name: PREFETCH_INPUT description: In case it is not empty, the prefetched content should be made available to the build. diff --git a/task/buildah-remote-oci-ta/0.1/buildah-remote-oci-ta.yaml b/task/buildah-remote-oci-ta/0.1/buildah-remote-oci-ta.yaml index c677dc4739..0c1631513a 100644 --- a/task/buildah-remote-oci-ta/0.1/buildah-remote-oci-ta.yaml +++ b/task/buildah-remote-oci-ta/0.1/buildah-remote-oci-ta.yaml @@ -67,7 +67,7 @@ spec: respectively. name: IMAGE_EXPIRES_AFTER type: string - - default: "" + - default: does-not-exist description: Name of a secret which will be made available to the build with 'buildah build --secret' at /run/secrets/$OPTIONAL_SECRET name: OPTIONAL_SECRET diff --git a/task/buildah-remote/0.1/buildah-remote.yaml b/task/buildah-remote/0.1/buildah-remote.yaml index 3de1970cf9..f3d658572d 100644 --- a/task/buildah-remote/0.1/buildah-remote.yaml +++ b/task/buildah-remote/0.1/buildah-remote.yaml @@ -78,7 +78,7 @@ spec: description: Name of secret which contains the entitlement certificates name: ENTITLEMENT_SECRET type: string - - default: "" + - default: does-not-exist description: Name of a secret which will be made available to the build with 'buildah build --secret' at /run/secrets/$OPTIONAL_SECRET name: OPTIONAL_SECRET diff --git a/task/buildah/0.1/README.md b/task/buildah/0.1/README.md index dde307fe08..a869a1651e 100644 --- a/task/buildah/0.1/README.md +++ b/task/buildah/0.1/README.md @@ -23,6 +23,7 @@ When prefetch-dependencies task was activated it is using its artifacts to run b |YUM_REPOS_D_TARGET|Target path on the container in which yum repository files should be made available|/etc/yum.repos.d|false| |TARGET_STAGE|Target stage in Dockerfile to build. If not specified, the Dockerfile is processed entirely to (and including) its last stage.|""|false| |ENTITLEMENT_SECRET|Name of secret which contains the entitlement certificates|etc-pki-entitlement|false| +|OPTIONAL_SECRET|Name of a secret which will be made available to the build with 'buildah build --secret' at /run/secrets/$OPTIONAL_SECRET|does-not-exist|false| |BUILD_ARGS|Array of --build-arg values ("arg=value" strings)|[]|false| |BUILD_ARGS_FILE|Path to a file with build arguments, see https://www.mankier.com/1/buildah-build#--build-arg-file|""|false| diff --git a/task/buildah/0.1/buildah.yaml b/task/buildah/0.1/buildah.yaml index dcd118dbba..6a3935b5d2 100644 --- a/task/buildah/0.1/buildah.yaml +++ b/task/buildah/0.1/buildah.yaml @@ -74,7 +74,7 @@ spec: - name: OPTIONAL_SECRET description: Name of a secret which will be made available to the build with 'buildah build --secret' at /run/secrets/$OPTIONAL_SECRET type: string - default: "" + default: "does-not-exist" - name: BUILD_ARGS description: Array of --build-arg values ("arg=value" strings) type: array