Skip to content

Commit 643ad34

Browse files
authored
Merge pull request #378 from mintel/INFRA-37496-S3-MRAP
INFRA-37496:S3 MRAP - Secrets ARN: added outputscrets in helm charts
2 parents 70ee03f + 84920e1 commit 643ad34

File tree

14 files changed

+575
-15
lines changed

14 files changed

+575
-15
lines changed

.github/workflows/pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Set up Helm
18-
uses: azure/setup-helm@v3
18+
uses: Azure/setup-helm@v4.3.1
1919
with:
2020
version: v3.13.0
2121

@@ -24,7 +24,7 @@ jobs:
2424
git config user.name "$GITHUB_ACTOR"
2525
git config user.email "$GITHUB_ACTION@users.noreploy.github.com"
2626
27-
- uses: actions/setup-python@v5
27+
- uses: actions/setup-python@v6
2828
with:
2929
python-version: 3.13
3030

@@ -38,7 +38,7 @@ jobs:
3838
done
3939
4040
- name: Set up chart-testing
41-
uses: helm/chart-testing-action@v2.7.0
41+
uses: helm/chart-testing-action@v2.8.0
4242

4343
- name: List changed charts
4444
id: list-changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Set up Helm
18-
uses: azure/setup-helm@v3
18+
uses: Azure/setup-helm@v4.3.1
1919
with:
2020
version: v3.13.0
2121

@@ -24,7 +24,7 @@ jobs:
2424
git config user.name "$GITHUB_ACTOR"
2525
git config user.email "$GITHUB_ACTION@users.noreploy.github.com"
2626
27-
- uses: actions/setup-python@v5
27+
- uses: actions/setup-python@v6
2828
with:
2929
python-version: 3.13
3030

@@ -38,7 +38,7 @@ jobs:
3838
done
3939
4040
- name: Run chart-releaser
41-
uses: helm/chart-releaser-action@v1.6.0
41+
uses: helm/chart-releaser-action@v1.7.0
4242
env:
4343
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4444
with:

charts/standard-application-stack/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v11.2.0] - 2026-02-05
9+
### Added
10+
- Added support for consuming S3 Multi-Region Access Point (MRAP) secrets.
811

912
## [v11.1.0] - 2026-01-26
1013
### Changed

charts/standard-application-stack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 11.1.0
18+
version: 11.2.0
1919

2020
dependencies:
2121
- name: redis

charts/standard-application-stack/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# standard-application-stack
22

3-
![Version: 11.1.0](https://img.shields.io/badge/Version-11.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 11.2.0](https://img.shields.io/badge/Version-11.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
A generic chart to support most common application requirements
66

@@ -318,6 +318,8 @@ A generic chart to support most common application requirements
318318
| resources.requests | object | `{}` | The requested resources for the container |
319319
| s3.enabled | bool | `false` | |
320320
| s3.outputSecret | bool | `true` | set outputSecret to true to allow TF Cloud chart create ExternalSecrets |
321+
| s3MultiRegionAccessPoint.enabled | bool | `false` | |
322+
| s3MultiRegionAccessPoint.outputSecret | bool | `true` | set outputSecret to true to allow TF Cloud chart create ExternalSecrets |
321323
| securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"runAsUser":1000}` | Security context for the container ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
322324
| service | object | `{"annotations":{},"enabled":true,"labels":{},"type":"ClusterIP"}` | Kubernetes svc configutarion |
323325
| service.annotations | object | `{}` | Annotations to add to service |

charts/standard-application-stack/templates/_helpers.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,14 @@ Create a default s3 external secret name.
247247
{{- end }}
248248
{{- end -}}
249249

250+
{{/*
251+
Create a default S3 Multi Region Access Point external secret name.
252+
*/}}
253+
{{- define "mintel_common.defaultS3MultiRegionAccessPointSecretName" -}}
254+
{{- $fullname := include "mintel_common.fullname" . }}
255+
{{- printf "%s-s3-multi-region-access-point" $fullname }}
256+
{{- end -}}
257+
250258
{{/*
251259
Return the proper Docker Image Registry Secret Names
252260
*/}}

charts/standard-application-stack/templates/deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ spec:
252252
- secretRef:
253253
name: {{ .Values.s3.secretNameOverride | default (include "mintel_common.defaultS3SecretName" .) }}
254254
{{- end }}
255+
{{- if (and .Values.s3MultiRegionAccessPoint .Values.s3MultiRegionAccessPoint.enabled) }}
256+
- secretRef:
257+
name: {{ .Values.s3MultiRegionAccessPoint.secretNameOverride | default (include "mintel_common.defaultS3MultiRegionAccessPointSecretName" .) }}
258+
{{- end }}
255259
{{- if (and .Values.sqs .Values.sqs.enabled) }}
256260
- secretRef:
257261
name: {{ .Values.sqs.secretNameOverride | default (include "mintel_common.defaultSqsSecretName" .) }}
@@ -443,7 +447,7 @@ spec:
443447
volumeMounts:
444448
- mountPath: {{ .Values.gitSyncSidecar.root }}
445449
name: {{ include "mintel_common.fullname" . }}-git-sync
446-
{{- end }}
450+
{{- end }}
447451
{{- if or (and .Values.filebeatSidecar .Values.filebeatSidecar.enabled) (and .Values.gitSyncSidecar .Values.gitSyncSidecar.enabled) (.Values.volumes) }}
448452
volumes:
449453
{{- if not .Values.statefulset }}

0 commit comments

Comments
 (0)