Skip to content

Commit

Permalink
fix: introduce missing Role into keptn-cert-manager helm charts (kept…
Browse files Browse the repository at this point in the history
…n#3435)

Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT authored Apr 19, 2024
1 parent fbc586b commit 16afdaa
Show file tree
Hide file tree
Showing 13 changed files with 465 additions and 45 deletions.
47 changes: 46 additions & 1 deletion .github/scripts/.helm-tests/certificates-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,51 @@ subjects:
name: 'certificate-operator'
namespace: 'helmtests'
---
# Source: keptn/charts/certManager/templates/certificate-operator-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: certificate-operator-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: cert-manager
app.kubernetes.io/version: v2.1.1
helm.sh/chart: cert-manager-0.2.3
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
---
# Source: keptn/charts/certManager/templates/certificate-operator-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -140,7 +185,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'leader-election-role'
name: 'certificate-operator-leader-election-role'
subjects:
- kind: ServiceAccount
name: 'certificate-operator'
Expand Down
82 changes: 74 additions & 8 deletions .github/scripts/.helm-tests/default/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14719,6 +14719,51 @@ subjects:
name: 'metrics-operator'
namespace: 'helmtests'
---
# Source: keptn/charts/certManager/templates/certificate-operator-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: certificate-operator-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: cert-manager
app.kubernetes.io/version: v2.1.1
helm.sh/chart: cert-manager-0.2.3
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
---
# Source: keptn/charts/certManager/templates/certificate-operator-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -14751,16 +14796,13 @@ rules:
- patch
- update
---
# Source: keptn/charts/lifecycleOperator/templates/leader-election-rbac.yaml
# Source: keptn/charts/lifecycleOperator/templates/lifecycle-operator-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: leader-election-role
name: lifecycle-operator-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: certificate-operator
app.kubernetes.io/part-of: keptn
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
Expand Down Expand Up @@ -14799,13 +14841,16 @@ rules:
- create
- patch
---
# Source: keptn/charts/lifecycleOperator/templates/lifecycle-operator-leader-election-rbac.yaml
# Source: keptn/charts/lifecycleOperator/templates/scheduler-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: lifecycle-operator-leader-election-role
name: keptn-scheduler-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: scheduler
app.kubernetes.io/part-of: keptn
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
Expand Down Expand Up @@ -14907,7 +14952,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'leader-election-role'
name: 'certificate-operator-leader-election-role'
subjects:
- kind: ServiceAccount
name: 'certificate-operator'
Expand Down Expand Up @@ -15000,6 +15045,27 @@ subjects:
name: 'lifecycle-operator'
namespace: 'helmtests'
---
# Source: keptn/charts/lifecycleOperator/templates/scheduler-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: keptn-scheduler-leader-election-rolebinding
namespace: "helmtests"
labels:
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
app.kubernetes.io/version: v0.9.2
helm.sh/chart: lifecycle-operator-0.2.3
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'keptn-scheduler-leader-election-role'
subjects:
- kind: ServiceAccount
name: 'keptn-scheduler'
namespace: 'helmtests'
---
# Source: keptn/charts/metricsOperator/templates/metrics-operator-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
35 changes: 28 additions & 7 deletions .github/scripts/.helm-tests/lifecycle-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11637,16 +11637,13 @@ subjects:
name: 'lifecycle-operator'
namespace: 'helmtests'
---
# Source: keptn/charts/lifecycleOperator/templates/leader-election-rbac.yaml
# Source: keptn/charts/lifecycleOperator/templates/lifecycle-operator-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: leader-election-role
name: lifecycle-operator-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: certificate-operator
app.kubernetes.io/part-of: keptn
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
Expand Down Expand Up @@ -11685,13 +11682,16 @@ rules:
- create
- patch
---
# Source: keptn/charts/lifecycleOperator/templates/lifecycle-operator-leader-election-rbac.yaml
# Source: keptn/charts/lifecycleOperator/templates/scheduler-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: lifecycle-operator-leader-election-role
name: keptn-scheduler-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: scheduler
app.kubernetes.io/part-of: keptn
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
Expand Down Expand Up @@ -11793,6 +11793,27 @@ subjects:
name: 'lifecycle-operator'
namespace: 'helmtests'
---
# Source: keptn/charts/lifecycleOperator/templates/scheduler-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: keptn-scheduler-leader-election-rolebinding
namespace: "helmtests"
labels:
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
app.kubernetes.io/version: v0.9.2
helm.sh/chart: lifecycle-operator-0.2.3
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'keptn-scheduler-leader-election-role'
subjects:
- kind: ServiceAccount
name: 'keptn-scheduler'
namespace: 'helmtests'
---
# Source: keptn/charts/lifecycleOperator/templates/lifecycle-operator-metrics-service.yaml
apiVersion: v1
kind: Service
Expand Down
82 changes: 74 additions & 8 deletions .github/scripts/.helm-tests/lifecycle-with-certs/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11728,6 +11728,51 @@ subjects:
name: 'lifecycle-operator'
namespace: 'helmtests'
---
# Source: keptn/charts/certManager/templates/certificate-operator-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: certificate-operator-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: cert-manager
app.kubernetes.io/version: v2.1.1
helm.sh/chart: cert-manager-0.2.3
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
---
# Source: keptn/charts/certManager/templates/certificate-operator-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -11760,16 +11805,13 @@ rules:
- patch
- update
---
# Source: keptn/charts/lifecycleOperator/templates/leader-election-rbac.yaml
# Source: keptn/charts/lifecycleOperator/templates/lifecycle-operator-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: leader-election-role
name: lifecycle-operator-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: certificate-operator
app.kubernetes.io/part-of: keptn
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
Expand Down Expand Up @@ -11808,13 +11850,16 @@ rules:
- create
- patch
---
# Source: keptn/charts/lifecycleOperator/templates/lifecycle-operator-leader-election-rbac.yaml
# Source: keptn/charts/lifecycleOperator/templates/scheduler-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: lifecycle-operator-leader-election-role
name: keptn-scheduler-leader-election-role
namespace: "helmtests"
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: scheduler
app.kubernetes.io/part-of: keptn
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
Expand Down Expand Up @@ -11871,7 +11916,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'leader-election-role'
name: 'certificate-operator-leader-election-role'
subjects:
- kind: ServiceAccount
name: 'certificate-operator'
Expand Down Expand Up @@ -11964,6 +12009,27 @@ subjects:
name: 'lifecycle-operator'
namespace: 'helmtests'
---
# Source: keptn/charts/lifecycleOperator/templates/scheduler-leader-election-rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: keptn-scheduler-leader-election-rolebinding
namespace: "helmtests"
labels:
app.kubernetes.io/instance: keptn-test
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: lifecycle-operator
app.kubernetes.io/version: v0.9.2
helm.sh/chart: lifecycle-operator-0.2.3
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: 'keptn-scheduler-leader-election-role'
subjects:
- kind: ServiceAccount
name: 'keptn-scheduler'
namespace: 'helmtests'
---
# Source: keptn/charts/lifecycleOperator/templates/lifecycle-operator-metrics-service.yaml
apiVersion: v1
kind: Service
Expand Down
Loading

0 comments on commit 16afdaa

Please sign in to comment.