Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
chore: update zarf and dubbd (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonywendt authored Jan 30, 2024
1 parent db097fd commit db63259
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
uses: supplypike/setup-bin@v3
with:
# renovate: zarf-uri datasource=github-tags depName=defenseunicorns/zarf
uri: 'https://github.com/defenseunicorns/zarf/releases/download/v0.31.4/zarf_v0.31.4_Linux_amd64'
uri: 'https://github.com/defenseunicorns/zarf/releases/download/v0.32.2/zarf_v0.32.2_Linux_amd64'
name: 'zarf'
# renovate: datasource=github-tags depName=defenseunicorns/zarf versioning=semver
version: 'v0.31.4'
version: 'v0.32.2'

- name: Build sonarqube package
run: zarf package create --confirm --no-progress
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# The version of Zarf to use. To keep this repo as portable as possible the Zarf binary will be downloaded and added to
# the build folder.
# renovate: datasource=github-tags depName=defenseunicorns/zarf
ZARF_VERSION := v0.31.4
ZARF_VERSION := v0.32.2

# The version of the build harness container to use
BUILD_HARNESS_REPO := ghcr.io/defenseunicorns/build-harness/build-harness
# renovate: datasource=docker depName=ghcr.io/defenseunicorns/build-harness/build-harness
BUILD_HARNESS_VERSION := 1.14.8
# renovate: datasource=docker depName=ghcr.io/defenseunicorns/packages/dubbd-k3d extractVersion=^(?<version>\d+\.\d+\.\d+)
DUBBD_K3D_VERSION := 0.16.0
DUBBD_K3D_VERSION := 0.17.0

# Figure out which Zarf binary we should use based on the operating system we are on
ZARF_BIN := zarf
Expand Down Expand Up @@ -159,7 +159,7 @@ build/zarf-init: | build ## Download the init package
.PHONY: build/dubbd-k3d
build/dubbd-k3d: | build/zarf ## Download dubbd k3d oci package
if [ -f build/zarf-package-dubbd-k3d-amd64-$(DUBBD_K3D_VERSION).tar.zst ] ; then exit 0; fi && \
cd build && ./zarf package pull oci://ghcr.io/defenseunicorns/packages/dubbd-k3d:$(DUBBD_K3D_VERSION)-amd64 --oci-concurrency 12
cd build && ./zarf package pull oci://ghcr.io/defenseunicorns/packages/dubbd-k3d:$(DUBBD_K3D_VERSION) -a amd64 --oci-concurrency 12

build/test-pkg-deps: | build/zarf ## Build package dependencies for testing
cd build && ./zarf package create ../utils/pkg-deps/namespaces/ --skip-sbom --confirm
Expand Down
19 changes: 19 additions & 0 deletions utils/pkg-deps/sonarqube/postgres/policy-exceptions/host-path.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kyverno.io/v2alpha1
kind: PolicyException
metadata:
name: sonarqube-postgres-host-path-exception
namespace: sonarqube-db
spec:
exceptions:
- policyName: restrict-host-path-write
ruleNames:
- require-readonly-hostpath
match:
any:
- resources:
kinds:
- Pod
namespaces:
- sonarqube-db
names:
- postgresql-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kyverno.io/v2alpha1
kind: PolicyException
metadata:
name: sonarqube-postgres-non-root-group-exception
namespace: sonarqube-db
spec:
exceptions:
- policyName: require-non-root-group
ruleNames:
- run-as-group
match:
any:
- resources:
kinds:
- Pod
namespaces:
- sonarqube-db
names:
- postgresql-0
2 changes: 2 additions & 0 deletions utils/pkg-deps/sonarqube/postgres/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ components:
files:
- policy-exceptions/externalName.yaml
- policy-exceptions/registry.yaml
- policy-exceptions/host-path.yaml
- policy-exceptions/non-root-group.yaml
- name: postgres-istio-exceptions
required: true
manifests:
Expand Down

0 comments on commit db63259

Please sign in to comment.