Skip to content

Commit

Permalink
feat: moved over to use uds-package-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Kruggel committed Feb 13, 2024
1 parent dd4a754 commit 7dcad9f
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 12 deletions.
14 changes: 10 additions & 4 deletions bundle/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ metadata:
# x-release-please-end

packages:
- name: artifactory-postgres
path: ../
ref: 12.6.6-0
- name: dev-postgres
repository: ghcr.io/defenseunicorns/packages/uds/dev-postgres
ref: 0.0.2

- name: artifactory-secrets
path: ../
ref: 107.63.9-uds.0
# x-release-please-start-version
ref: 107.63.9-uds.1
# x-release-please-end

- name: dev-secrets
path: ../
ref: 0.1.0

- name: artifactory
path: ../
Expand Down
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"extra-files": [
"bundle/uds-bundle.yaml",
"tasks/publish.yaml",
"zarf.yaml"
"zarf.yaml",
"src/artifactory/zarf.yaml"
]
}
},
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/artifactory/zarf.yaml → src/artifactory/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ZarfPackageConfig
metadata:
name: artifactory-secrets
# x-release-please-start-version
version: "107.63.9-uds.0"
version: "107.63.9-uds.1"
# x-release-please-end
architecture: amd64

Expand Down
10 changes: 10 additions & 0 deletions src/dev-secrets/postgres-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: artifactory-postgres
namespace: artifactory
type: kubernetes.io/opaque
stringData:
password: "###ZARF_VAR_DB_PASSWORD###"
url: jdbc:postgresql://postgresql.artifactory-db.svc.cluster.local:5432/artifactorydb
user: artifactory
25 changes: 25 additions & 0 deletions src/dev-secrets/zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/zarf/main/zarf.schema.json
kind: ZarfPackageConfig
metadata:
name: dev-secrets
version: "0.1.0"
architecture: amd64

components:
- name: postgres-password
required: true
actions:
onDeploy:
before:
- cmd: kubectl get secret -n dev-postgres postgresql --template={{.data.password}} | base64 -d
mute: true
setVariables:
- name: DB_PASSWORD
sensitive: true
- name: artifactory-postgres
required: true
manifests:
- name: artifactory-postgres
namespace: artifactory
files:
- postgres-secret.yaml
8 changes: 2 additions & 6 deletions tasks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,5 @@ tasks:
description: Create the Dependency Zarf Package(s)
actions:
- cmd: |
for dependency in artifactory; do
zarf package create test/${dependency}/ --confirm --no-progress --architecture=${UDS_ARCH} --skip-sbom
done
for dependency in postgres; do
zarf package create test/${dependency}/ --confirm --no-progress --architecture=${UDS_ARCH} --skip-sbom
done
zarf package create src/artifactory/ --confirm --no-progress --architecture=${UDS_ARCH} --skip-sbom
zarf package create src/dev-secrets/ --confirm --no-progress --architecture=${UDS_ARCH} --skip-sbom

0 comments on commit 7dcad9f

Please sign in to comment.