Skip to content

Commit

Permalink
Merge pull request #643 from uselagoon/fix-lagoon-logging-test
Browse files Browse the repository at this point in the history
fix lagoon logging test
  • Loading branch information
tobybellwood authored Feb 22, 2024
2 parents 1e57969 + fda8f28 commit b45b6fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
7 changes: 4 additions & 3 deletions charts/lagoon-logging/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type: application
# time you make changes to the chart and its templates, including the app
# version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.81.0
version: 0.81.1

dependencies:
- name: logging-operator
Expand All @@ -31,6 +31,7 @@ dependencies:
# It should be started afresh for each release
# Valid supported kinds are added, changed, deprecated, removed, fixed and security
annotations:
artifacthub.io/containsSecurityUpdates: "true"
artifacthub.io/changes: |
- kind: added
description: support for annotations on the CDN service
- kind: security
description: avoid test role and rolebinding being wrongly installed
10 changes: 10 additions & 0 deletions charts/lagoon-logging/templates/tests/cdn-service-annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: service-reader
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-2"
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["services"]
Expand All @@ -12,6 +16,10 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: read-services
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-1"
subjects:
- kind: Group
name: system:serviceaccounts # all serviceaccounts
Expand All @@ -29,6 +37,8 @@ metadata:
{{- include "lagoon-logging.logsDispatcher.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "0"
spec:
containers:
- name: kubectl
Expand Down
1 change: 1 addition & 0 deletions charts/lagoon-logging/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
{{- include "lagoon-logging.logsDispatcher.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
containers:
- name: nc
Expand Down

0 comments on commit b45b6fd

Please sign in to comment.