Skip to content

Commit

Permalink
Merge pull request #453 from reportportal/develop
Browse files Browse the repository at this point in the history
Re-release 25.1.20
  • Loading branch information
hlebkanonik authored Jan 20, 2025
2 parents 3e2f7a3 + 957f6e8 commit 5f5a398
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ charts/
*.rej
*.tgz
tmp/
temp/
temp/
tmp*
6 changes: 3 additions & 3 deletions reportportal/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ app: {{ $.Chart.Name | quote }}
Create the name of the service account to use
*/}}
{{- define "reportportal.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default "reportportal" .Values.serviceAccount.name }}
{{- if .Values.global.serviceAccount.create -}}
{{ default "reportportal" .Values.global.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{ default "default" .Values.global.serviceAccount.name }}
{{- end -}}
{{- end -}}

Expand Down
2 changes: 1 addition & 1 deletion reportportal/templates/authorization/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.rbac.create .Values.serviceAccount.create }}
{{- if and .Values.rbac.create .Values.global.serviceAccount.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down
6 changes: 3 additions & 3 deletions reportportal/templates/authorization/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{{- if .Values.serviceAccount.create }}
{{- if .Values.global.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "reportportal.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- if .Values.serviceAccount.annotations }}
{{- if .Values.global.serviceAccount.annotations }}
annotations:
{{- range $key, $value := .Values.serviceAccount.annotations }}
{{- range $key, $value := .Values.global.serviceAccount.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
Expand Down
15 changes: 7 additions & 8 deletions reportportal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ global:
fullnameOverride: ""
security:
allowInsecureImages: true
serviceAccount:
create: true
name: reportportal
## @param serviceAccount.annotations For AWS IAM role association use the following annotations
## See: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
##
annotations: {}


## @param serviceindex Core ReportPortal service for the indexing
Expand Down Expand Up @@ -832,14 +839,6 @@ tolerations: []
# value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute"

serviceAccount:
create: true
name: reportportal
## @param serviceAccount.annotations For AWS IAM role association use the following annotations
## See: https://docs.aws.amazon.com/eks/latest/userguide/specify-service-account-role.html
##
annotations: {}

## Role Based Access
## ref: https://kubernetes.io/docs/admin/authorization/rbac/
##
Expand Down

0 comments on commit 5f5a398

Please sign in to comment.