Skip to content

Commit

Permalink
Merge pull request #469 from opendevstack/bug/xargs-missing
Browse files Browse the repository at this point in the history
Add xargs in helm image
  • Loading branch information
michaelsauter authored Mar 29, 2022
2 parents 3efcb65 + cc6736d commit 4da3cdc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ listed in the changelog.
- Gradle task does not expose Nexus env variables ([#373](https://github.com/opendevstack/ods-pipeline/issues/373))
- Gradle build fails when it contains more than one test class ([#414](https://github.com/opendevstack/ods-pipeline/issues/414))
- Gradle proxy settings are set during prepare-local-env ([#291](https://github.com/opendevstack/ods-pipeline/issues/291))
- Add `xargs` to helm image as `helm-secrets` depends on it ([#465](https://github.com/opendevstack/ods-pipeline/issues/465))
- Pipeline creation fails when branch names contain slashes ([#466](https://github.com/opendevstack/ods-pipeline/issues/466))

## [0.2.0] - 2021-12-22
Expand Down
7 changes: 5 additions & 2 deletions build/package/Dockerfile.helm
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ ENV HELM_PLUGIN_DIFF_VERSION=3.3.2 \
HELM_PLUGINS=/usr/local/helm/plugins \
SKOPEO_VERSION=1.5 \
TAR_VERSION=1.30 \
GIT_VERSION=2.27
GIT_VERSION=2.27 \
FINDUTILS_VERSION=4.6

RUN microdnf install skopeo-${SKOPEO_VERSION}* git-${GIT_VERSION}* tar-${TAR_VERSION}* && microdnf clean all
# helm-secrets depends on xargs (from GNU findutils) in it's signal handlers,
# c.f. https://github.com/jkroepke/helm-secrets/blob/main/scripts/commands/helm.sh#L34-L36
RUN microdnf install skopeo-${SKOPEO_VERSION}* git-${GIT_VERSION}* tar-${TAR_VERSION}* findutils-${FINDUTILS_VERSION}* && microdnf clean all

COPY --from=builder /usr/local/bin/deploy-with-helm /usr/local/bin/deploy-with-helm
COPY --from=builder /usr/local/bin/helm /usr/local/bin/helm
Expand Down
6 changes: 6 additions & 0 deletions docs/design/software-design-specification.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,12 @@ For all repositories in scope, the artifacts in the corresponding groups in Nexu
| Python 3.9 available as container is a base platform for building and running various Python applications and frameworks. It is maintained by Red Hat and updated regularly.
| https://catalog.redhat.com/software/containers/ubi8/python-39/6065b24eb92fbda3a4c65d8f

| SDS-EXT-29
| GNU findutils
| 4.6
| Basic directory searching utilities, included due to the dependency of `helm-secrets` on `xargs`
| https://www.gnu.org/software/findutils/

|===

== Appendix
Expand Down
2 changes: 1 addition & 1 deletion test/tasks/ods-deploy-helm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestTaskODSDeployHelm(t *testing.T) {
if strings.Contains(string(ctxt.CollectedLogs), doNotWantLogMsg) {
t.Fatalf("Do not want:\n%s\n\nGot:\n%s", doNotWantLogMsg, string(ctxt.CollectedLogs))
}
wantLogMsg := "plugin \"diff\" identified at least one change"
wantLogMsg := "identified at least one change"
if !strings.Contains(string(ctxt.CollectedLogs), wantLogMsg) {
t.Fatalf("Want:\n%s\n\nGot:\n%s", wantLogMsg, string(ctxt.CollectedLogs))
}
Expand Down

0 comments on commit 4da3cdc

Please sign in to comment.