Skip to content

Commit 2c31828

Browse files
authored
Merge branch 'kubernetes-sigs:main' into in-cluster-context-name
2 parents a88bee5 + 1baa73b commit 2c31828

File tree

8 files changed

+445
-9
lines changed

8 files changed

+445
-9
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+

AGENTS.md

Lines changed: 367 additions & 0 deletions
Large diffs are not rendered by default.

frontend/src/components/common/Label.stories/__snapshots__/StatusLabel.Warning.stories.storyshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<body>
22
<div>
33
<span
4-
class="MuiTypography-root MuiTypography-body1 css-1cqtycm-MuiTypography-root"
4+
class="MuiTypography-root MuiTypography-body1 css-1dablfr-MuiTypography-root"
55
>
66
warning
77
</span>

frontend/src/components/common/Label.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@ export const StatusLabel = forwardRef<HTMLSpanElement, StatusLabelProps>((props,
104104
borderColor: theme.palette.divider,
105105
};
106106
} else if (isLight) {
107+
const bg = baseColor;
108+
const fg = status === 'warning' ? '#000000ff' : theme.palette.getContrastText(bg);
109+
107110
params = {
108-
backgroundColor: baseColor,
109-
color: theme.palette.getContrastText(baseColor),
111+
backgroundColor: bg,
112+
color: fg,
110113
borderColor: 'transparent',
111114
};
112115
} else {

frontend/src/components/pod/__snapshots__/PodDetails.Initializing.stories.storyshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@
796796
class="MuiBox-root css-0"
797797
>
798798
<span
799-
class="MuiTypography-root MuiTypography-body1 css-1cqtycm-MuiTypography-root"
799+
class="MuiTypography-root MuiTypography-body1 css-1dablfr-MuiTypography-root"
800800
>
801801
Waiting (PodInitializing)
802802
</span>
@@ -1046,7 +1046,7 @@
10461046
class="MuiBox-root css-0"
10471047
>
10481048
<span
1049-
class="MuiTypography-root MuiTypography-body1 css-1cqtycm-MuiTypography-root"
1049+
class="MuiTypography-root MuiTypography-body1 css-1dablfr-MuiTypography-root"
10501050
>
10511051
Waiting (PodInitializing)
10521052
</span>

frontend/src/components/pod/__snapshots__/PodDetails.LivenessFailed.stories.storyshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
data-mui-internal-clone-element="true"
240240
>
241241
<span
242-
class="MuiTypography-root MuiTypography-body1 css-1cqtycm-MuiTypography-root"
242+
class="MuiTypography-root MuiTypography-body1 css-1dablfr-MuiTypography-root"
243243
>
244244
CrashLoopBackOff
245245
</span>
@@ -791,7 +791,7 @@
791791
>
792792
<span
793793
aria-describedby="container-state-message-liveness"
794-
class="MuiTypography-root MuiTypography-body1 css-1cqtycm-MuiTypography-root"
794+
class="MuiTypography-root MuiTypography-body1 css-1dablfr-MuiTypography-root"
795795
>
796796
Waiting (CrashLoopBackOff)
797797
</span>

frontend/src/components/pod/__snapshots__/PodDetails.PullBackOff.stories.storyshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@
791791
>
792792
<span
793793
aria-describedby="container-state-message-imagepullbackoff"
794-
class="MuiTypography-root MuiTypography-body1 css-1cqtycm-MuiTypography-root"
794+
class="MuiTypography-root MuiTypography-body1 css-1dablfr-MuiTypography-root"
795795
>
796796
Waiting (ImagePullBackOff)
797797
</span>

frontend/src/components/pod/__snapshots__/PodList.Items.stories.storyshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@
14231423
data-mui-internal-clone-element="true"
14241424
>
14251425
<span
1426-
class="MuiTypography-root MuiTypography-body1 css-1cqtycm-MuiTypography-root"
1426+
class="MuiTypography-root MuiTypography-body1 css-1dablfr-MuiTypography-root"
14271427
>
14281428
CrashLoopBackOff
14291429
</span>

0 commit comments

Comments
 (0)