mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-08 06:08:04 -05:00
60bf770e62
* refactor `debugd` file structure * create `hack`-tool to deploy logcollection to non-debug clusters * integrate changes into CI * update fields * update workflow input names * use `working-directory` * add opensearch creds to upgrade workflow * make template func generic * make templating func generic * linebreaks * remove magic defaults * move `os.Exit` to main package * make logging index configurable * make templating generic * remove excess brace * update fields * copy fields * fix flag name * fix linter warnings Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> * remove unused workflow inputs * remove makefiles * fix command * bazel: fix output paths of container This fixes the output paths of builds within the container by mounting directories to paths that exist on the host. We also explicitly set the output path in a .bazelrc to the user specific path. The rc file is mounted into the container and overrides the host rc. Also adding automatic stop in case start is called and a containers is already running. Sym links like bazel-out and paths bazel outputs should generally work with this change. Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> * tabs -> spaces --------- Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
74 lines
2.4 KiB
YAML
74 lines
2.4 KiB
YAML
name: Log Collection Deployment
|
|
description: Deploy log collection functionality to the cluster.
|
|
|
|
inputs:
|
|
logstash-port:
|
|
description: "The port of the logstash service."
|
|
default: "5045"
|
|
kubeconfig:
|
|
description: "The kubeconfig of the cluster to deploy to."
|
|
required: true
|
|
opensearchUser:
|
|
description: "The username of the opensearch cluster."
|
|
required: true
|
|
opensearchPwd:
|
|
description: "The password of the opensearch cluster."
|
|
required: true
|
|
test:
|
|
description: "The e2e test payload."
|
|
required: true
|
|
provider:
|
|
description: "The CSP of the cluster."
|
|
required: true
|
|
isDebugImage:
|
|
description: "Whether the cluster is a debug cluster / uses a debug image."
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Template Logcollection Helm Values
|
|
id: template
|
|
shell: bash
|
|
run: |
|
|
bazel run //hack/logcollector template -- \
|
|
--dir $(realpath .) \
|
|
--username ${{ inputs.opensearchUser }} \
|
|
--password ${{ inputs.opensearchPwd }} \
|
|
--port ${{ inputs.logstash-port }} \
|
|
--fields github.actor="${{ github.triggering_actor }}" \
|
|
--fields github.workflow="${{ github.workflow }}" \
|
|
--fields github.run-id="${{ github.run_id }}" \
|
|
--fields github.run-attempt="${{ github.run_attempt }}" \
|
|
--fields github.ref-name="${{ github.ref_name }}" \
|
|
--fields github.sha="${{ github.sha }}" \
|
|
--fields github.runner-os="${{ runner.os }}" \
|
|
--fields github.e2e-test-payload="${{ inputs.test }}" \
|
|
--fields github.isDebugImage="${{ inputs.isDebugImage }}" \
|
|
--fields github.e2e-test-provider="${{ inputs.provider }}" \
|
|
--fields deployment-type="k8s"
|
|
|
|
- name: Deploy Logstash
|
|
id: deploy-logstash
|
|
shell: bash
|
|
working-directory: ./logstash
|
|
env:
|
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
|
run: |
|
|
helm repo add elastic https://helm.elastic.co
|
|
helm repo update
|
|
helm install logstash elastic/logstash \
|
|
--wait --timeout=1200s --values values.yml
|
|
|
|
- name: Deploy Filebeat
|
|
id: deploy-filebeat
|
|
shell: bash
|
|
working-directory: ./filebeat
|
|
env:
|
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
|
run: |
|
|
helm repo add elastic https://helm.elastic.co
|
|
helm repo update
|
|
helm install filebeat elastic/filebeat \
|
|
--wait --timeout=1200s --values values.yml
|