Skip to content

Commit

Permalink
Merge branch 'release/0.48.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ljupcovangelski committed Aug 18, 2022
2 parents 62bf227 + 20340df commit b18ee48
Show file tree
Hide file tree
Showing 326 changed files with 6,645 additions and 3,793 deletions.
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
"properties": "never"
}
],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description"
}
],
"react/prop-types": 0,
"@typescript-eslint/no-unused-vars": [
"error",
Expand Down Expand Up @@ -53,4 +59,4 @@
"version": "16.12"
}
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ package-lock.json
*.tfstate.*
.terraform.tfstate.lock.info
.terraform.lock.hcl
/terraform

# Kubernetes
.kubeconfig
Expand Down
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ exports_files(
# gazelle:proto disable_global
# gazelle:build_file_name BUILD
# gazelle:prefix
# gazelle:exclude infrastructure/terraform
gazelle(name = "gazelle")

nogo(
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.47.4
0.48.0
11 changes: 9 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

git_repository(
name = "com_github_airyhq_bazel_tools",
commit = "50e7c808d9e7f5d839fda7898168143e75326878",
commit = "6ea38fe01069589ad57e66ae43c6d320fd18e3e5",
remote = "https://github.com/airyhq/bazel-tools.git",
shallow_since = "1657698793 +0200",
shallow_since = "1660208058 +0200",
)

load("@com_github_airyhq_bazel_tools//:repositories.bzl", "airy_bazel_tools_dependencies", "airy_jvm_deps")
Expand Down Expand Up @@ -191,3 +191,10 @@ load("@com_github_airyhq_bazel_tools//helm:helm.bzl", "helm_tool")
helm_tool(
name = "helm_binary",
)

### Minikube
load("@com_github_airyhq_bazel_tools//minikube:minikube.bzl", "minikube_tool")

minikube_tool(
name = "minikube_binary",
)
3 changes: 3 additions & 0 deletions backend/api/contacts/helm/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
load("//tools/build:helm.bzl", "helm_ruleset_core_version")

helm_ruleset_core_version()
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: "1.0"
description: A Helm chart for the Api Contacts app
name: contacts
version: 0-develop
name: api-contacts
version: 0-alpha
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.component }}"
name: "{{ .Values.name }}"
labels:
core.airy.co/managed: "true"
core.airy.co/mandatory: "{{ .Values.mandatory }}"
core.airy.co/component: "{{ .Values.component }}"
core.airy.co/component: "{{ .Values.name }}"
annotations:
core.airy.co/enabled: "{{ .Values.enabled }}"
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-communication
name: {{ .Values.name }}
labels:
app: api-communication
app: {{ .Values.name }}
type: api
core.airy.co/managed: "true"
core.airy.co/mandatory: "{{ .Values.mandatory }}"
core.airy.co/component: "{{ .Values.component }}"
core.airy.co/component: "{{ .Values.name }}"
spec:
replicas: 1
replicas: {{ if .Values.enabled }} 1 {{ else }} 0 {{ end }}
selector:
matchLabels:
app: api-communication
app: {{ .Values.name }}
strategy:
rollingUpdate:
maxSurge: 1
Expand All @@ -21,7 +21,7 @@ spec:
template:
metadata:
labels:
app: api-communication
app: {{ .Values.name }}
WorkerType: "{{ default "NodeGroup" .Values.global.workerType }}"
spec:
containers:
Expand All @@ -34,7 +34,7 @@ spec:
- configMapRef:
name: kafka-config
- configMapRef:
name: "{{ .Values.component }}"
name: "{{ .Values.name }}"
livenessProbe:
httpGet:
path: /actuator/health
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.component }}
name: "{{ .Values.name }}"
labels:
core.airy.co/prometheus: spring
core.airy.co/component: "{{ .Values.name }}"
spec:
ports:
- name: web
Expand All @@ -12,4 +13,4 @@ spec:
protocol: TCP
type: NodePort
selector:
app: {{ .Values.component }}
app: "{{ .Values.name }}"
9 changes: 9 additions & 0 deletions backend/api/contacts/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: api-contacts
mandatory: false
enabled: true
image: api/contacts
resources: {}
global:
containerRegistry: ghcr.io/airyhq
busyboxImage: ghcr.io/airyhq/infrastructure/busybox:latest
workerType:
3 changes: 3 additions & 0 deletions backend/media/helm/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
load("//tools/build:helm.bzl", "helm_ruleset_core_version")

