Giter Club home page Giter Club logo

Comments (7)

nieomylnieja avatar nieomylnieja commented on May 23, 2024 1

I checked, and we've got a bug there, which breaks this workflow, I'll be fixing this and let you know once the new version is published.
For a temporary fix, if you don't want to operate on the config.toml file you can create a dummy config.toml with the following contents:

[Contexts]
  [Contexts.default]

from sloctl.

nieomylnieja avatar nieomylnieja commented on May 23, 2024

hey @heshamelsherif97 :) First of all, why are you running sloctl from root user? Are you sure the envs you exported are available in the root namespace?

from sloctl.

heshamelsherif97 avatar heshamelsherif97 commented on May 23, 2024

@nieomylnieja
Using docker as well reproduces the issue on my side running

docker run -e SLOCTL_CLIENT_ID="xxxxx" -e SLOCTL_CLIENT_SECRET="xxxx"  nobl9/sloctl:latest get slos

results

No context was set in the current configuration file.
At least one context must be provided and set as default in the current configuration file.
Run 'sloctl config add-context' or indicate the path to the file using '--config' flag.
Sloctl also accepts configuration via environmental variables, set 'SLOCTL_CLIENT_ID' and 'SLOCTL_CLIENT_SECRET'.
Visit sloctl documentation for more details: https://docs.nobl9.com/sloctl-user-guide.

Error: context "default" is not present in the config file /.config/nobl9/config.toml

from sloctl.

nieomylnieja avatar nieomylnieja commented on May 23, 2024

@heshamelsherif97 the new version which should fix the issues you've encountered is here: https://github.com/nobl9/sloctl/releases/tag/v0.0.88 :)
For now you have to slightly modify the command to make it work on no config file setup:

docker run -e SLOCTL_CLIENT_ID="xxxxx" -e SLOCTL_CLIENT_SECRET="xxxx"  nobl9/sloctl:latest get slos --no-config-file

I'll update the example in this repo too.

from sloctl.

nieomylnieja avatar nieomylnieja commented on May 23, 2024

Appendix: the v0.0.89 version completely fixes the issue, you can run the example command without problems now. Let me know If this solves your issues!

from sloctl.

heshamelsherif97 avatar heshamelsherif97 commented on May 23, 2024

Thanks a lot @nieomylnieja Works now

from sloctl.

nieomylnieja avatar nieomylnieja commented on May 23, 2024

glad to hear that and sorry for the inconvenience!

from sloctl.

Related Issues (4)

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.