Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure flag doesn't work with consumer credentials #145

Open
eamonnmcevoy opened this issue Aug 27, 2018 · 1 comment
Open

ensure flag doesn't work with consumer credentials #145

eamonnmcevoy opened this issue Aug 27, 2018 · 1 comment

Comments

@eamonnmcevoy
Copy link

In my kongifg file I have a test consumer with basic auth credentials, when I run kongfig (after the initial run) I get an error:

409 Conflict { username: 'already exists with value \'myuser\'' }

Error: Conflict
{"username":"already exists with value 'myuser'"}

 Error: Conflict
{"username":"already exists with value 'myuser'"}

    at /usr/local/lib/node_modules/kongfig/lib/core.js:346:45
    at run (/usr/local/lib/node_modules/kongfig/node_modules/core-js/modules/es6.promise.js:75:22)
    at /usr/local/lib/node_modules/kongfig/node_modules/core-js/modules/es6.promise.js:92:30
    at flush (/usr/local/lib/node_modules/kongfig/node_modules/core-js/modules/_microtask.js:18:9)
    at process._tickCallback (internal/process/next_tick.js:61:11)

I tried using the ensure flag for this but it didn't help

   consumers: 
      - username: my-user
        ensure: "present"
        credentials:
          - name: basic-auth
            ensure: "present"
            attributes:
              username: my-username
              password: password

Is there a way to ensure this consumer will be present in kong

@albertux
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants