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
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ env:
jobs:
markup-lint:
name: Markup
uses: devpro/github-workflow-parts/.github/workflows/reusable-markup-lint.yml@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/.github/workflows/reusable-markup-lint.yml@398cf79719f90e41e3407bc9f060e297629d800d

# The VitePress site is published by the GitLab pipeline, as the Pages of this repository serve the chart repository.
docs:
name: Docs
uses: devpro/github-workflow-parts/.github/workflows/reusable-node-quality.yml@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/.github/workflows/reusable-node-quality.yml@398cf79719f90e41e3407bc9f060e297629d800d
with:
job-name: Docs
workflow-parts-version: 99e797d0672c8a4fb39c4174173fa677c00a5d1e
workflow-parts-version: 398cf79719f90e41e3407bc9f060e297629d800d

charts:
name: Charts
Expand All @@ -50,13 +50,13 @@ jobs:
# note: important to have chart-testing work (see https://github.com/helm/chart-testing/issues/186)
fetch-depth: 0
- name: Install Helm
uses: devpro/github-workflow-parts/actions/helm/setup@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/actions/helm/setup@398cf79719f90e41e3407bc9f060e297629d800d
- name: Install kube-linter
uses: devpro/github-workflow-parts/actions/kube-linter/setup@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/actions/kube-linter/setup@398cf79719f90e41e3407bc9f060e297629d800d
- name: Run kube-linter
run: kube-linter lint charts --config .kube-linter.yaml
- name: Set up chart-testing
uses: devpro/github-workflow-parts/actions/chart-testing/setup@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/actions/chart-testing/setup@398cf79719f90e41e3407bc9f060e297629d800d
- name: Add dependency chart repositories
run: ./scripts/add_helm_repo.sh
- name: List changed charts
Expand All @@ -72,12 +72,12 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'
run: ct lint $CHARTS_DIRECTORIES_ARG --target-branch "$DEFAULT_BRANCH"
- name: Install kubeconform
uses: devpro/github-workflow-parts/actions/kubeconform/setup@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/actions/kubeconform/setup@398cf79719f90e41e3407bc9f060e297629d800d
- name: Validate manifests against the Kubernetes schemas
run: ./scripts/validate_charts.sh
# The standalone binary of the helm-unittest plugin, so no plugin is installed into Helm.
- name: Install helm-unittest
uses: devpro/github-workflow-parts/actions/helm-unittest/setup@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/actions/helm-unittest/setup@398cf79719f90e41e3407bc9f060e297629d800d
- name: Run chart unit tests
run: |
charts=$(dirname charts/*/tests | sort -u)
Expand All @@ -96,14 +96,14 @@ jobs:
with:
fetch-depth: 0
- name: Install Helm
uses: devpro/github-workflow-parts/actions/helm/setup@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/actions/helm/setup@398cf79719f90e41e3407bc9f060e297629d800d
- name: Set up chart-testing
uses: devpro/github-workflow-parts/actions/chart-testing/setup@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/actions/chart-testing/setup@398cf79719f90e41e3407bc9f060e297629d800d
- name: Add dependency chart repositories
run: ./scripts/add_helm_repo.sh
# kind and kubectl are installed by an action of the workflow parts, as helm/kind-action is a JavaScript action, and a container image has neither preinstalled.
- name: Install kind and kubectl
uses: devpro/github-workflow-parts/actions/kind/setup@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/actions/kind/setup@398cf79719f90e41e3407bc9f060e297629d800d
# The cluster name carries the run, so two runs on one Docker daemon never share a cluster.
- name: Create kind cluster
id: create-cluster
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ concurrency:
jobs:
helm-publication:
name: Helm
uses: devpro/github-workflow-parts/.github/workflows/reusable-helm-publication.yml@99e797d0672c8a4fb39c4174173fa677c00a5d1e
uses: devpro/github-workflow-parts/.github/workflows/reusable-helm-publication.yml@398cf79719f90e41e3407bc9f060e297629d800d
with:
workflow-parts-version: 99e797d0672c8a4fb39c4174173fa677c00a5d1e
workflow-parts-version: 398cf79719f90e41e3407bc9f060e297629d800d
36 changes: 18 additions & 18 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
stages:
- deploy

# avoid duplicate GitLab pipeline runs from GitHub notifications (two messages are received on a commit on a branch with a Pull Request)
# runs once for a merge request, and once for the default branch;
# the default branch publishes the documentation site, as the Pages of the GitHub repository serve the chart repository
workflow:
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_PIPELINE_SOURCE == "web"'
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

stages:
- test
- deploy

pages:
stage: deploy
image: node:22
cache:
paths:
- node_modules/
script:
- npm install
- npm run docs:build
artifacts:
paths:
- public
include:
# pins a commit, as a tag can move
- component: $CI_SERVER_FQDN/devpro-labs/compliance/gitlab-components/markup-lint@c2dfed0c4ba1511063ef03cd6cba61c15dd60b33
- component: $CI_SERVER_FQDN/devpro-labs/compliance/gitlab-components/helm-quality@c2dfed0c4ba1511063ef03cd6cba61c15dd60b33
inputs:
# adds the chart repositories of the dependencies
setup_command: ./scripts/add_helm_repo.sh
- component: $CI_SERVER_FQDN/devpro-labs/compliance/gitlab-components/pages-deployment@c2dfed0c4ba1511063ef03cd6cba61c15dd60b33
inputs:
build_command: npm ci && npm run docs:build
2 changes: 1 addition & 1 deletion charts/sidelab/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: >
Self-hosted interactive lab platform.
Deploys the Sidelab launcher, which manages lab sessions as ephemeral Kubernetes Pods inside tenant-scoped namespaces.
type: application
version: 0.1.11
version: 0.1.12
appVersion: "0.1.0"
keywords:
- sidelab
Expand Down
17 changes: 17 additions & 0 deletions charts/sidelab/ci/oidc-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Single sign-on behind the dashboard Ingress, the public URL derived from its host.
# Guards the OIDC keys of the ConfigMap and the generated Secret, and their validation in _helpers.tpl.
image:
repository: ci-dummy-registry/app

domain: example.test

ingress:
enabled: true
tls:
enabled: true

oidc:
issuer: https://keycloak.example.test/realms/platform
clientId: sidelab
clientSecret: ci-dummy-secret
name: Keycloak
Loading
Loading