Skip to content

Commit

Permalink
shortlink-common: fix work with env
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor@evrone.com>
  • Loading branch information
batazor committed Mar 18, 2023
1 parent 33266e5 commit 9f87c6f
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 25 deletions.
2 changes: 1 addition & 1 deletion ops/Helm/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/draft/chaos/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/draft/rook-ceph/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../../../shortlink-common"
- name: rook-ceph
version: v1.11.1
Expand Down
2 changes: 1 addition & 1 deletion ops/Helm/draft/teleport/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ dependencies:
- idp
- teleport
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-bot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ type: application # It is the type of ch
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2 # The chart API version (requir
appVersion: "1.0.0" # The version of the app that this contains (optional)
name: shortlink-common # The name of the chart (required)
description: Shortlink common templates # A single-sentence description of this project (optional)
version: 0.4.2 # A SemVer 2 version (required)
version: 0.4.3 # A SemVer 2 version (required)
kubeVersion: ">= 1.22.0 || >= v1.22.0-0" # A SemVer range of compatible Kubernetes versions (optional)
keywords:
- shortlink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
{{- define "shortlink-common.env" }}
env:
{{- range $key, $value := .env }}
{{- if and (eq $key "MQ_TYPE") (eq $value "true") }}
{{- if eq $value "rabbitmq" }}
{{- include "shortlink-common.env-rabbitmq" . | nindent 4 }}
{{- end }}
{{- end }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end -}}
{{- if and (eq .env.MQ_ENABLED true) (eq .env.MQ_TYPE "rabbitmq") }}
{{- include "shortlink-common.env-rabbitmq" .env | nindent 4 }}
{{- end }}
{{- end }}

{{- define "shortlink-common.env-rabbitmq" }}
Expand Down
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-landing/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
6 changes: 3 additions & 3 deletions ops/Helm/shortlink-link/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: shortlink-common
repository: file://../shortlink-common
version: 0.4.2
digest: sha256:5798b3b0fb9090214e76615e46864aa610bf78991949157c165cd277b0f58eef
generated: "2023-03-18T19:19:41.550716+01:00"
version: 0.4.3
digest: sha256:bb7490c9365b7641b849d32ae7a4438812ce2dfe2e15b2195535ab3644d8aeba
generated: "2023-03-18T21:58:23.108382+01:00"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-link/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-logger/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-metadata/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ type: application # It is the type of ch
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-next/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-notify/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ type: application # It is the type of ch
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/shortlink-workflows/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
2 changes: 1 addition & 1 deletion ops/Helm/ui-kit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: shortlink-common
version: 0.4.2
version: 0.4.3
repository: "file://../shortlink-common"
1 change: 1 addition & 0 deletions ops/gitlab/pipelines/test/secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ stages:
# List of the variables: https://gitlab.com/gitlab-org/security-products/secret_detection#available-variables
# How to set: https://docs.gitlab.com/ee/ci/yaml/#variables
secret_detection:
stage: test
needs: []
artifacts:
paths:
Expand Down
2 changes: 1 addition & 1 deletion ops/gitlab/stages/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DEPENDENCY:
stage: test
trigger:
include:
- local: 'ops/gitlab/pipelines/test/dependency.yml'
- local: 'ops/gitlab/pipelines/test/security.yml'
strategy: depend
needs: []
rules:
Expand Down

0 comments on commit 9f87c6f

Please sign in to comment.