Skip to content

Commit

Permalink
feat: Support extra kubernetes manifests (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
fboula authored May 26, 2023
1 parent f789dae commit 77f2a2f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ jobs:
certManager:
enabled: ${{ matrix.enableCertManager }}
generateCA: true
extraObjects:
- apiVersion: keda.sh/v1alpha1
kind: ClusterTriggerAuthentication
metadata:
name: aws-credentials
namespace: keda
annotations:
helm.sh/hook: post-install
spec:
podIdentity:
provider: aws-eks
EOF
- name: Install deps
Expand Down
2 changes: 1 addition & 1 deletion keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ their default values.
| `certificates.certManager.generateCA` | Generates a self-signed CA with Cert-manager | `true` |
| `certificates.certManager.caSecretName` | Secret name where the CA is stored (generatedby cert-manager or user given) | `kedaorg-ca` |
| `certificates.certManager.secretTemplate` | [Labels or annotations to add to the secret generated](https://cert-manager.io/docs/usage/certificate/#creating-certificate-resources) by cert-manager | `{}` |

| `extraObjects` | Array of extra K8s manifests to deploy | `[]`|

Specify each parameter using the `--set key=value[,key=value]` argument to
`helm install`. For example:
Expand Down
4 changes: 4 additions & 0 deletions keda/templates/99-extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraObjects }}
---
{{ tpl (toYaml .) $ }}
{{ end }}
11 changes: 11 additions & 0 deletions keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,14 @@ permissions:
operator:
restrict:
secret: false

# Array of extra K8s manifests to deploy
extraObjects: []
# - apiVersion: keda.sh/v1alpha1
# kind: ClusterTriggerAuthentication
# metadata:
# name: aws-credentials
# namespace: keda
# spec:
# podIdentity:
# provider: aws-eks

0 comments on commit 77f2a2f

Please sign in to comment.