Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

use same env variable as application #272

Merged
merged 2 commits into from
Sep 19, 2019
Merged

Conversation

rccrdpccl
Copy link
Contributor

@rccrdpccl rccrdpccl commented Sep 4, 2019

Signed-off-by: Riccardo Piccoli riccardo.piccoli@softonic.com

  • Chart version not bumped (the versions are all bumped and released at the same time)
  • README.md updated with any new values or changes
  • Updated template tests in ${CHART}/tests/*.py
  • Updated integration tests in ${CHART}/examples/*/test/goss.yaml

It appears that env vars used by kibana are ELASTICSEARCH_USERNAME and ELASTICSEARCH_PASSWORD, but readiness uses ELASTIC_USERNAME and ELASTIC_PASSWORD. This causes kibana to be unready, unless we also configure ELASTIC_ vars.

Signed-off-by: Riccardo Piccoli <riccardo.piccoli@softonic.com>
@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@rccrdpccl
Copy link
Contributor Author

jenkins test this please

Copy link
Contributor

@Crazybus Crazybus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

What I don't understand is how the security example is still passing even though it is configured to use ELASTICSEARCH_USERNAME

extraEnvs:
- name: 'ELASTICSEARCH_USERNAME'
valueFrom:
secretKeyRef:
name: elastic-credentials
key: username
- name: 'ELASTICSEARCH_PASSWORD'
valueFrom:
secretKeyRef:
name: elastic-credentials
key: password

@Crazybus
Copy link
Contributor

jenkins test this please

@Crazybus
Copy link
Contributor

jenkins test this please

Crazybus added a commit that referenced this pull request Sep 18, 2019
If authentication wasn't configured correctly the Kibana readinessProbe
would still pass since `curl --fail` doesn't consider a redirect to be a
failure. If authentication fails Kibana would redirect you back to the
login page so this readinessProbe always passed for security clusters.
The tests are going to fail until #272 is merged and this PR has been
rebased on top of it.
@Crazybus Crazybus merged commit 09501fe into elastic:master Sep 19, 2019
Crazybus added a commit that referenced this pull request Sep 19, 2019
If authentication wasn't configured correctly the Kibana readinessProbe
would still pass since `curl --fail` doesn't consider a redirect to be a
failure. If authentication fails Kibana would redirect you back to the
login page so this readinessProbe always passed for security clusters.
The tests are going to fail until #272 is merged and this PR has been
rebased on top of it.
Crazybus added a commit that referenced this pull request Sep 19, 2019
If authentication wasn't configured correctly the Kibana readinessProbe
would still pass since `curl --fail` doesn't consider a redirect to be a
failure. If authentication fails Kibana would redirect you back to the
login page so this readinessProbe always passed for security clusters.
The tests are going to fail until #272 is merged and this PR has been
rebased on top of it.
Crazybus added a commit that referenced this pull request Sep 19, 2019
If authentication wasn't configured correctly the Kibana readinessProbe
would still pass since `curl --fail` doesn't consider a redirect to be a
failure. If authentication fails Kibana would redirect you back to the
login page so this readinessProbe always passed for security clusters.
The tests are going to fail until #272 is merged and this PR has been
rebased on top of it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants