mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
feat: Enhance Helm chart packaging and linting for OneUptime and Kubernetes Agent
This commit is contained in:
3
.github/workflows/common-jobs.yaml
vendored
3
.github/workflows/common-jobs.yaml
vendored
@@ -18,9 +18,10 @@ jobs:
|
||||
- name: Install Helm
|
||||
run: |
|
||||
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||
- name: Lint Helm Chart
|
||||
- name: Lint Helm Chart
|
||||
run: |
|
||||
helm lint ./HelmChart/Public/oneuptime
|
||||
helm lint ./HelmChart/Public/kubernetes-agent
|
||||
|
||||
js-lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -134,11 +134,16 @@ jobs:
|
||||
helm lint oneuptime
|
||||
helm template oneuptime --values oneuptime/values.yaml
|
||||
helm package --sign --key 'key@oneuptime.com' --keyring ~/.gnupg/secring.gpg oneuptime --version ${{needs.read-version.outputs.major_minor}} --app-version ${{needs.read-version.outputs.major_minor}}
|
||||
echo "Helm Chart Package created successfully"
|
||||
echo "OneUptime Helm Chart Package created successfully"
|
||||
helm lint kubernetes-agent
|
||||
helm template kubernetes-agent --values kubernetes-agent/values.yaml
|
||||
helm package --sign --key 'key@oneuptime.com' --keyring ~/.gnupg/secring.gpg kubernetes-agent --version ${{needs.read-version.outputs.major_minor}} --app-version ${{needs.read-version.outputs.major_minor}}
|
||||
echo "Kubernetes Agent Helm Chart Package created successfully"
|
||||
cd ..
|
||||
ls
|
||||
echo "Copying the package to helm-chart repo"
|
||||
rm -r ../../helm-chart/oneuptime
|
||||
rm -rf ../../helm-chart/oneuptime
|
||||
rm -rf ../../helm-chart/kubernetes-agent
|
||||
cp -r ./Public/* ../../helm-chart
|
||||
echo "Package copied successfully"
|
||||
cd .. && cd .. && cd helm-chart
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import PageComponentProps from "../PageComponentProps";
|
||||
import ErrorMessage from "Common/UI/Components/ErrorMessage/ErrorMessage";
|
||||
import React, {
|
||||
Fragment,
|
||||
FunctionComponent,
|
||||
ReactElement,
|
||||
useCallback,
|
||||
@@ -43,21 +42,22 @@ const LogsPage: FunctionComponent<PageComponentProps> = (
|
||||
);
|
||||
}
|
||||
|
||||
if (hasData === false) {
|
||||
return <TelemetryDocumentation telemetryType="logs" />;
|
||||
}
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<DashboardLogsViewer
|
||||
showFilters={true}
|
||||
serviceIds={[]}
|
||||
limit={100}
|
||||
enableRealtime={true}
|
||||
id="logs"
|
||||
onCountChange={handleCountChange}
|
||||
onShowDocumentation={() => {
|
||||
setShowDocs(true);
|
||||
}}
|
||||
/>
|
||||
{hasData === false && <TelemetryDocumentation telemetryType="logs" />}
|
||||
</Fragment>
|
||||
<DashboardLogsViewer
|
||||
showFilters={true}
|
||||
serviceIds={[]}
|
||||
limit={100}
|
||||
enableRealtime={true}
|
||||
id="logs"
|
||||
onCountChange={handleCountChange}
|
||||
onShowDocumentation={() => {
|
||||
setShowDocs(true);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user