0f2a8a2a8c
CI / call-engine (push) Failing after 2m26s
- ci-engine.yml: 2 dummy test stepiä + agnostinen publish-stage (skannaa .meta-tiedostot, PATCH raportit, postaa status + linkki) - publish-git-pages.sh: palauta BASE URL (ilman index.html) - .meta-formaatti: lisää context, description, state kentät
38 lines
1003 B
YAML
38 lines
1003 B
YAML
{{- if and .Values.persistence.enabled .Values.retention.enabled (eq .Values.retention.mode "cronjob") }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: git-pages-retention
|
|
labels:
|
|
{{- include "git-pages.componentLabels" . | nindent 4 }}
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: git-pages-retention
|
|
labels:
|
|
{{- include "git-pages.componentLabels" . | nindent 4 }}
|
|
rules:
|
|
- apiGroups: ["apps"]
|
|
resources: ["deployments", "deployments/scale"]
|
|
verbs: ["get", "patch", "update"]
|
|
- apiGroups: [""]
|
|
resources: ["pods"]
|
|
verbs: ["get", "list", "watch", "delete"]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: git-pages-retention
|
|
labels:
|
|
{{- include "git-pages.componentLabels" . | nindent 4 }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: git-pages-retention
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: git-pages-retention
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|