-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description ## Related Issue Fixes # <!-- or --> Relates to # ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-package-coder/blob/main/CONTRIBUTING.md#developer-workflow) followed
- Loading branch information
1 parent
0581659
commit f83475f
Showing
18 changed files
with
162 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
zarf-package-* | ||
tmp | ||
zarf-sbom | ||
|
||
.cache/ | ||
.idea/ | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"yaml.schemas": { | ||
"https://raw.githubusercontent.com/defenseunicorns/uds-cli/v0.10.4/uds.schema.json": [ | ||
"uds-bundle.yaml" | ||
], | ||
"https://raw.githubusercontent.com/defenseunicorns/uds-cli/v0.10.4/tasks.schema.json": [ | ||
"tasks.yaml", | ||
"tasks/**/*.yaml" | ||
], | ||
"https://raw.githubusercontent.com/defenseunicorns/zarf/v0.33.0/zarf.schema.json": [ | ||
"zarf.yaml" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
kind: UDSBundle | ||
metadata: | ||
name: coder-test | ||
description: A UDS bundle for deploying Coder and it's dependencies on a development cluster | ||
# x-release-please-start-version | ||
version: 2.10.2-uds.0 | ||
# x-release-please-end | ||
|
||
packages: | ||
|
||
- name: dev-namespace | ||
path: ../ | ||
ref: 0.1.0 | ||
|
||
- name: postgres-operator | ||
repository: ghcr.io/defenseunicorns/packages/uds/postgres-operator | ||
ref: 1.10.1-uds.4-upstream | ||
overrides: | ||
postgres-operator: | ||
uds-postgres-config: | ||
variables: | ||
- name: POSTGRESQL | ||
description: "Configure postgres using CRs via the uds-postgres-config chart" | ||
path: postgresql | ||
|
||
- name: dev-secrets | ||
path: ../ | ||
ref: 0.1.0 | ||
exports: | ||
- name: DB_PASSWORD | ||
|
||
|
||
- name: coder | ||
path: ../ | ||
# x-release-please-start-version | ||
ref: 2.10.2-uds.0 | ||
# x-release-please-end | ||
imports: | ||
- name: DB_PASSWORD | ||
package: dev-secrets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: coder | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/instance: coder | ||
app.kubernetes.io/name: coder | ||
spec: | ||
ports: | ||
- name: http | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: http | ||
selector: | ||
app.kubernetes.io/instance: coder | ||
app.kubernetes.io/name: coder | ||
type: ClusterIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: coder-common | ||
description: "UDS Coder Common Package" | ||
|
||
components: | ||
- name: coder | ||
charts: | ||
- name: uds-coder-config | ||
namespace: coder | ||
version: 0.1.0 | ||
localPath: ../chart | ||
valuesFiles: | ||
- ../values/config-values.yaml | ||
- name: coder | ||
version: 2.10.2 | ||
url: https://helm.coder.com/v2 | ||
namespace: coder | ||
valuesFiles: | ||
- ../values/common-values.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: dev-secrets | ||
version: "0.1.0" | ||
|
||
components: | ||
- name: postgres-password | ||
required: true | ||
actions: | ||
onDeploy: | ||
before: | ||
- cmd: ./zarf tools kubectl get secret -n coder coder.coder.pg-cluster.credentials.postgresql.acid.zalan.do --template={{.data.password}} | base64 -d | ||
mute: true | ||
setVariables: | ||
- name: DB_PASSWORD | ||
sensitive: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
kind: Namespace | ||
apiVersion: v1 | ||
metadata: | ||
name: coder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: dev-namespace | ||
description: "create namespaces for cross-ns secret functionality of pg operator" | ||
version: 0.1.0 | ||
|
||
components: | ||
- name: deploy-namespace-for-cross-ns-secret | ||
required: true | ||
manifests: | ||
- name: dev-namespace | ||
files: | ||
- coder-ns.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tasks: | ||
- name: create | ||
description: Create the Dependency Zarf Packages | ||
actions: | ||
- cmd: ./uds zarf package create src/namespace/ --confirm --no-progress --architecture=${UDS_ARCH} | ||
- cmd: ./uds zarf package create src/dev-secrets/ --confirm --no-progress --architecture=${UDS_ARCH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
postgres: | ||
password: "###ZARF_VAR_DB_PASSWORD###" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
coder: | ||
image: | ||
repo: "ghcr.io/coder/coder" | ||
tag: v2.10.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters