Skip to content

Commit 7a63132

Browse files
Merge branch 'main' into adding-lint-commit-and-husky-to-root-configuration
Signed-off-by: Dibyanshu Pal Kushwaha <dibyanshupkushwaha@gmail.com>
2 parents aac9f67 + 074548f commit 7a63132

File tree

465 files changed

+28677
-28186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

465 files changed

+28677
-28186
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build and upload embedded binaries
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
buildBranch:
7+
description: 'Headlamp ref/branch/tag'
8+
required: true
9+
default: 'main'
10+
version:
11+
description: 'Version for the binaries (defaults to app/package.json version)'
12+
required: false
13+
default: ''
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
build-embedded:
20+
permissions:
21+
actions: write # needed to upload artifacts
22+
contents: read
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26+
with:
27+
ref: ${{ github.event.inputs.buildBranch }}
28+
- name: Setup nodejs
29+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
30+
with:
31+
node-version: 20.x
32+
cache: 'npm'
33+
cache-dependency-path: |
34+
frontend/package-lock.json
35+
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
36+
with:
37+
go-version: '1.24.*'
38+
cache-dependency-path: |
39+
backend/go.sum
40+
- name: Get version
41+
id: get-version
42+
run: |
43+
if [ -n "${{ github.event.inputs.version }}" ]; then
44+
VERSION="${{ github.event.inputs.version }}"
45+
else
46+
VERSION=$(node -p "require('./app/package.json').version")
47+
fi
48+
echo "version=$VERSION" >> $GITHUB_OUTPUT
49+
echo "Building embedded binaries with version: $VERSION"
50+
- name: Build frontend
51+
run: |
52+
make frontend
53+
- name: Prepare backend for embedding
54+
run: |
55+
make backend-embed-prepare
56+
- name: Build embedded binaries
57+
run: |
58+
make backend-embed-all-compressed VERSION=${{ steps.get-version.outputs.version }}
59+
- name: Upload embedded binaries
60+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
61+
with:
62+
name: embedded-binaries
63+
path: ./backend/dist/*.tar.gz
64+
if-no-files-found: error
65+
retention-days: 2
66+

.github/workflows/app-artifacts-mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
uses: azure/login@6c251865b4e6290e7b78be643ea2d005bc51f69a # v2.1.1
100100
with:
101101
client-id: ${{ secrets.WINDOWS_CLIENT_ID }}
102-
tenant-id: ${{ secrets. AZ_TENANT_ID }}
102+
tenant-id: ${{ secrets.AZ_TENANT_ID }}
103103
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
104104
- name: Fetch certificates
105105
if: ${{ inputs.signBinaries }}

.github/workflows/backend-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ jobs:
7676
rm ~/.config/Headlamp/kubeconfigs/config
7777
shell: bash
7878

79+
- name: Run fuzz tests
80+
run: npm run backend:fuzz
81+
shell: bash
82+
7983
- name: Upload coverage report as artifact
8084
id: upload-artifact
8185
uses: actions/upload-artifact@84480863f228bb9747b473957fcc9e309aa96097 # v4.4.2

.github/workflows/draft-release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2424
with:
2525
fetch-depth: 0
2626

@@ -47,23 +47,23 @@ jobs:
4747
echo "$RELEASE_NOTES" >> $GITHUB_OUTPUT
4848
echo "EOF" >> $GITHUB_OUTPUT
4949
50-
- name: Create Release Coordination Issue
51-
uses: actions/github-script@v7
52-
with:
53-
github-token: ${{ github.token }}
54-
script: |
55-
const releaseName = '${{ github.event.inputs.releaseName }}';
56-
const issueBody = `${{ steps.issue_body.outputs.body }}`;
50+
# - name: Create Release Coordination Issue
51+
# uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
52+
# with:
53+
# github-token: ${{ github.token }}
54+
# script: |
55+
# const releaseName = '${{ github.event.inputs.releaseName }}';
56+
# const issueBody = `${{ steps.issue_body.outputs.body }}`;
5757

58-
const issue = await github.rest.issues.create({
59-
owner: context.repo.owner,
60-
repo: context.repo.repo,
61-
title: `Release ${releaseName} - Coordination`,
62-
body: issueBody,
63-
labels: ['release']
64-
});
58+
# const issue = await github.rest.issues.create({
59+
# owner: context.repo.owner,
60+
# repo: context.repo.repo,
61+
# title: `Release ${releaseName} - Coordination`,
62+
# body: issueBody,
63+
# labels: ['release']
64+
# });
6565

66-
console.log(`Created issue #${issue.data.number}`);
66+
# console.log(`Created issue #${issue.data.number}`);
6767

6868
- name: Create Release Draft
6969
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1

.github/workflows/helm-chart-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ jobs:
7676
with:
7777
config: .github/cr.yaml
7878
mark_as_latest: false # only headlamp is set to latest
79+
skip_existing: true # skip package upload if release already exists
7980

8081
- name: Push Charts to GHCR
8182
run: |
82-
for pkg in .cr-release-packages/*; do
83+
for pkg in .cr-release-packages/*.tgz; do
8384
if [ -z "${pkg:-}" ]; then
8485
break
8586
fi
86-
8787
helm push "${pkg}" oci://ghcr.io/${{ github.repository }}/charts
8888
done

.github/workflows/pr-to-update-minikube.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ jobs:
4141
run: |
4242
gh repo sync headlamp-k8s/minikube
4343
env:
44-
GITHUB_TOKEN: ${{ secrets. KINVOLK_REPOS_TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.KINVOLK_REPOS_TOKEN }}
4545
- name: Check out minikube repo
4646
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4747
with:
4848
repository: headlamp-k8s/minikube
4949
path: minikube
50-
token: ${{ secrets. KINVOLK_REPOS_TOKEN }}
50+
token: ${{ secrets.KINVOLK_REPOS_TOKEN }}
5151
fetch-depth: 0
5252
- name: Update headlamp version in minikube
5353
run: |
@@ -90,4 +90,4 @@ jobs:
9090
cc: @$user" \
9191
env:
9292
LATEST_HEADLAMP_TAG: ${{ env.LATEST_HEADLAMP_TAG }}
93-
GITHUB_TOKEN: ${{ secrets. KINVOLK_REPOS_TOKEN }}
93+
GITHUB_TOKEN: ${{ secrets.KINVOLK_REPOS_TOKEN }}

ADOPTERS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ If you would like your organization to be added to this list, please open a PR w
1111
| Organization | Description |
1212
|----------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1313
| [EPAM Systems, Inc.](https://epam.com/) | EPAM leverages Headlamp for their [edp-headlamp](https://github.com/epam/edp-headlamp) project, integrating it within their [KubeRocketCI](https://docs.kuberocketci.io/) open-source solution to enhance the user interface and experience for managing Platform using Kubernetes-native approach. |
14+
| [KA-NABELL](https://www.ka-nabell.com/) | KA-NABELL, Japan's largest trading card e-commerce platform, contributes to Headlamp and uses it as a central operations hub for its microservices DevOps teams. They develop and extend official plugins (including a Knative plugin) alongside custom Headlamp plugins to streamline day-to-day application operations and integrate with their broader cloud native toolchain (including CNCF ecosystem tools and services). |
1415
| [Microsoft](https://www.microsoft.com/) | Microsoft contributes to Headlamp, uses Headlamp internally, and also uses Headlamp as the basis for [AKS desktop](https://github.com/Azure/aks-desktop). |
1516
| [Millennium bcp](https://www.millenniumbcp.pt/) | Millennium bcp is utilizing Headlamp as a User Interface to enhance visibility and streamline the configuration and deployment of microservices and applications. |
1617
| [Oracle](https://www.oracle.com/) | [Oracle Cloud Native Environment (OCNE)](https://www.oracle.com/linux/cloud-native-environment/), based on open standards, specifications, and APIs defined by the Open Container Initiative and Cloud Native Computing Foundation (CNCF), includes a CNCF-certified Kubernetes module, container runtimes, virtualization, service mesh, storage, networking, observability, and diagnostics. Oracle leverages Headlamp and its plugin system for implementing its own [OCNE UI](https://docs.oracle.com/en/learn/ocne-ui/index.html).

0 commit comments

Comments
 (0)