-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from srl-labs/feat/ui
Feat/UI
- Loading branch information
Showing
85 changed files
with
25,515 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,6 @@ cover.out | |
|
||
# build files | ||
cmd/clabverter/build/ | ||
|
||
# for crd -> openapi gen | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruamel.yaml==0.17.28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM node:22.6.0-bookworm AS deps | ||
|
||
WORKDIR /clabernetes | ||
|
||
COPY package.json package-lock.json /clabernetes/ | ||
|
||
RUN npm ci && npm cache clean --force | ||
|
||
|
||
FROM node:22.6.0-bookworm AS builder | ||
|
||
ENV NODE_ENV=production | ||
|
||
WORKDIR /clabernetes | ||
|
||
COPY --from=deps /clabernetes/node_modules ./node_modules | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
|
||
FROM --platform=linux/amd64 gcr.io/distroless/nodejs22-debian12:nonroot | ||
|
||
EXPOSE 3000 | ||
ENV PORT=3000 | ||
ENV NODE_ENV=production | ||
|
||
WORKDIR /clabernetes | ||
|
||
COPY --from=builder --chown=nonroot:nonroot /clabernetes/.next/standalone ./ | ||
COPY --from=builder --chown=nonroot:nonroot /clabernetes/.next/static ./.next/static | ||
|
||
CMD ["server.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{{- if and $.Values.ui.enabled $.Values.ui.ingress.enabled }} | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ $.Values.appName }}-ui | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}" | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
revision: "{{ .Release.Revision }}" | ||
app.kubernetes.io/name: "{{ $.Values.appName }}-ui" | ||
clabernetes/app: {{ $.Values.appName }} | ||
clabernetes/name: "{{ $.Values.appName }}-ui" | ||
clabernetes/component: ui | ||
{{- $labels := merge $.Values.globalLabels $.Values.ui.deploymentLabels }} | ||
{{- if $labels }} | ||
{{ toYaml $labels | indent 4 }} | ||
{{- end }} | ||
{{- $annotations := merge $.Values.globalAnnotations $.Values.ui.deploymentAnnotations }} | ||
{{- if $annotations }} | ||
annotations: | ||
kubernetes.io/ingress.class: {{ .Values.ui.ingress.ingressClass }} | ||
{{ toYaml $annotations | indent 4 }} | ||
{{- end }} | ||
spec: | ||
ingressClassName: {{ .Values.ui.ingress.ingressClass }} | ||
rules: | ||
- host: {{ .Values.ui.ingress.host }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: {{ .Values.appName }}-ui | ||
port: | ||
number: 443 | ||
path: / | ||
pathType: ImplementationSpecific | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.