Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use uds package dependencies #7

Merged
merged 4 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0

- name: Install commitlint
run: npm install --save-dev @commitlint/{config-conventional,cli}
run: |
npm install --save-dev @commitlint/[email protected]
npm install --save-dev @commitlint/[email protected]

- name: Lint PR title
run: echo "${{ github.event.pull_request.title }}" | npx commitlint
10 changes: 5 additions & 5 deletions bundle/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ 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
- name: dev-secrets
path: ../
ref: 107.63.9-uds.0
ref: 0.1.0

- name: artifactory
path: ../
Expand Down
5 changes: 3 additions & 2 deletions bundle/uds-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
variables:
artifactory:
artifactory_db_endpoint: "postgresql.artifactory-db.svc.cluster.local"
dev-postgres:
db_username: "artifactory"
db_name: "artifactorydb"
7 changes: 7 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@
"# renovate: bb-chart\\n .*- name: .*?\\n *url: ['\"]{0,1}(?<registryUrl>https:\\/\\/.*?)\\/(?<depName>.*?)\\.git['\"]{0,1}\\n *version: ['\"]{0,1}(?<currentValue>.*?)['\"]{0,1}\\n"
],
"datasourceTemplate": "gitlab-tags"
},
{
"fileMatch": ["^\\.github/workflows/commitlint\\.yaml$"],
"matchStrings": [
"npm install --save-dev (?<depName>@?.*?)@(?<currentValue>.+)"
],
"datasourceTemplate": "npm"
}
],
"packageRules": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ metadata:
namespace: artifactory
type: kubernetes.io/opaque
stringData:
password: "###ZARF_VAR_POSTGRES_DB_PASSWORD###"
url: jdbc:postgresql://postgresql.artifactory-db.svc.cluster.local:5432/artifactorydb
password: "###ZARF_VAR_DB_PASSWORD###"
url: jdbc:postgresql://postgresql.dev-postgres.svc.cluster.local:5432/artifactorydb
user: artifactory
32 changes: 32 additions & 0 deletions src/dev-secrets/zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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
- name: artifactory-keys
required: true
manifests:
- name: artifactory-keys
namespace: artifactory
files:
- join-master-key-secret.yaml
8 changes: 1 addition & 7 deletions tasks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,4 @@ tasks:
- name: dependency-package
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
- cmd: zarf package create src/dev-secrets/ --confirm --no-progress --architecture=${UDS_ARCH} --skip-sbom
17 changes: 0 additions & 17 deletions test/artifactory/zarf.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions test/postgres/peerauth.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions test/postgres/service.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions test/postgres/values.yaml

This file was deleted.

60 changes: 0 additions & 60 deletions test/postgres/zarf.yaml

This file was deleted.

Loading