Skip to content
Open
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
4,496 changes: 4,496 additions & 0 deletions THIRD_PARTY_LICENSES.txt

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions buildrpm/AppLogo.tsx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git frontend/src/components/App/AppLogo.tsx frontend/src/components/App/AppLogo.tsx
index e90633a15..7c83aac47 100644
--- frontend/src/components/App/AppLogo.tsx
+++ frontend/src/components/App/AppLogo.tsx
@@ -56,7 +56,7 @@ export default function OriginalAppLogo(props: AppLogoProps) {
? LogoLight
: LogoDark;

- return <Component style={{ width: 'auto', height: '32px' }} />;
+ return <Component style={{ width: '243px', height: '66px', marginLeft: '-27px'}} />;
}

export function AppLogo(props: AppLogoProps) {
@@ -81,7 +81,7 @@ export function AppLogo(props: AppLogoProps) {
<PluginAppLogoComp
logoType={logoType}
themeName={themeName}
- sx={{ height: '32px', width: 'auto' }}
+ sx={{ height: '66px', width: '243px' }}
/>
)}
</ErrorBoundary>
35 changes: 35 additions & 0 deletions buildrpm/Auth.tsx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
diff --git frontend/src/components/account/Auth.tsx frontend/src/components/account/Auth.tsx
index 729a11e3e..d04870bd5 100644
--- frontend/src/components/account/Auth.tsx
+++ frontend/src/components/account/Auth.tsx
@@ -33,6 +33,7 @@ import { ApiError, testAuth } from '../../lib/k8s/apiProxy';
import { ClusterDialog } from '../cluster/Chooser';
import { DialogTitle } from '../common/Dialog';
import HeadlampLink from '../common/Link';
+import { GlobalStyles } from '@mui/material';

