UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • big-bang/product/packages/gitlab
  • michaelmcleroy/gitlab
  • ryan.j.garcia/gitlab
  • olelink/gitlab
  • trkdashin/gitlab-qp-renovate
  • 90-cos/iac/gitlab-bb-upstream
6 results
Show changes
Commits on Source (2)
......@@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
---
## [8.2.9-bb.1] (2024-10-15)
### Added
- Added customScripts functionality to toolbox container
## [8.2.9-bb.0] (2024-10-02)
### Changed
......@@ -24,7 +30,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- update registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-workhorse 17.2.8 -> 17.2.9
- update registry1.dso.mil/ironbank/gitlab/gitlab/kubectl 17.2.8 -> 17.2.9
## [8.2.8-bb.1] (2024-10-02)
### Changed
......
<!-- Warning: Do not manually edit this file. See notes on gluon + helm-docs at the end of this file for more information. -->
# gitlab
![Version: 8.2.9-bb.0](https://img.shields.io/badge/Version-8.2.9--bb.0-informational?style=flat-square) ![AppVersion: v17.2.9](https://img.shields.io/badge/AppVersion-v17.2.9-informational?style=flat-square)
![Version: 8.2.9-bb.1](https://img.shields.io/badge/Version-8.2.9--bb.1-informational?style=flat-square) ![AppVersion: v17.2.9](https://img.shields.io/badge/AppVersion-v17.2.9-informational?style=flat-square)
GitLab is the most comprehensive AI-powered DevSecOps Platform.
......@@ -851,6 +851,7 @@ helm install gitlab chart/
| gitlab.toolbox.containerSecurityContext.runAsUser | int | `1000` | |
| gitlab.toolbox.containerSecurityContext.runAsGroup | int | `1000` | |
| gitlab.toolbox.containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
| gitlab.toolbox.customScripts | string | `nil` | |
| gitlab.gitlab-exporter.enabled | bool | `false` | |
| gitlab.gitlab-exporter.init.resources.limits.cpu | string | `"200m"` | |
| gitlab.gitlab-exporter.init.resources.limits.memory | string | `"200Mi"` | |
......
---
apiVersion: v1
name: gitlab
version: 8.2.9-bb.0
version: 8.2.9-bb.1
appVersion: v17.2.9
description: GitLab is the most comprehensive AI-powered DevSecOps Platform.
keywords:
......
{{- if .Values.enabled -}}
{{- if .Values.customScripts -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "fullname" . }}-custom-scripts
namespace: {{ $.Release.Namespace }}
labels:
{{- include "gitlab.standardLabels" . | nindent 4 }}
{{- include "gitlab.commonLabels" . | nindent 4 }}
data:
{{- range $key, $value := .Values.customScripts }}
{{ $key }}: |
{{ $value }}
{{- end }}
{{- end }}
{{- end }}
......@@ -162,6 +162,11 @@ spec:
mountPath: /home/git/gitlab
readOnly: true
{{- end }}
{{- if .Values.customScripts }}
- name: {{ template "fullname" . }}-custom-scripts
mountPath: /scripts/custom
readOnly: true
{{- end }}
{{- include "gitlab.certificates.volumeMount" . | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
......@@ -259,4 +264,11 @@ spec:
medium: "Memory"
{{- include "gitlab.certificates.volumes" . | nindent 6 }}
{{- include "gitlab.nodeSelector" . | nindent 6 }}
{{- if .Values.customScripts }}
- name: {{ template "fullname" . }}-custom-scripts
projected:
sources:
- configMap:
name: {{ template "fullname" . }}-custom-scripts
{{- end }}
{{- end }}
......@@ -1627,6 +1627,11 @@ gitlab:
capabilities:
drop:
- ALL
customScripts:
# this will be mounted into the toolbox container at `/scripts/custom/testing.rb`
# execute it in the toolbox with `gitlab-rails runner /scripts/custom/testing.rb`
#testing.rb: |
# puts "testing"
gitlab-exporter:
enabled: false
......
......@@ -248,6 +248,53 @@ If that is not present it will use the global chart serviceAccount automountServ
## chart/templates/tests/*
- Add templates for CI helm tests.
## chart/charts/gitlab/charts/toolbox/templates/configmap-custom-scripts.yaml
- Added custom configmap to mount ruby scripts to toolbox
```yaml
{{- if .Values.enabled -}}
{{- if .Values.customScripts -}}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "fullname" . }}-custom-scripts
namespace: {{ $.Release.Namespace }}
labels:
{{- include "gitlab.standardLabels" . | nindent 4 }}
{{- include "gitlab.commonLabels" . | nindent 4 }}
data:
{{- range $key, $value := .Values.customScripts }}
{{ $key }}: |
{{ $value }}
{{- end }}
{{- end }}
{{- end }}
```
## chart/charts/gitlab/charts/toolbox/templates/deployment.yaml
- Added volumeMount and volume for custom ruby script configmap
volumeMounts:
```yaml
...
{{- if .Values.customScripts }}
- name: {{ template "fullname" . }}-custom-scripts
mountPath: /scripts/custom
readOnly: true
{{- end }}
...
```
volumes:
```yaml
...
{{- if .Values.customScripts }}
- name: {{ template "fullname" . }}-custom-scripts
projected:
sources:
- configMap:
name: {{ template "fullname" . }}-custom-scripts
{{- end }}
```
## chart/charts/gitlab/charts/toolbox/templates/backup-job.yaml
- Added istio shutdown to command on lines 85 and 87.
```yaml
......@@ -326,7 +373,7 @@ If that is not present it will use the global chart serviceAccount automountServ
- Add `minio.jobAnnotations`: sidecar.istio.io/inject: "false".
- Add `gitlab.toolbox.annotations`: `sidecar.istio.io/proxyMemory: 512Mi` and `sidecar.istio.io/proxyMemoryLimit: 512Mi`.
- Change default value for `global.ingress.configureCertmanager` to `false`
- Add `gitlab.toolbox.customScripts` with example `testing.rb` script for custom ruby scripts in toolbox.
# chart/Chart.yaml
- Change version key to Big Bang composite version.
......