Skip to content

Commit

Permalink
testing: add helm chart to help manual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoBraveCoding committed May 22, 2024
1 parent 5f62c0e commit cd21f2e
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hack/addon-install/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
description: A Helm chart to help testing the mcoa addon
name: addon-testing
version: 1.0.0
appVersion: "1.0.0"

dependencies:
- name: logging
repository: 'file://./charts/logging'
condition: logging.enabled
9 changes: 9 additions & 0 deletions hack/addon-install/templates/aws-secret-default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: aws-credentials-default
namespace: open-cluster-management
type: Opaque
data:
access_key_id: {{ .Values.awsCredentials.accessKeyID | b64enc }}
access_key_secret: {{ .Values.awsCredentials.accessKeySecret | b64enc }}
9 changes: 9 additions & 0 deletions hack/addon-install/templates/aws-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: aws-credentials
namespace: spoke
type: Opaque
data:
access_key_id: {{ .Values.awsCredentials.accessKeyID | b64enc }}
access_key_secret: {{ .Values.awsCredentials.accessKeySecret | b64enc }}
22 changes: 22 additions & 0 deletions hack/addon-install/templates/instance-default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: logging.openshift.io/v1
kind: ClusterLogForwarder
metadata:
name: instance-default
namespace: open-cluster-management
annotations:
authentication.mcoa.openshift.io/cw: ExistingSecret
spec:
outputs:
- cloudwatch:
region: eu-central-1
groupBy: logType
type: cloudwatch
name: cw
secret:
name: aws-credentials-default
pipelines:
- name: infra-cw
inputRefs:
- infrastructure
outputRefs:
- cw
22 changes: 22 additions & 0 deletions hack/addon-install/templates/instance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: logging.openshift.io/v1
kind: ClusterLogForwarder
metadata:
name: instance
namespace: open-cluster-management
annotations:
authentication.mcoa.openshift.io/cw: ExistingSecret
spec:
outputs:
- cloudwatch:
region: eu-central-1
groupBy: logType
type: cloudwatch
name: cw
secret:
name: aws-credentials
pipelines:
- name: infra-cw
inputRefs:
- infrastructure
outputRefs:
- cw
5 changes: 5 additions & 0 deletions hack/addon-install/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
spokeClusterName: spoke

awsCredentials:
accessKeyID: XXXXXXX
accessKeySecret: XXXXXX

0 comments on commit cd21f2e

Please sign in to comment.