export default function AuthToken() {
const history = useHistory();
@@ -125,6 +126,14 @@ export function PureAuthToken({
}

return (
+ <>
+ <GlobalStyles
+ styles={{
+ '.MuiDialog-container .MuiDialog-paper > h2#authtoken-dialog-title.MuiDialogTitle-root': {
+ backgroundColor: '#2c2926 !important',
+ },
+ }}
+ />
<Box component="main">
<ClusterDialog useCover onClose={onClose} aria-labelledby="authtoken-dialog-title">
<DialogTitle id="authtoken-dialog-title">{title}</DialogTitle>
@@ -196,6 +205,7 @@ export function PureAuthToken({
message={<span id="message-id">{t('translation|Error authenticating')}</span>}
/>
</Box>
+ </>
);
}

53 changes: 53 additions & 0 deletions buildrpm/headlamp-container-image.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@


%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif

%{!?registry: %global registry container-registry.oracle.com/olcne}
%global app_name headlamp
%global img_name ui
%global app_version 0.34.0
%global oracle_release_version 1
%global _buildhost build-ol%{?oraclelinux}-%{?_arch}.oracle.com

Name: %{app_name}-container-image
Version: %{app_version}
Release: %{oracle_release_version}%{?dist}
Summary: Headlamp is an easy-to-use and extensible Kubernetes web UI
License: Apache-2.0
Group: System/Management
Url: https://github.com/headlamp-k8s/headlamp.git
Source: %{name}-%{version}.tar.bz2


%description
Headlamp is an easy-to-use and extensible Kubernetes web UI.

%prep
%setup -q -n %{name}-%{version}

%build
%global rpm_name %{app_name}-%{version}-%{release}.%{_build_arch}
%global docker_tag %{registry}/%{img_name}:v%{version}

yum clean all
yumdownloader --destdir=${PWD}/rpms %{rpm_name}

docker build --pull \
--build-arg https_proxy=${https_proxy} \
-t %{docker_tag} -f ./olm/builds/Dockerfile .
docker save -o %{app_name}.tar %{docker_tag}

%install
%__install -D -m 644 %{app_name}.tar %{buildroot}/usr/local/share/olcne/%{app_name}.tar

%files
%license LICENSE THIRD_PARTY_LICENSES.txt olm/SECURITY.md
/usr/local/share/olcne/%{app_name}.tar

%changelog
* Tue Sep 16 2025 Olcne-Builder Jenkins <[email protected]> - 0.34.0-1
- Added Oracle specific build files for Headlamp.
61 changes: 61 additions & 0 deletions buildrpm/headlamp.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@


%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif

%global app_name headlamp
%global app_version 0.34.0
%global oracle_release_version 1
%global _buildhost build-ol%{?oraclelinux}-%{?_arch}.oracle.com

Name: %{app_name}
Version: %{app_version}
Release: %{oracle_release_version}%{?dist}
Summary: Headlamp is an easy-to-use and extensible Kubernetes web UI
License: Apache-2.0
Group: System/Management
Url: https://github.com/headlamp-k8s/headlamp.git
Source: %{name}-%{version}.tar.bz2
BuildRequires: golang
BuildRequires: nodejs >= 18.14
BuildRequires: make
Patch0: AppLogo.tsx.patch
Patch1: Auth.tsx.patch
Patch2: themes.ts.patch

%description
Headlamp is an easy-to-use and extensible Kubernetes web UI.

%prep
%setup -q -n %{name}-%{version}
%patch0
%patch1
%patch2

%build
cp olm/resources/*.svg frontend/src/resources
cp olm/icons/favicon.ico frontend/public/favicon.ico
cp olm/icons/favicon-16x16.png frontend/public/favicon-16x16.png
cp olm/icons/favicon-32x32.png frontend/public/favicon-32x32.png
cp olm/icons/favicon.ico frontend/public/icons.ico
cd backend
go mod tidy
cd ..
make backend frontend

%install
install -m 755 -d %{buildroot}/%{app_name}/frontend
cp -ap frontend/build/* %{buildroot}/%{app_name}/frontend
install -m 755 -d %{buildroot}/%{app_name}/backend
cp -ap backend/headlamp-server %{buildroot}/%{app_name}/backend

%files
%license LICENSE THIRD_PARTY_LICENSES.txt olm/SECURITY.md
/%{app_name}/

%changelog
* Tue Sep 16 2025 Olcne-Builder Jenkins <[email protected]> - 0.34.0-1
- Added Oracle specific build files for Headlamp.
50 changes: 50 additions & 0 deletions buildrpm/themes.ts.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
diff --git frontend/src/lib/themes.ts frontend/src/lib/themes.ts
index 0ec8cd5e5..8a2b430bd 100644
--- frontend/src/lib/themes.ts
+++ frontend/src/lib/themes.ts
@@ -152,7 +152,7 @@ export function createMuiTheme(currentTheme: AppTheme) {
normalEventBg: '#F0F0F0',
chartStyles: {
defaultFillColor: grey['300'],
- labelColor: '#000',
+ labelColor: '#fff',
},
metadataBgColor: '#f3f2f1',
headerStyle: {
@@ -191,7 +191,7 @@ export function createMuiTheme(currentTheme: AppTheme) {
},
},
typography: {
- fontFamily: ['Overpass', 'sans-serif'].join(', '),
+ fontFamily: ['Oracle Sans', 'sans-serif'].join(', '),
h1: {
fontWeight: 700,
fontSize: '1.87rem',
@@ -329,7 +329,7 @@ export function createMuiTheme(currentTheme: AppTheme) {
normalEventBg: '#333333',
metadataBgColor: '#333',
resourceToolTip: {
- color: 'rgba(255, 255, 255, 0.87)',
+ color: '#fff',
},
clusterChooser: {
button: {
diff --git frontend/src/lib/themes.ts frontend/src/lib/themes.ts
index 0ec8cd5e5..10c5ac08b 100644
--- frontend/src/lib/themes.ts
+++ frontend/src/lib/themes.ts
@@ -106,10 +106,10 @@ export function createMuiTheme(currentTheme: AppTheme) {
background: '#f5f5f5',
},
sidebar: {
- background: currentTheme.sidebar?.background ?? '#FFF',
- color: currentTheme.sidebar?.color ?? '#333',
- selectedBackground: currentTheme.sidebar?.selectedBackground ?? '#59636e',
- selectedColor: currentTheme.sidebar?.selectedColor ?? '#59636e',
+ background: '#2b2926',
+ color: '#aea8a2',
+ selectedBackground: '#d8372a',
+ selectedColor: '#8a8784',
actionBackground: currentTheme.sidebar?.actionBackground ?? '#333',
},
navbar: {
21 changes: 21 additions & 0 deletions olm/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Reporting Security Vulnerabilities

Oracle values the independent security research community and believes that responsible disclosure of security vulnerabilities helps us ensure the security and privacy of all our users.

Please do NOT raise a GitHub Issue to report a security vulnerability. If you believe you have found a security vulnerability, please submit a report to [email protected] preferably with a proof of concept. We provide
additional information on [how to report security vulnerabilities to Oracle](https://www.oracle.com/corporate/security-practices/assurance/vulnerability/reporting.html) which includes public encryption keys for secure email.

We ask that you do not use other channels or contact project contributors directly.

Non-vulnerability related security issues such as great new ideas for security features are welcome on GitHub Issues.

## Security Updates, Alerts and Bulletins

Security updates will be released on a regular cadence. Many of our projects will typically release security fixes in conjunction with the [Oracle Critical Patch Update](https://www.oracle.com/security-alerts/) program. Security
updates are released on the Tuesday closest to the 17th day of January, April, July and October. A pre-release announcement will be published on the Thursday preceding each release. Additional information, including past
advisories, is available on our [Security Alerts](https://www.oracle.com/security-alerts/) page.

## Security-Related Information

We will provide security related information such as a threat model, considerations for secure use, or any known security issues in our documentation. Please note that labs and sample code are intended to demonstrate a concept and
may not be sufficiently hardened for production use.
24 changes: 24 additions & 0 deletions olm/builds/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM container-registry.oracle.com/os/oraclelinux:8

COPY rpms /tmp/

# Install vim-minimal, to allow editing main.js file easily during development, which will be removed later
RUN rpm -i /tmp/*.rpm && \
mv /headlamp/backend/headlamp-server /headlamp/headlamp-server && \
rmdir /headlamp/backend && \
mkdir /headlamp/plugins && \
mkdir /headlamp/static-plugins && \
rm -rf /var/cache/yum/* /var/lib/rpm/* /tmp/*.rpm && \
groupadd --system --gid 101 headlamp && \
useradd --system --uid 100 -g headlamp --create-home --home-dir /home/headlamp headlamp && \
chown -R headlamp:headlamp /headlamp

ENV HEADLAMP_CONFIG_TLS_CERT=/headlamp-cert/headlamp-ca.crt
ENV HEADLAMP_CONFIG_TLS_KEY=/headlamp-cert/headlamp-tls.key
USER headlamp

EXPOSE 4466

ENV HEADLAMP_STATIC_PLUGINS_DIR=/headlamp/static-plugins

ENTRYPOINT ["/headlamp/headlamp-server", "-html-static-dir", "/headlamp/frontend"]
Binary file added olm/icons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added olm/icons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added olm/icons/favicon.ico
Binary file not shown.
20 changes: 20 additions & 0 deletions olm/jenkins/ci/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@Library('olcne-pipeline') _
import com.oracle.olcne.pipeline.BranchPattern

String version = '0.34.0'
String imgTag = "v" + version

olcnePipeline(
branchPattern: new BranchPattern(master: 'oracle/release/.*', feature: '(?!^oracle/release/$)(^.*$)'),
containers: [('container-registry.oracle.com/olcne/ui:' + imgTag): 'olcne/headlamp:' + imgTag],
platforms: ['ol8'],
architectures: ['x86_64', 'aarch64'],
publishImage: false,
yumOL8Repos: ['ol8_appstream'],
ol8ModulesToDisable: ['go-toolset:ol8'],
ol8ModulesToEnable: ['nodejs:20'],
preBuildCommands: [
'podman pull container-registry.oracle.com/olcne/base:latest',
'podman tag container-registry.oracle.com/olcne/base:latest container-registry.oracle.com/os/oraclelinux:8',
],
)
6 changes: 6 additions & 0 deletions olm/resources/icon-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions olm/resources/icon-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions olm/resources/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions olm/resources/logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading