GithubHelp home page GithubHelp logo

Comments (3)

jordansissel avatar jordansissel commented on July 20, 2024

Thinking about how to solve this, I'm not exactly sure, but maybe we can reuse the secrets/settings given to elasticsearch nodes? That is, if security is enabled, use the ELASTIC_USERNAME and ELASTIC_PASSWORD for auth, and the elastic-certificates-pem for SSL?

from helm-charts.

Crazybus avatar Crazybus commented on July 20, 2024

Thinking about how to solve this, I'm not exactly sure, but maybe we can reuse the secrets/settings given to elasticsearch nodes? That is, if security is enabled, use the ELASTIC_USERNAME and ELASTIC_PASSWORD for auth, and the elastic-certificates-pem for SSL?

Yup! The helm test manifest is defined in test/test-elasticsearch-health.yaml. What would need to be done is to add in all of the extraEnvs and secretMounts logic into the test container so that any secrets/environment variables/certificates are also available in the test container for the curl check to work.

However the more important issue is that the current helm test doesn't do anything more than the current readinessProbe is doing. Ideally I would rather add some serverspec like tests with goss (think serverspec but written in go and uses yaml to configure the tests). So instead of spawning a new separate pod we would be running tests against the actual running container itself. This would also make it a lot easier to have separate tests for each example configuration too and means we can test important container level things like vm.max_map_count being set properly.

from helm-charts.

jordansissel avatar jordansissel commented on July 20, 2024

@Crazybus +1 everything you said. I'm content to close this as a known-issue that is intended to be fixed in the context of your comment.

from helm-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.