Skip to content

Commit

Permalink
Merge pull request #209 from wireapp/release_2020_03_25
Browse files Browse the repository at this point in the history
Release 2020 03 25
  • Loading branch information
jschaul authored Mar 25, 2020
2 parents 7df59a3 + 5899e3a commit e8a081a
Show file tree
Hide file tree
Showing 33 changed files with 250 additions and 30 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# 2020-03-25

## Features

- `calling-test` chart using the wire-nwtesttool (#204)

## Internal changes

- Move hardcoded AWS_REGION env var value into chart values file (#197) - thanks @kvaps
- Use apps/v1 for all deployments (#201)
- Fix elasticsearch-external endpoint (#198)
- Minor improvements to consistency with naming and settings.

# 2020-03-06

## Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/minio-static-files/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ assetsURL: "https://{{ prefix }}assets.{{ domain }}"
deeplink_config_json: "{{ assetsURL }}/public/deeplink.json"
backendURL: "https://{{ prefix }}https.{{ domain }}"
backendWSURL: "https://{{ prefix }}ssl.{{ domain }}"
teamsURL: "https://{{ prefix }}team.{{ domain }}"
teamsURL: "https://{{ prefix }}teams.{{ domain }}"
accountsURL: "https://{{ prefix }}account.{{ domain }}"

# FUTUREWORK:
Expand Down
2 changes: 1 addition & 1 deletion charts/account-pages/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: account-pages
Expand Down
2 changes: 1 addition & 1 deletion charts/backoffice/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: backoffice
Expand Down
4 changes: 2 additions & 2 deletions charts/brig/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: brig
Expand Down Expand Up @@ -65,7 +65,7 @@ spec:
key: awsSecretKey
# TODO: Is this the best way to do this?
- name: AWS_REGION
value: "eu-west-1"
value: "{{ .Values.config.aws.region }}"
ports:
- containerPort: {{ .Values.service.internalPort }}
livenessProbe:
Expand Down
2 changes: 1 addition & 1 deletion charts/brig/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ config:
port: 9200
index: directory
aws:
region: "eu-west-1"
sesEndpoint: https://email.eu-west-1.amazonaws.com
sqsEndpoint: https://sqs.eu-west-1.amazonaws.com
dynamoDBEndpoint: https://dynamodb.eu-west-1.amazonaws.com
Expand Down Expand Up @@ -60,7 +61,6 @@ config:
retryAfter: 86400
setRichInfoLimit: 5000
setDefaultLocale: en
setMaxConvAndTeamSize: 500
setMaxTeamSize: 500
setMaxConvSize: 500
setEmailVisibility: visible_to_self
Expand Down
23 changes: 23 additions & 0 deletions charts/calling-test/.helmignore
Original file line number Diff line number Diff line change
@@ -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/
21 changes: 21 additions & 0 deletions charts/calling-test/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v2
name: calling-test
description: Network testing tool for audio/video/signalling. See https://github.com/wireapp/avs-nwtesttool for more details.

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
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.
version: 0.1.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.
appVersion: 1.0.14
5 changes: 5 additions & 0 deletions charts/calling-test/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1. Get the application URL by running these commands:

export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "calling-test.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:8080
52 changes: 52 additions & 0 deletions charts/calling-test/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "calling-test.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 "calling-test.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 "calling-test.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Common labels
*/}}
{{- define "calling-test.labels" -}}
helm.sh/chart: {{ include "calling-test.chart" . }}
{{ include "calling-test.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}

{{/*
Selector labels
*/}}
{{- define "calling-test.selectorLabels" -}}
app.kubernetes.io/name: {{ include "calling-test.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end -}}
39 changes: 39 additions & 0 deletions charts/calling-test/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "calling-test.fullname" . }}
labels:
{{- include "calling-test.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "calling-test.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "calling-test.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- range $key, $val := .Values.envVars }}
- name: {{ $key }}
value: {{ $val | quote }}
{{- end }}
ports:
- name: http
containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
15 changes: 15 additions & 0 deletions charts/calling-test/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "calling-test.fullname" . }}
labels:
{{- include "calling-test.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "calling-test.selectorLabels" . | nindent 4 }}
27 changes: 27 additions & 0 deletions charts/calling-test/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
replicaCount: 1
image:
# note: the docker image tag is configured as 'appVersion' in Chart.yaml
repository: quay.io/wire/avs-nwtesttool
pullPolicy: IfNotPresent

envVars:
# note: this should be overridden in every deployment
BACKEND_HTTPS_URL: https://nginz-https.example.com

# These name overrides are used also for routing.
# Wire-server's nginz subchart will route /calling-test to this chart
# If you change this name, that functionality will break.
nameOverride: "calling-test"
fullnameOverride: "calling-test"

service:
type: ClusterIP
port: 8080

resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
2 changes: 1 addition & 1 deletion charts/cargohold/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: cargohold
Expand Down
2 changes: 1 addition & 1 deletion charts/demo-smtp/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "demo-smtp.fullname" . }}
Expand Down
5 changes: 4 additions & 1 deletion charts/elasticsearch-ephemeral/templates/es.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
Expand All @@ -11,6 +11,9 @@ metadata:
component: {{ template "fullname" . }}
spec:
replicas: 1
selector:
matchLabels:
component: {{ template "fullname" . }}
template:
metadata:
labels:
Expand Down
5 changes: 4 additions & 1 deletion charts/elasticsearch-external/templates/endpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ subsets:
- ip: {{ . }}
{{- end }}
ports:
- port: {{ .Values.portHttp }}
# port and name in the endpoint must match port and name in the service
# see also https://docs.openshift.com/enterprise/3.0/dev_guide/integrating_external_services.html
- name: http
port: {{ .Values.portHttp }}
5 changes: 4 additions & 1 deletion charts/fake-aws-dynamodb/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
Expand All @@ -9,6 +9,9 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
replicas: 1
selector:
matchLabels:
app: {{ template "fullname" . }}
template:
metadata:
labels:
Expand Down
5 changes: 4 additions & 1 deletion charts/fake-aws-ses/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
Expand All @@ -9,6 +9,9 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
replicas: 1
selector:
matchLabels:
app: {{ template "fullname" . }}
template:
metadata:
labels:
Expand Down
5 changes: 4 additions & 1 deletion charts/fake-aws-sns/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
Expand All @@ -9,6 +9,9 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
replicas: 1
selector:
matchLabels:
app: {{ template "fullname" . }}
template:
metadata:
labels:
Expand Down
5 changes: 4 additions & 1 deletion charts/fake-aws-sqs/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
Expand All @@ -9,6 +9,9 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
replicas: 1
selector:
matchLabels:
app: {{ template "fullname" . }}
template:
metadata:
labels:
Expand Down
4 changes: 2 additions & 2 deletions charts/galley/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: galley
Expand Down Expand Up @@ -55,7 +55,7 @@ spec:
name: galley
key: awsSecretKey
- name: AWS_REGION
value: eu-west-1
value: "{{ .Values.config.aws.region }}"
ports:
- containerPort: {{ .Values.service.internalPort }}
livenessProbe:
Expand Down
3 changes: 2 additions & 1 deletion charts/galley/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ config:
host: aws-cassandra
replicaCount: 3
settings:
maxConvAndTeamSize: 500
maxTeamSize: 500
maxConvSize: 500
featureFlags: # see #RefConfigOptions in `/docs/reference` (https://github.com/wireapp/wire-server/)
sso: disabled-by-default
legalhold: disabled-by-default
aws:
region: "eu-west-1"
Loading

0 comments on commit e8a081a

Please sign in to comment.