Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/make-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
git-chglog \
--output "RELEASE-NOTES.md" \
--tag-filter-pattern "${namespace}" \
--path "${namespace}/" --path "_common/" \
--path "${namespace}/" \
"${query_tag}"

- uses: actions/upload-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion _common/helmDefaults.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions _common/inheritHelmDefaults.yaml.gotmpl

This file was deleted.

1 change: 0 additions & 1 deletion _common/tplDefaults.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions _common/tplRelease.yaml.gotmpl

This file was deleted.

30 changes: 0 additions & 30 deletions _common/tplTransforms.yaml.gotmpl

This file was deleted.

23 changes: 17 additions & 6 deletions _gen/charts.cue
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
package LaunchpadCharts

#repositories: {
graphops: {
// link all charts to their repo and add name
//
[repoName=string]: {
charts: {
[chartName=string]: {
repository: repoName
name: chartName
}
}
}

"graphops": {
url: "https://graphops.github.io/launchpad-charts"
description: """
lorem ipsolum
Expand Down Expand Up @@ -49,14 +60,14 @@ package LaunchpadCharts
}
}

vouch: {
"vouch": {
url: "https://vouch.github.io/helm-charts/"
description: """
Helm charts for vouch: An SSO solution for Nginx using the auth_request module. Vouch Proxy can protect all of your websites at once.
"""
}

jetstack: {
"jetstack": {
url: "https://charts.jetstack.io"
description: ""
charts: {
Expand All @@ -82,7 +93,7 @@ package LaunchpadCharts
}
}

deliveryhero: {
"deliveryhero": {
url: "https://charts.deliveryhero.io"
description: """
Delivery Hero are big fans of Kubernetes and use Helm extensively. Here we have collected a few charts that are used across our organisation.
Expand All @@ -96,7 +107,7 @@ package LaunchpadCharts
}
}

