Skip to content

Commit

Permalink
[resource-manager, preformance-monitor] db_ready checks are performed…
Browse files Browse the repository at this point in the history
… using custom utilities… (#408)
  • Loading branch information
smartin-elisapolystar authored Aug 15, 2024
1 parent 4538555 commit 1655a26
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 20 deletions.
8 changes: 4 additions & 4 deletions charts/performance-monitor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: performance-monitor
description: FRINX Performance Monitor chart for FRINX-machine
icon: https://avatars.githubusercontent.com/u/23452093?s=200&v=4
type: application
version: 0.1.4
version: 0.1.5
appVersion: "6.0.2"
dependencies:
- condition: postgresql.enabled
Expand All @@ -23,8 +23,8 @@ annotations:
- name: performance-monitor
image: frinx/performance-monitor:6.0.2
artifacthub.io/changes: |
- kind: changed
description: Inventory db_ready checks are performed using custom utilities image
- kind: fixed
description: performance-monitor db_ready checks are performed using custom utilities image
links:
- name: GitHub PR
url: https://github.com/FRINXio/helm-charts/pull/407
url: https://github.com/FRINXio/helm-charts/pull/408
2 changes: 1 addition & 1 deletion charts/performance-monitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

FRINX Performance Monitor chart for FRINX-machine

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

## Get Repo Info

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ spec:
- name: wget
image: "{{ .Values.utilitiesImage.repository }}:{{ .Values.utilitiesImage.tag }}"
imagePullPolicy: "{{ .Values.utilitiesImage.pullPolicy }}"
command: ['wget']
args: ['{{ include "performance-monitor.fullname" . }}:{{ .Values.service.port }}']
command: ["/bin/sh"]
args: ["-c", 'wget {{ include "performance-monitor.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
8 changes: 4 additions & 4 deletions charts/resource-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: resource-manager
description: A Helm chart for Kubernetes deploying of the Frinx Resource-Manager
icon: https://avatars.githubusercontent.com/u/23452093?s=200&v=4
type: application
version: 2.2.0
version: 2.2.1
appVersion: "6.1.0"
maintainers:
- name: FRINX
Expand All @@ -16,8 +16,8 @@ dependencies:
version: 14.x.x
annotations:
artifacthub.io/changes: |
- kind: added
description: Add metrics port for accessing metrics
- kind: changed
description: resource-manager db_ready checks are performed using custom utilities image
links:
- name: GitHub PR
url: https://github.com/FRINXio/helm-charts/pull/399
url: https://github.com/FRINXio/helm-charts/pull/408
14 changes: 7 additions & 7 deletions charts/resource-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for Kubernetes deploying of the Frinx Resource-Manager

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

## Get Repo Info

Expand All @@ -29,12 +29,6 @@ helm upgrade [RELEASE_NAME] frinx/resource-manager
helm uninstall [RELEASE_NAME]
```

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| FRINX | https://frinx.io | https://frinx.io |

## Requirements

| Repository | Name | Version |
Expand Down Expand Up @@ -82,3 +76,9 @@ helm uninstall [RELEASE_NAME]
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
| serviceAccount.name | string | `""` | The name of the service account to use If not set and create is true, a name is generated using the fullname template |
| tolerations | list | `[]` | [Tolerations for pod assignment](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) |
| utilitiesImage.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| utilitiesImage.repository | string | `"frinx/utilities-alpine"` | utilities image repository |
| utilitiesImage.tag | string | `"1.2"` | Overrides the image tag. |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
3 changes: 2 additions & 1 deletion charts/resource-manager/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ spec:
restartPolicy: Always
initContainers:
- name: check-db-ready
image: postgres:alpine
image: "{{ .Values.utilitiesImage.repository }}:{{ .Values.utilitiesImage.tag }}"
imagePullPolicy: "{{ .Values.utilitiesImage.pullPolicy }}"
env:
- name: POSTGRES_USERNAME
valueFrom:
Expand Down
3 changes: 2 additions & 1 deletion charts/resource-manager/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ metadata:
spec:
containers:
- name: wget
image: busybox
image: "{{ .Values.utilitiesImage.repository }}:{{ .Values.utilitiesImage.tag }}"
imagePullPolicy: "{{ .Values.utilitiesImage.pullPolicy }}"
command: ["/bin/sh"]
args: ["-c", 'wget {{ include "resource-manager.fullname" . }}:{{ .Values.service.port }}/healthz/readiness -P /tmp/']
restartPolicy: Never
8 changes: 8 additions & 0 deletions charts/resource-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ dbPersistence:
POSTGRES_USERNAME: postgresU
POSTGRES_PASSWORD: postgresP

utilitiesImage:
# -- utilities image repository
repository: frinx/utilities-alpine
# -- Overrides the image tag.
tag: "1.2"
# -- Image pull policy
pullPolicy: IfNotPresent

# -- Application environment variables
env:
RM_API_PORT: 8884
Expand Down

0 comments on commit 1655a26

Please sign in to comment.