Skip to content

Commit

Permalink
Merge pull request #192 from uc-cdis/feat/GPE-1266
Browse files Browse the repository at this point in the history
Modified our helm charts to be able to include annotations for Grafana.
  • Loading branch information
EliseCastle23 authored Sep 9, 2024
2 parents 7d6592d + b9f8c12 commit f2207fb
Show file tree
Hide file tree
Showing 101 changed files with 405 additions and 723 deletions.
104 changes: 52 additions & 52 deletions .secrets.baseline

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions helm/ambassador/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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.1.11
version: 0.1.12

# 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
Expand All @@ -25,5 +25,5 @@ appVersion: "1.4.2"

dependencies:
- name: common
version: 0.1.10
version: 0.1.14
repository: file://../common
9 changes: 3 additions & 6 deletions helm/ambassador/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ambassador

![Version: 0.1.11](https://img.shields.io/badge/Version-0.1.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.2](https://img.shields.io/badge/AppVersion-1.4.2-informational?style=flat-square)
![Version: 0.1.12](https://img.shields.io/badge/Version-0.1.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.4.2](https://img.shields.io/badge/AppVersion-1.4.2-informational?style=flat-square)

A Helm chart for deploying ambassador for gen3

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| file://../common | common | 0.1.10 |
| file://../common | common | 0.1.14 |

## Values

Expand All @@ -22,11 +22,7 @@ A Helm chart for deploying ambassador for gen3
| autoscaling.targetCPUUtilizationPercentage | int | `60` | The target CPU utilization percentage for autoscaling |
| commonLabels | map | `nil` | Will completely override the commonLabels defined in the common chart's _label_setup.tpl |
| criticalService | string | `"true"` | Valid options are "true" or "false". If invalid option is set- the value will default to "false". |
| datadogLogsInjection | bool | `true` | If enabled, the Datadog Agent will automatically inject Datadog-specific metadata into your application logs. |
| datadogProfilingEnabled | bool | `true` | If enabled, the Datadog Agent will collect profiling data for your application using the Continuous Profiler. This data can be used to identify performance bottlenecks and optimize your application. |
| datadogTraceSampleRate | int | `1` | A value between 0 and 1, that represents the percentage of requests that will be traced. For example, a value of 0.5 means that 50% of requests will be traced. |
| fullnameOverride | string | `"ambassador-deployment"` | Override the full name of the deployment. |
| global.ddEnabled | bool | `false` | Whether Datadog is enabled. |
| global.environment | string | `"default"` | Environment name. This should be the same as vpcname if you're doing an AWS deployment. Currently this is being used to share ALB's if you have multiple namespaces. Might be used other places too. |
| global.minAvialable | int | `1` | The minimum amount of pods that are available at all times if the PDB is deployed. |
| global.pdb | bool | `false` | If the service will be deployed with a Pod Disruption Budget. Note- you need to have more than 2 replicas for the pdb to be deployed. |
Expand All @@ -35,6 +31,7 @@ A Helm chart for deploying ambassador for gen3
| image.repository | string | `"quay.io/datawire/ambassador"` | Docker repository. |
| image.tag | string | `"1.4.2"` | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | Docker image pull secrets. |
| metricsEnabled | bool | `false` | Whether Metrics are enabled. |
| nameOverride | string | `""` | Override the name of the chart. |
| nodeSelector | map | `{}` | Node selector labels. |
| partOf | string | `"Workspace-Tab"` | Label to help organize pods and their use. Any value is valid, but use "_" or "-" to divide words. |
Expand Down
15 changes: 5 additions & 10 deletions helm/ambassador/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ metadata:
name: ambassador-deployment
labels:
{{- include "ambassador.labels" . | nindent 4 }}
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogLabels" . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand All @@ -16,15 +13,16 @@ spec:
{{- include "ambassador.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.metricsEnabled }}
{{- include "common.grafanaAnnotations" . | nindent 8 }}
{{- end }}
labels:
{{- include "ambassador.selectorLabels" . | nindent 8 }}
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogLabels" . | nindent 8 }}
{{- end }}
{{- include "common.extraLabels" . | nindent 8 }}
spec:
affinity:
podAntiAffinity:
Expand All @@ -49,9 +47,6 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogEnvVar" . | nindent 10 }}
{{- end }}
- name: AMBASSADOR_NAMESPACE
value: {{ printf "%s-%s" .Values.userNamespace .Release.Name | quote }}
- name: AMBASSADOR_SINGLE_NAMESPACE
Expand Down
13 changes: 3 additions & 10 deletions helm/ambassador/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
global:
# -- (string) Environment name. This should be the same as vpcname if you're doing an AWS deployment. Currently this is being used to share ALB's if you have multiple namespaces. Might be used other places too.
environment: default
# -- (bool) Whether Datadog is enabled.
ddEnabled: false
# -- (bool) If the service will be deployed with a Pod Disruption Budget. Note- you need to have more than 2 replicas for the pdb to be deployed.
pdb: false
# -- (int) The minimum amount of pods that are available at all times if the PDB is deployed.
Expand All @@ -15,6 +13,9 @@ global:
# -- (int) Number of replicas for the deployment.
replicaCount: 1

# -- (bool) Whether Metrics are enabled.
metricsEnabled: false

# -- (map) Docker image information.
image:
# -- (string) Docker repository.
Expand Down Expand Up @@ -116,11 +117,3 @@ partOf: "Workspace-Tab"
selectorLabels:
# -- (map) Will completely override the commonLabels defined in the common chart's _label_setup.tpl
commonLabels:

# Values to configure datadog if ddEnabled is set to "true".
# -- (bool) If enabled, the Datadog Agent will automatically inject Datadog-specific metadata into your application logs.
datadogLogsInjection: true
# -- (bool) If enabled, the Datadog Agent will collect profiling data for your application using the Continuous Profiler. This data can be used to identify performance bottlenecks and optimize your application.
datadogProfilingEnabled: true
# -- (int) A value between 0 and 1, that represents the percentage of requests that will be traced. For example, a value of 0.5 means that 50% of requests will be traced.
datadogTraceSampleRate: 1
4 changes: 2 additions & 2 deletions helm/arborist/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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.1.11
version: 0.1.12

# 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
Expand All @@ -25,7 +25,7 @@ appVersion: "master"

dependencies:
- name: common
version: 0.1.10
version: 0.1.14
repository: file://../common
- name: postgresql
version: 11.9.13
Expand Down
9 changes: 3 additions & 6 deletions helm/arborist/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# arborist

![Version: 0.1.11](https://img.shields.io/badge/Version-0.1.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)
![Version: 0.1.12](https://img.shields.io/badge/Version-0.1.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)

A Helm chart for gen3 arborist

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| file://../common | common | 0.1.10 |
| file://../common | common | 0.1.14 |
| https://charts.bitnami.com/bitnami | postgresql | 11.9.13 |

## Values
Expand All @@ -23,9 +23,6 @@ A Helm chart for gen3 arborist
| autoscaling.targetCPUUtilizationPercentage | int | `80` | The target CPU utilization percentage for autoscaling |
| commonLabels | map | `nil` | Will completely override the commonLabels defined in the common chart's _label_setup.tpl |
| criticalService | string | `"true"` | Valid options are "true" or "false". If invalid option is set- the value will default to "false". |
| datadogLogsInjection | bool | `true` | If enabled, the Datadog Agent will automatically inject Datadog-specific metadata into your application logs. |
| datadogProfilingEnabled | bool | `true` | If enabled, the Datadog Agent will collect profiling data for your application using the Continuous Profiler. This data can be used to identify performance bottlenecks and optimize your application. |
| datadogTraceSampleRate | int | `1` | A value between 0 and 1, that represents the percentage of requests that will be traced. For example, a value of 0.5 means that 50% of requests will be traced. |
| env | list | `[{"name":"JWKS_ENDPOINT","value":"http://fence-service/.well-known/jwks"}]` | Environment variables to pass to the container |
| env[0] | string | `{"name":"JWKS_ENDPOINT","value":"http://fence-service/.well-known/jwks"}` | The URL of the JSON Web Key Set (JWKS) endpoint for authentication |
| externalSecrets | map | `{"dbcreds":null}` | External Secrets settings. |
Expand All @@ -35,7 +32,6 @@ A Helm chart for gen3 arborist
| global.aws.awsAccessKeyId | string | `nil` | Credentials for AWS stuff. |
| global.aws.awsSecretAccessKey | string | `nil` | Credentials for AWS stuff. |
| global.aws.enabled | bool | `false` | Set to true if deploying to AWS. Controls ingress annotations. |
| global.ddEnabled | bool | `false` | Whether Datadog is enabled. |
| global.dev | bool | `true` | Whether the deployment is for development purposes. |
| global.dictionaryUrl | string | `"https://s3.amazonaws.com/dictionary-artifacts/datadictionary/develop/schema.json"` | URL of the data dictionary. |
| global.dispatcherJobNum | int | `"10"` | Number of dispatcher jobs. |
Expand Down Expand Up @@ -65,6 +61,7 @@ A Helm chart for gen3 arborist
| image.repository | string | `"quay.io/cdis/arborist"` | Docker repository. |
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | Docker image pull secrets. |
| metricsEnabled | bool | `false` | Whether Metrics are enabled. |
| nameOverride | string | `""` | Override the name of the chart. |
| nodeSelector | map | `{}` | Node selector to apply to the pod |
| partOf | string | `"Authentication"` | Label to help organize pods and their use. Any value is valid, but use "_" or "-" to divide words. |
Expand Down
16 changes: 6 additions & 10 deletions helm/arborist/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ metadata:
name: arborist-deployment
labels:
{{- include "arborist.labels" . | nindent 4 }}
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogLabels" . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand All @@ -16,15 +13,16 @@ spec:
{{- include "arborist.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.metricsEnabled }}
{{- include "common.grafanaAnnotations" . | nindent 8 }}
{{- end }}
labels:
{{- include "arborist.selectorLabels" . | nindent 8 }}
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogLabels" . | nindent 8 }}
{{- end }}
{{- include "common.extraLabels" . | nindent 8 }}
spec:
{{- with .Values.volumes }}
volumes:
Expand Down Expand Up @@ -74,9 +72,7 @@ spec:
# run arborist
/go/src/github.com/uc-cdis/arborist/bin/arborist
env:
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogEnvVar" . | nindent 12 }}
{{- end }}

{{- toYaml .Values.env | nindent 12 }}
- name: PGPASSWORD
valueFrom:
Expand Down
13 changes: 3 additions & 10 deletions helm/arborist/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ global:
netPolicy: true
# -- (int) Number of dispatcher jobs.
dispatcherJobNum: "10"
# -- (bool) Whether Datadog is enabled.
ddEnabled: false
# -- (bool) If the service will be deployed with a Pod Disruption Budget. Note- you need to have more than 2 replicas for the pdb to be deployed.
pdb: false
# -- (int) The minimum amount of pods that are available at all times if the PDB is deployed.
Expand All @@ -66,6 +64,9 @@ global:
# -- (string) Will deploy a separate External Secret Store for this service.
separateSecretStore: false

# -- (bool) Whether Metrics are enabled.
metricsEnabled: false

# -- (map) External Secrets settings.
externalSecrets:
# -- (string) Will override the name of the aws secrets manager secret. Default is "Values.global.environment-.Chart.Name-creds"
Expand Down Expand Up @@ -227,11 +228,3 @@ partOf: "Authentication"
selectorLabels:
# -- (map) Will completely override the commonLabels defined in the common chart's _label_setup.tpl
commonLabels:

# Values to configure datadog if ddEnabled is set to "true".
# -- (bool) If enabled, the Datadog Agent will automatically inject Datadog-specific metadata into your application logs.
datadogLogsInjection: true
# -- (bool) If enabled, the Datadog Agent will collect profiling data for your application using the Continuous Profiler. This data can be used to identify performance bottlenecks and optimize your application.
datadogProfilingEnabled: true
# -- (int) A value between 0 and 1, that represents the percentage of requests that will be traced. For example, a value of 0.5 means that 50% of requests will be traced.
datadogTraceSampleRate: 1
4 changes: 2 additions & 2 deletions helm/argo-wrapper/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# 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.1.7
version: 0.1.8

# 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
Expand All @@ -25,5 +25,5 @@ appVersion: "master"

dependencies:
- name: common
version: 0.1.10
version: 0.1.14
repository: file://../common
9 changes: 3 additions & 6 deletions helm/argo-wrapper/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# argo-wrapper

![Version: 0.1.7](https://img.shields.io/badge/Version-0.1.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)
![Version: 0.1.8](https://img.shields.io/badge/Version-0.1.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)

A Helm chart for gen3 Argo Wrapper Service

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| file://../common | common | 0.1.10 |
| file://../common | common | 0.1.14 |

## Values

Expand All @@ -28,11 +28,7 @@ A Helm chart for gen3 Argo Wrapper Service
| autoscaling.targetCPUUtilizationPercentage | int | `80` | The target CPU utilization percentage for autoscaling |
| commonLabels | map | `nil` | Will completely override the commonLabels defined in the common chart's _label_setup.tpl |
| criticalService | string | `"false"` | Valid options are "true" or "false". If invalid option is set- the value will default to "false". |
| datadogLogsInjection | bool | `true` | If enabled, the Datadog Agent will automatically inject Datadog-specific metadata into your application logs. |
| datadogProfilingEnabled | bool | `true` | If enabled, the Datadog Agent will collect profiling data for your application using the Continuous Profiler. This data can be used to identify performance bottlenecks and optimize your application. |
| datadogTraceSampleRate | int | `1` | A value between 0 and 1, that represents the percentage of requests that will be traced. For example, a value of 0.5 means that 50% of requests will be traced. |
| environment | string | `"default"` | Environment name. |
| global.ddEnabled | bool | `false` | Whether Datadog is enabled. |
| global.environment | string | `"default"` | Environment name. This should be the same as vpcname if you're doing an AWS deployment. Currently this is being used to share ALB's if you have multiple namespaces. Might be used other places too. |
| global.minAvialable | int | `1` | The minimum amount of pods that are available at all times if the PDB is deployed. |
| global.pdb | bool | `false` | If the service will be deployed with a Pod Disruption Budget. Note- you need to have more than 2 replicas for the pdb to be deployed. |
Expand All @@ -42,6 +38,7 @@ A Helm chart for gen3 Argo Wrapper Service
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| indexdAdminUser | string | `"fence"` | Admin user for Indexd. |
| internalS3Bucket | string | `"argo-internal-bucket"` | Name of the internal Argo bucket for Argo artifacts (does not allow pre-signed URLs). |
| metricsEnabled | bool | `false` | Whether Metrics are enabled. |
| partOf | string | `"Apps-Tab"` | Label to help organize pods and their use. Any value is valid, but use "_" or "-" to divide words. |
| podAnnotations | map | `{"gen3.io/network-ingress":"argo-wrapper"}` | Annotations to add to the pod. |
| pvc | string | `"test-pvc"` | PVC for Argo. |
Expand Down
14 changes: 5 additions & 9 deletions helm/argo-wrapper/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ metadata:
{{- end }}
labels:
{{- include "argo-wrapper.labels" . | nindent 4 }}
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogLabels" . | nindent 4 }}
{{- end }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
Expand All @@ -27,11 +24,13 @@ spec:
metadata:
labels:
{{- include "argo-wrapper.selectorLabels" . | nindent 8 }}
{{- include "common.extraLabels" . | nindent 8 }}
# gen3 networkpolicy labels
netnolimit: 'yes'
public: 'yes'
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogLabels" . | nindent 8 }}
annotations:
{{- if .Values.metricsEnabled }}
{{- include "common.grafanaAnnotations" . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.affinity }}
Expand Down Expand Up @@ -62,7 +61,4 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
{{- if .Values.global.ddEnabled }}
{{- include "common.datadogEnvVar" . | nindent 12 }}
{{- end }}
env:
Loading

0 comments on commit f2207fb

Please sign in to comment.