Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Logstash crashes with env (#7475)
Fixed: #7450 Logstash crashes when env variable name is in the list of [env2yaml](https://github.com/elastic/logstash/blob/main/docker/data/logstash/env2yaml/env2yaml.go#L50-L155) This PR changes the config init container to copy the `logstash.yml` to `config` Volume to allow updating the file. The following resource should start without error ```yaml apiVersion: logstash.k8s.elastic.co/v1alpha1 kind: Logstash metadata: name: logstash-sample spec: count: 1 version: 8.11.1 podTemplate: spec: containers: - name: logstash env: - name: "NODE_NAME" value: "No_Crash!" ```
- Loading branch information