From 1d11d643907e2457e6334d6f318b306b572a05ef Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Tue, 31 May 2022 17:37:14 +0200 Subject: [PATCH] initial commit --- smardigo/.helmignore | 22 -------- .../deployment.yml | 0 .../{connect-demo01 => connect}/ingress.yml | 0 .../{connect-demo01 => connect}/secret.yml | 0 .../{connect-demo01 => connect}/service.yml | 0 smardigo/iam/_helpers.tpl | 42 --------------- smardigo/iam/deployment.yml | 53 ------------------- smardigo/iam/service.yml | 17 ------ 8 files changed, 134 deletions(-) delete mode 100644 smardigo/.helmignore rename smardigo/{connect-demo01 => connect}/deployment.yml (100%) rename smardigo/{connect-demo01 => connect}/ingress.yml (100%) rename smardigo/{connect-demo01 => connect}/secret.yml (100%) rename smardigo/{connect-demo01 => connect}/service.yml (100%) delete mode 100644 smardigo/iam/_helpers.tpl delete mode 100644 smardigo/iam/deployment.yml delete mode 100644 smardigo/iam/service.yml diff --git a/smardigo/.helmignore b/smardigo/.helmignore deleted file mode 100644 index 50af031..0000000 --- a/smardigo/.helmignore +++ /dev/null @@ -1,22 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/smardigo/connect-demo01/deployment.yml b/smardigo/connect/deployment.yml similarity index 100% rename from smardigo/connect-demo01/deployment.yml rename to smardigo/connect/deployment.yml diff --git a/smardigo/connect-demo01/ingress.yml b/smardigo/connect/ingress.yml similarity index 100% rename from smardigo/connect-demo01/ingress.yml rename to smardigo/connect/ingress.yml diff --git a/smardigo/connect-demo01/secret.yml b/smardigo/connect/secret.yml similarity index 100% rename from smardigo/connect-demo01/secret.yml rename to smardigo/connect/secret.yml diff --git a/smardigo/connect-demo01/service.yml b/smardigo/connect/service.yml similarity index 100% rename from smardigo/connect-demo01/service.yml rename to smardigo/connect/service.yml diff --git a/smardigo/iam/_helpers.tpl b/smardigo/iam/_helpers.tpl deleted file mode 100644 index 1ba85f4..0000000 --- a/smardigo/iam/_helpers.tpl +++ /dev/null @@ -1,42 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "iam.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -*/}} -{{- define "iam.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "chartName" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Labels that should be added on each resource -*/}} -{{- define "labels" -}} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- if eq (default "helm" .Values.creator) "helm" }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -helm.sh/chart: {{ include "chartName" . }} -{{- end -}} -{{- end -}} \ No newline at end of file diff --git a/smardigo/iam/deployment.yml b/smardigo/iam/deployment.yml deleted file mode 100644 index 49f45d0..0000000 --- a/smardigo/iam/deployment.yml +++ /dev/null @@ -1,53 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: "{{ .Release.Name }}-iam" -spec: - replicas: 1 - selector: - matchLabels: - app: "{{ .Release.Name }}-iam" - template: - metadata: - labels: - app: "{{ .Release.Name }}-iam" - spec: - hostAliases: - - ip: "{{ .Values.sharedService.keycloak.host.ip }}" - hostnames: - - "{{ .Values.sharedService.keycloak.host.name }}" - containers: - - name: "{{ .Release.Name }}-iam" - image: "dev-harbor-01.smardigo.digital/smardigo/iam-app:{{ .Values.iam.image.version }}" - imagePullPolicy: Always - env: - - name: SERVER_ERROR_INCLUDE_MESSAGE - value: "always" - - name: IAM_KEYCLOAK_AUTH_SERVER_URL - value: "https://{{ .Values.sharedService.keycloak.host.name }}/auth" - - name: IAM_KEYCLOAK_ADMIN_USER - value: "{{ .Values.iam.keycloak.username }}" - - name: IAM_KEYCLOAK_ADMIN_PASSWORD - value: "{{ .Values.iam.keycloak.username }}" - - name: SMA_JWT_ENABLED - value: "true" - - name: SMA_JWT_SECRET - value: "456ae14462d049d3be76439ef379c7c6" - - name: SPRINGDOC_SERVER_URL - value: "https://dev-{{ .Release.Name }}-iam.smardigo.digital" - - name: SMA_CORS_ORIGINS - value: "https://dev-{{ .Release.Name }}-iam.smardigo.digital:9081" - - name: SMA_CORS_ALLOWED_METHODS - value: "*" - - name: SMA_CORS_ALLOWED_HEADERS - value: "*" - - name: SMA_CORS_PATH_PATTERN - value: "/**" - ports: - - containerPort: 8080 - initContainers: - - name: init-keycloak - image: busybox:1.28 - command: ['sh', '-c', "until nslookup {{ .Values.sharedService.keycloak.host.name }}; do echo waiting for keycloak; sleep 2; done"] - imagePullSecrets: - - name: "{{ .Values.smardigo.pull_secret }}" diff --git a/smardigo/iam/service.yml b/smardigo/iam/service.yml deleted file mode 100644 index dccbefd..0000000 --- a/smardigo/iam/service.yml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: "{{ .Release.Name }}-iam" -spec: - selector: - app: "{{ .Release.Name }}-iam" - type: NodePort - ports: - - port: 8080 - targetPort: 8080 - protocol: TCP - name: http - - port: 8081 - targetPort: 8081 - protocol: TCP - name: metrics