grafana: {
"grafana": {
url: "https://grafana.github.io/helm-charts"
description: ""
charts: {
Expand Down Expand Up @@ -133,7 +144,7 @@ package LaunchpadCharts
}
}

openebs: {
"openebs": {
url: "https://openebs.github.io/charts"
description: """
OpenEBS Helm Repository:
Expand Down
2 changes: 1 addition & 1 deletion _gen/defaults.cue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package LaunchpadNamespaces
_defaults: {
helmDefaults:
recreatePods: true
releaseDefaults:
releases:
missingFileHandler: "Warn"
}
30 changes: 0 additions & 30 deletions _gen/schemas/_gen_helmfile_tool.cue

This file was deleted.

4 changes: 4 additions & 0 deletions _gen/schemas/base.cue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package LaunchpadNamespaces

import (
upstreamHelmfile "github.com/SchemaStore:helmfile"
charts "graphops.xyz/launchpad/namespaces:LaunchpadCharts"
)

info: {
Expand Down Expand Up @@ -37,3 +38,6 @@ info: {
}
...
}

// instantiate a repositories oject for internal usage
_repositories: {charts.#repositories}
15 changes: 10 additions & 5 deletions _gen/schemas/ethereum.cue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// schema:type=namespace schema:namespace=ethereum
package LaunchpadNamespaces

import (
Expand Down Expand Up @@ -46,9 +47,10 @@ import (

// eth-erigon namespace values schema
#values: #base.#values & {
// the default is eth-[flavor]
targetNamespace: *"eth-mainnet" | string
flavor?: *"mainnet" | #flavor.#enum
// the default is eth-<flavor>
targetNamespace: *"eth-mainnet" | string
_templatedTargetNamespace: '( print "eth-" .Values.flavor )'
flavor: *"mainnet" | #flavor.#enum
for key, release in #releases {
"\(release.name)"?: {
mergeValues?: bool
Expand All @@ -75,6 +77,9 @@ _namespaces: ethereum: {
meta: #namespaces.#ethereum.#meta
releases: #namespaces.#ethereum.#releases
flavor: #namespaces.#ethereum.#flavor
values: #namespaces.#ethereum.#values
labels: #namespaces.#ethereum.labels
values: #namespaces.#ethereum.#values & {
targetNamespace: #namespaces.#ethereum.#values.targetNamespace
flavor: #namespaces.#ethereum.#flavor.#enum
}
labels: #namespaces.#ethereum.labels
}
26 changes: 15 additions & 11 deletions _gen/schemas/ingress.cue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// schema:type=namespace schema:namespace=ingress
package LaunchpadNamespaces

import (
Expand All @@ -18,21 +19,21 @@ import (

#releases: {
ingressNginx: {
name: "ingress-nginx"
chart: charts.#repositories["ingress-nginx"].charts["ingress-nginx"]
// feature: #features.ingress
name: "ingress-nginx"
chart: charts.#repositories["ingress-nginx"].charts["ingress-nginx"]
feature: #features.ingress
_template: {version: "4.3.0"}
}
certManager: {
name: "cert-manager"
chart: charts.#repositories.jetstack.charts["cert-manager"]
// feature: #features.certManager
name: "cert-manager"
chart: charts.#repositories.jetstack.charts["cert-manager"]
feature: #features.certManager
_template: {version: "v1.10.0"}
}
certManagerResources: {
name: "cert-manager-resources"
chart: charts.#repositories.graphops.charts["resource-injector"]
// feature: #features.certManager
name: "cert-manager-resources"
chart: charts.#repositories.graphops.charts["resource-injector"]
feature: #features.certManager
_template: {version: "0.2.0"}
}
}
Expand Down Expand Up @@ -75,6 +76,9 @@ _namespaces: ingress: {
meta: #namespaces.#ingress.#meta
releases: #namespaces.#ingress.#releases
features: #namespaces.#ingress.#features
values: #namespaces.#ingress.#values
labels: #namespaces.#ingress.labels
values: #namespaces.#ingress.#values & {
targetNamespace: #namespaces.#ingress.#values.targetNamespace
features: [...#namespaces.#ingress.#values.#features.#enum]
}
labels: #namespaces.#ingress.labels
}
32 changes: 18 additions & 14 deletions _gen/schemas/monitoring.cue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// schema:type=namespace schema:namespace=monitoring
package LaunchpadNamespaces

import (
Expand All @@ -16,27 +17,27 @@ import (

#releases: {
kubePrometheusStack: {
name: "kube-prometheus-stack"
chart: charts.#repositories["prometheus-community"].charts["kube-prometheus-stack"]
// feature: #features.metrics
name: "kube-prometheus-stack"
chart: charts.#repositories["prometheus-community"].charts["kube-prometheus-stack"]
feature: #features.metrics
_template: {version: "41.3.2"}
}
nodeProblemDetector: {
name: "node-problem-detector"
chart: charts.#repositories.deliveryhero.charts["node-problem-detector"]
// feature: #features.metrics
name: "node-problem-detector"
chart: charts.#repositories.deliveryhero.charts["node-problem-detector"]
feature: #features.metrics
_template: {version: "2.2.2"}
}
loki: {
name: "loki"
chart: charts.#repositories.grafana.charts["loki-distributed"]
// feature: #features.logs
name: "loki"
chart: charts.#repositories.grafana.charts["loki-distributed"]
feature: #features.logs
_template: {version: "0.55.4"}
}
promtail: {
name: "promtail"
chart: charts.#repositories.grafana.charts.promtail
// feature: #features.logs
name: "promtail"
chart: charts.#repositories.grafana.charts.promtail
feature: #features.logs
_template: {version: "6.2.3"}
}
}
Expand Down Expand Up @@ -80,6 +81,9 @@ _namespaces: monitoring: {
meta: #namespaces.#monitoring.#meta
releases: #namespaces.#monitoring.#releases
features: #namespaces.#monitoring.#features
values: #namespaces.#monitoring.#values
labels: #namespaces.#monitoring.labels
values: #namespaces.#monitoring.#values & {
targetNamespace: #namespaces.#monitoring.#values.targetNamespace
features: [...#namespaces.#monitoring.#values.#features.#enum]
}
labels: #namespaces.#monitoring.labels
}
6 changes: 5 additions & 1 deletion _gen/schemas/postgres-operator.cue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// schema:type=namespace schema:namespace=postgres-operator
package LaunchpadNamespaces

import (
Expand Down Expand Up @@ -49,5 +50,8 @@ _namespaces: postgresOperator: {
meta: #namespaces.#postgresOperator.#meta
releases: #namespaces.#postgresOperator.#releases
values: #namespaces.#postgresOperator.#values
labels: #namespaces.#postgresOperator.labels
values: #namespaces.#postgresOperator.#values & {
targetNamespace: #namespaces.#postgresOperator.#values.targetNamespace
}
labels: #namespaces.#postgresOperator.labels
}
7 changes: 5 additions & 2 deletions _gen/schemas/sealed-secrets.cue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// schema:type=namespace schema:namespace=sealed-secrets
package LaunchpadNamespaces

import (
Expand Down Expand Up @@ -49,6 +50,8 @@ import (
_namespaces: sealedSecrets: {
meta: #namespaces.#sealedSecrets.#meta
releases: #namespaces.#sealedSecrets.#releases
values: #namespaces.#sealedSecrets.#values
labels: #namespaces.#sealedSecrets.labels
values: #namespaces.#sealedSecrets.#values & {
targetNamespace: #namespaces.#sealedSecrets.#values.targetNamespace
}
labels: #namespaces.#sealedSecrets.labels
}
Loading