helm_ruleset_core_version()
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: "1.0"
description: A Helm chart for the Media Resolver app
name: resolver
version: 0-develop
name: media-resolver
version: 0-alpha
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.component }}"
name: "{{ .Values.name }}"
labels:
core.airy.co/managed: "true"
core.airy.co/mandatory: "{{ .Values.mandatory }}"
core.airy.co/component: "{{ .Values.component }}"
core.airy.co/component: "{{ .Values.name }}"
annotations:
core.airy.co/enabled: "{{ .Values.enabled }}"
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: media-resolver
name: "{{ .Values.name }}"
labels:
app: media-resolver
app: "{{ .Values.name }}"
type: media
core.airy.co/managed: "true"
core.airy.co/mandatory: "{{ .Values.mandatory }}"
core.airy.co/component: "{{ .Values.component }}"
core.airy.co/component: "{{ .Values.name }}"
spec:
replicas: 0
replicas: {{ if .Values.enabled }} 1 {{ else }} 0 {{ end }}
selector:
matchLabels:
app: media-resolver
app: "{{ .Values.name }}"
strategy:
rollingUpdate:
maxSurge: 1
Expand All @@ -21,7 +21,7 @@ spec:
template:
metadata:
labels:
app: media-resolver
app: "{{ .Values.name }}"
WorkerType: "{{ default "NodeGroup" .Values.global.workerType }}"
spec:
containers:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: source-api
name: "{{ .Values.name }}"
labels:
core.airy.co/prometheus: spring
core.airy.co/component: "{{ .Values.name }}"
spec:
ports:
- name: web
Expand All @@ -12,4 +13,4 @@ spec:
protocol: TCP
type: NodePort
selector:
app: source-api
app: "{{ .Values.name }}"
9 changes: 9 additions & 0 deletions backend/media/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: media-resolver
mandatory: false
enabled: false
image: media/resolver
resources: {}
global:
containerRegistry: ghcr.io/airyhq
busyboxImage: ghcr.io/airyhq/infrastructure/busybox:latest
workerType:
3 changes: 3 additions & 0 deletions backend/sources/api/helm/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
load("//tools/build:helm.bzl", "helm_ruleset_core_version")

helm_ruleset_core_version()
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: "1.0"
description: A Helm chart for the Sources Chatplugin app
name: source-api
version: 0-develop
name: integration-source-api
version: 0-alpha
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ .Values.component }}"
name: "{{ .Values.name }}"
labels:
core.airy.co/managed: "true"
core.airy.co/mandatory: "{{ .Values.mandatory }}"
core.airy.co/component: "{{ .Values.component }}"
core.airy.co/component: "{{ .Values.name }}"
annotations:
core.airy.co/enabled: "{{ .Values.enabled }}"
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: source-api
name: "{{ .Values.name }}"
labels:
app: source-api
app: "{{ .Values.name }}"
type: sources
core.airy.co/managed: "true"
core.airy.co/mandatory: "{{ .Values.mandatory }}"
core.airy.co/component: "{{ .Values.component }}"
core.airy.co/component: "{{ .Values.name }}"
spec:
replicas: 0
replicas: {{ if .Values.enabled }} 1 {{ else }} 0 {{ end }}
selector:
matchLabels:
app: source-api
app: "{{ .Values.name }}"
strategy:
rollingUpdate:
maxSurge: 1
Expand All @@ -21,7 +21,7 @@ spec:
template:
metadata:
labels:
app: source-api
app: "{{ .Values.name }}"
spec:
containers:
- name: app
Expand All @@ -33,7 +33,7 @@ spec:
- configMapRef:
name: kafka-config
- configMapRef:
name: "{{ .Values.component }}"
name: "{{ .Values.name }}"
env:
- name: jwtSecret
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: "{{ .Values.component }}"
name: "{{ .Values.name }}"
labels:
core.airy.co/prometheus: spring
core.airy.co/component: "{{ .Values.name }}"
spec:
ports:
- name: web
Expand All @@ -12,4 +13,4 @@ spec:
protocol: TCP
type: NodePort
selector:
app: "{{ .Values.component }}"
app: "{{ .Values.name }}"
9 changes: 9 additions & 0 deletions backend/sources/api/helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: integration-source-api
mandatory: false
enabled: false
image: sources/api
resources: {}
global:
containerRegistry: ghcr.io/airyhq
busyboxImage: ghcr.io/airyhq/infrastructure/busybox:latest
workerType:
3 changes: 3 additions & 0 deletions backend/sources/chat-plugin/helm/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
load("//tools/build:helm.bzl", "helm_ruleset_core_version")

helm_ruleset_core_version()
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
appVersion: "1.0"
description: A Helm chart for the Sources Chatplugin app
name: sources-chatplugin
version: 0
version: 0-alpha
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sources-chatplugin
name: "{{ .Values.name }}"
labels:
app: sources-chatplugin
app: "{{ .Values.name }}"
type: sources
core.airy.co/managed: "true"
core.airy.co/mandatory: "{{ .Values.mandatory }}"
core.airy.co/component: "{{ .Values.component }}"
core.airy.co/component: "{{ .Values.name }}"
spec:
replicas: 1
replicas: {{ if .Values.enabled }} 1 {{ else }} 0 {{ end }}
selector:
matchLabels:
app: sources-chatplugin
app: "{{ .Values.name }}"
strategy:
rollingUpdate:
maxSurge: 1
Expand All @@ -21,7 +21,7 @@ spec:
template:
metadata:
labels:
app: sources-chatplugin
app: "{{ .Values.name }}"
WorkerType: "{{ default "NodeGroup" .Values.global.workerType }}"
spec:
containers:
Expand All @@ -34,7 +34,7 @@ spec:
- configMapRef:
name: kafka-config
- configMapRef:
name: "{{ .Values.component }}"
name: "{{ .Values.name }}"
env:
- name: jwtSecret
valueFrom:
Expand Down
Loading

0 comments on commit b18ee48

Please sign in to comment.