Skip to content

Commit 583024e

Browse files
Merge pull request #89 from GabrielPalmar/test
Test
2 parents a408ef3 + bc98985 commit 583024e

7 files changed

Lines changed: 46 additions & 4 deletions

File tree

.github/workflows/kube-linter.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Kube-Linter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
linting:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Scan repo with kube-linter
22+
uses: stackrox/kube-linter-action@v1.0.4
23+
with:
24+
directory: helm-chart

helm-chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: hivebox
33
description: A Helm chart for HiveBox application
44
type: application
55
version: 0.1.0
6-
appVersion: "0.7.0"
6+
appVersion: "0.7.1"

helm-chart/templates/cronjob.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
sleep 5
3131
fi
3232
done
33+
securityContext:
34+
{{- include "common.containerSecurityContext" . | nindent 16 }}
35+
resources:
36+
{{- include "common.resources" (dict "Values" .Values "name" "cronjob") | nindent 16 }}
3337
containers:
3438
- name: temperature-storage
3539
image: {{ .Values.images.cronjob }}

helm-chart/templates/deployment.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ spec:
1414
labels:
1515
app: hivebox
1616
spec:
17+
{{- if gt (int .Values.replicas.hivebox) 1 }}
18+
affinity:
19+
podAntiAffinity:
20+
preferredDuringSchedulingIgnoredDuringExecution:
21+
- weight: 100
22+
podAffinityTerm:
23+
labelSelector:
24+
matchExpressions:
25+
- key: app
26+
operator: In
27+
values:
28+
- hivebox
29+
topologyKey: kubernetes.io/hostname
30+
{{- end }}
1731
securityContext:
1832
{{- include "common.podSecurityContext" . | nindent 8 }}
1933
containers:

kustomize/base/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
runAsGroup: 1000
2222
containers:
2323
- name: hivebox
24-
image: ghcr.io/gabrielpalmar/hivebox:latest@sha256:c731999c3fd9b757e2fd816e3c9dcf645dba56647d8a921cb567ece3cf378dc3
24+
image: ghcr.io/gabrielpalmar/hivebox:0.7.1@sha256:c731999c6fac6f2f17f746aea7fafe073cf608c49729eb1e189ecf3551c62646
2525
ports:
2626
- containerPort: 5000
2727
env:

kustomize/overlays/prod/deployment-patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
spec:
99
containers:
1010
- name: hivebox
11-
image: ghcr.io/gabrielpalmar/hivebox:0.7.0
11+
image: ghcr.io/gabrielpalmar/hivebox:0.7.1@sha256:c731999c6fac6f2f17f746aea7fafe073cf608c49729eb1e189ecf3551c62646

kustomize/overlays/staging/deployment-patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec:
88
spec:
99
containers:
1010
- name: hivebox
11-
image: ghcr.io/gabrielpalmar/hivebox:0.7.0@sha256:c731999c3fd9b757e2fd816e3c9dcf645dba56647d8a921cb567ece3cf378dc3
11+
image: ghcr.io/gabrielpalmar/hivebox:0.7.1@sha256:c731999c6fac6f2f17f746aea7fafe073cf608c49729eb1e189ecf3551c62646

0 commit comments

Comments
 (0)