diff --git a/.github/workflows/charts.yaml b/.github/workflows/charts.yaml new file mode 100644 index 00000000..2aa799ff --- /dev/null +++ b/.github/workflows/charts.yaml @@ -0,0 +1,75 @@ +name: Charts + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + name: "Lint" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Helm + uses: azure/setup-helm@v3.5 + with: + version: v3.12.0 + + # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and + # yamllint (https://github.com/adrienverge/yamllint) which require Python + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.x + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2 + + - name: Run chart-testing (lint) + run: ct lint --config ct.yaml + test: + name: "Test" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Helm + uses: azure/setup-helm@v3.5 + with: + version: v3.12.0 + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build API Docker Image + uses: docker/build-push-action@v5 + with: + context: ./api/ + load: true + tags: ghcr.io/${{ github.repository_owner }}/outdated/api:latest + + - name: Build Ember Docker Image + uses: docker/build-push-action@v5 + with: + context: ./ember/ + load: true + tags: ghcr.io/${{ github.repository_owner }}/outdated/ember:latest + + - name: Create kind cluster + uses: helm/kind-action@v1 + + - name: Load dev images into k8s + run: kind load docker-image ghcr.io/${{ github.repository_owner }}/outdated/api ghcr.io/${{ github.repository_owner }}/outdated/ember --name chart-testing + + - name: Run chart-testing (install) + run: ct --config=ct.yaml install diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml deleted file mode 100644 index b36a3e39..00000000 --- a/.github/workflows/docker-push.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Docker Publish - -on: - push: - branches: - - main - -jobs: - build-and-publish: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and Push API Docker Image - uses: docker/build-push-action@v5 - with: - context: ./api/ - push: true - tags: ghcr.io/${{ github.repository_owner }}/outdated/api:latest - - - name: Build and Push Ember Docker Image - uses: docker/build-push-action@v5 - with: - context: ./ember/ - push: true - tags: ghcr.io/${{ github.repository_owner }}/outdated/ember:latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..d312f3ba --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,83 @@ +name: Publish + +on: + push: + branches: + - main + +jobs: + build-and-publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and Push API Docker Image + uses: docker/build-push-action@v5 + with: + context: ./api/ + push: true + tags: ghcr.io/${{ github.repository_owner }}/outdated/api:latest + + - name: Build and Push Ember Docker Image + uses: docker/build-push-action@v5 + with: + context: ./ember/ + push: true + tags: ghcr.io/${{ github.repository_owner }}/outdated/ember:latest + + helm-chart: + runs-on: ubuntu-latest + needs: + - release-container + permissions: + actions: none + checks: none + contents: none + deployments: none + issues: none + packages: write + pull-requests: none + repository-projects: none + security-events: none + statuses: none + id-token: none + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Prepare Chart Metadata + id: chartmeta + run: echo version=0.0.0+$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT + + - name: Set up Helm + uses: azure/setup-helm@v3.5 + with: + version: v3.12.0 + + - name: Package Chart + run: helm package --version ${{ steps.chartmeta.outputs.version }} --app-version ${{ steps.chartmeta.outputs.version }} --destination=dist charts/outdated + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Push Chart + run: helm push dist/*.tgz oci://ghcr.io/adfinis/outdated/helm \ No newline at end of file diff --git a/.gitignore b/.gitignore index b30fa8ed..4f1cfaed 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ __pycache__ .pytest_cache .vscode .coverage -rest_framework \ No newline at end of file +rest_framework +charts/*/charts \ No newline at end of file diff --git a/charts/outdated/.helmignore b/charts/outdated/.helmignore new file mode 100644 index 00000000..0e8a0eb3 --- /dev/null +++ b/charts/outdated/.helmignore @@ -0,0 +1,23 @@ +# 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 +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/outdated/Chart.lock b/charts/outdated/Chart.lock new file mode 100644 index 00000000..11918969 --- /dev/null +++ b/charts/outdated/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: postgresql + repository: https://charts.bitnami.com/bitnami + version: 14.0.5 +digest: sha256:f9bfcbfaea579dd2cb446c9ef96a960ea042e22ab47e55405b56fb5e57341a92 +generated: "2024-02-14T09:14:59.288031462+01:00" diff --git a/charts/outdated/Chart.yaml b/charts/outdated/Chart.yaml new file mode 100644 index 00000000..e0a18205 --- /dev/null +++ b/charts/outdated/Chart.yaml @@ -0,0 +1,29 @@ +apiVersion: v2 +name: outdated +description: A Helm chart for Kubernetes + +type: application + +home: https://github.com/adfinis/outdated + +maintainers: + - name: adfinis + email: support@adfinis.com + url: https://adfinis.com + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.0.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "latest" + +dependencies: + - name: postgresql + version: ~14.0.5 + repository: https://charts.bitnami.com/bitnami + condition: postgresql.enabled diff --git a/charts/outdated/ci/default-values.yaml b/charts/outdated/ci/default-values.yaml new file mode 100644 index 00000000..134356d4 --- /dev/null +++ b/charts/outdated/ci/default-values.yaml @@ -0,0 +1,7 @@ +--- +postgresql: + enabled: true + auth: + password: outdated +ingress: + enabled: true diff --git a/charts/outdated/templates/NOTES.txt b/charts/outdated/templates/NOTES.txt new file mode 100644 index 00000000..e69de29b diff --git a/charts/outdated/templates/_helpers.tpl b/charts/outdated/templates/_helpers.tpl new file mode 100644 index 00000000..fda44029 --- /dev/null +++ b/charts/outdated/templates/_helpers.tpl @@ -0,0 +1,62 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "outdated.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). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "outdated.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 "outdated.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "outdated.labels" -}} +helm.sh/chart: {{ include "outdated.chart" . }} +{{ include "outdated.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "outdated.selectorLabels" -}} +app.kubernetes.io/name: {{ include "outdated.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "outdated.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "outdated.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} diff --git a/charts/outdated/templates/configmap.yaml b/charts/outdated/templates/configmap.yaml new file mode 100644 index 00000000..8970c793 --- /dev/null +++ b/charts/outdated/templates/configmap.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ template "outdated.fullname" . }} + labels: + {{- include "outdated.labels" . | nindent 4 }} +data: + OIDC_OP_BASE_ENDPOINT: {{ cat .Values.oidc.host "/realms/" .Values.oidc.realm "/protocol/openid-connect" | replace " " "" | quote }} + ALLOWED_HOSTS: {{ .Values.django.allowedHosts | quote }} + DEBUG: "false" + {{- if .Values.postgresql.enabled }} + DATABASE_HOST: "{{ template "outdated.fullname" . }}-postgresql.{{ .Release.Namespace }}" + DATABASE_NAME: {{ .Values.postgresql.auth.database }} + DATABASE_USER: {{ .Values.postgresql.auth.username }} + {{- end }} + OIDC_GROUPS_CLAIM: "groups" + SECRET_KEY: {{ randAscii 20 | quote }} diff --git a/charts/outdated/templates/deployment.yaml b/charts/outdated/templates/deployment.yaml new file mode 100644 index 00000000..bf6c2931 --- /dev/null +++ b/charts/outdated/templates/deployment.yaml @@ -0,0 +1,165 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "outdated.fullname" . }}-api + labels: + {{- include "outdated.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "outdated.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "outdated.labels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + app.kubernetes.io/component: api + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "outdated.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }}-api + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.api.image.pullPolicy }} + ports: + - name: http + containerPort: {{ .Values.api.service.port }} + protocol: TCP + envFrom: + - configMapRef: + name: {{ template "outdated.fullname" . }} + {{- if .Values.existingSecret }} + - secretRef: + name: {{ .Values.existingSecret }} + {{- end }} + env: + - name: DATABASE_PASSWORD + valueFrom: + secretKeyRef: + {{- if .Values.postgresql.enabled }} + name: "{{ template "outdated.fullname" . }}-postgresql" + key: password + {{- else }} + name: {{ .Values.existingSecret | quote }} + key: DATABASE_PASSWORD + {{- end }} + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "outdated.fullname" . }}-ember + labels: + {{- include "outdated.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "outdated.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "outdated.labels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + app.kubernetes.io/component: ember + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "outdated.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }}-ember + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.ember.image.repository }}:{{ .Values.ember.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.ember.image.pullPolicy }} + ports: + - name: http + containerPort: {{ .Values.ember.service.port }} + protocol: TCP + lifecycle: + postStart: + exec: + command: + - "/bin/sh" + - "-c" + - | + urlencode() { + # urlencode + # blatantly pinched from https://gist.github.com/cdown/1163649 + + local length="${#1}" + for i in $(seq 0 $((length-1))); do + local c="${1:i:1}" + case $c in + [a-zA-Z0-9.~_-]) printf "$c" ;; + *) printf '%%%02X' "'$c" ;; + esac + done + } + sed -i \ + -e "s/oidc-client-id/$(urlencode {{.Values.oidc.clientId}})/g" \ + -e "s/oidc-client-host/$(urlencode {{.Values.oidc.host}}/realms/{{.Values.oidc.realm}}/protocol/openid-connect)/g" \ + /usr/share/nginx/html/index.html + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} \ No newline at end of file diff --git a/charts/outdated/templates/hpa.yaml b/charts/outdated/templates/hpa.yaml new file mode 100644 index 00000000..99bf29ec --- /dev/null +++ b/charts/outdated/templates/hpa.yaml @@ -0,0 +1,32 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "outdated.fullname" . }} + labels: + {{- include "outdated.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "outdated.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} diff --git a/charts/outdated/templates/ingress.yaml b/charts/outdated/templates/ingress.yaml new file mode 100644 index 00000000..3fa6cc5f --- /dev/null +++ b/charts/outdated/templates/ingress.yaml @@ -0,0 +1,60 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "outdated.fullname" . -}} +{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} + {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} + {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} + {{- end }} +{{- end }} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "outdated.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ .backend.service.name }} + port: + number: {{ .backend.service.port.number }} + {{- else }} + serviceName: {{ .backend.service.name }} + servicePort: {{ .backend.service.port.number }} + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/outdated/templates/service.yaml b/charts/outdated/templates/service.yaml new file mode 100644 index 00000000..31fde855 --- /dev/null +++ b/charts/outdated/templates/service.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "outdated.fullname" . }}-api + labels: + {{- include "outdated.labels" . | nindent 4 }} + app.kubernetes.io/component: api +spec: + type: {{ .Values.api.service.type }} + ports: + - port: 80 + targetPort: {{ .Values.api.service.port }} + protocol: TCP + name: http + selector: + {{- include "outdated.selectorLabels" . | nindent 4 }} + app.kubernetes.io/component: api +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "outdated.fullname" . }}-ember + labels: + {{- include "outdated.labels" . | nindent 4 }} + app.kubernetes.io/component: ember +spec: + type: {{ .Values.ember.service.type }} + ports: + - port: {{ .Values.ember.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + {{- include "outdated.selectorLabels" . | nindent 4 }} + app.kubernetes.io/component: ember diff --git a/charts/outdated/templates/serviceaccount.yaml b/charts/outdated/templates/serviceaccount.yaml new file mode 100644 index 00000000..33de9b05 --- /dev/null +++ b/charts/outdated/templates/serviceaccount.yaml @@ -0,0 +1,13 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "outdated.serviceAccountName" . }} + labels: + {{- include "outdated.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.automount }} +{{- end }} diff --git a/charts/outdated/values.yaml b/charts/outdated/values.yaml new file mode 100644 index 00000000..8e4b7739 --- /dev/null +++ b/charts/outdated/values.yaml @@ -0,0 +1,136 @@ +--- + +existingSecret: ~ + +# kubectl create secret generic outdated-secrets \ +# --namespace app-outdated \ +# --from-literal=DATABASE_PASSWORD=xyz \ +# --from-literal=SECRET_KEY=xyz \ + +# for using an external database set DATABASE_HOST and DATABASE_USER + +api: + replicaCount: 1 + image: + repository: ghcr.io/adfinis/outdated/api + pullPolicy: Always + tag: ~ + service: + type: ClusterIP + port: 8000 + +ember: + image: + repository: ghcr.io/adfinis/outdated/ember + pullPolicy: Always + tag: ~ + service: + type: ClusterIP + port: 80 + +django: + allowedHosts: "*" + debug: "False" + +oidc: + host: "https://login.example.com" + clientId: "example-outdated" + realm: "example" + +postgresql: + enabled: false + auth: + username: outdated + database: outdated + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Automatically mount a ServiceAccount's API credentials? + automount: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +podAnnotations: {} +podLabels: {} + +podSecurityContext: + {} + # fsGroup: 2000 + +securityContext: + {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true + # runAsUser: 1000 + +ingress: + enabled: false + className: "nginx" + annotations: + kubernetes.io/ingress.class: nginx + hosts: + - host: outdated.example.com + paths: + - path: / + pathType: Prefix + backend: + service: + name: outdated-ember + port: + number: 80 + - path: /api + pathType: Prefix + backend: + service: + name: outdated-api + port: + number: 80 +resources: + {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +# Additional volumes on the output Deployment definition. +volumes: [] +# - name: foo +# secret: +# secretName: mysecret +# optional: false + +# Additional volumeMounts on the output Deployment definition. +volumeMounts: [] +# - name: foo +# mountPath: "/etc/foo" +# readOnly: true + +nodeSelector: {} + +tolerations: [] + +affinity: {} diff --git a/ct.yaml b/ct.yaml new file mode 100644 index 00000000..9e4c988c --- /dev/null +++ b/ct.yaml @@ -0,0 +1,6 @@ +--- +target-branch: main +chart-repos: + - bitnami=https://charts.bitnami.com/bitnami +charts: + - charts/outdated