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

konga node data and user data (via configmaps and mounts) #522

Merged
merged 1 commit into from
May 3, 2020

Conversation

andrevtg
Copy link
Contributor

@andrevtg andrevtg commented Jan 10, 2020

This PR allows using KONGA_SEED_KONG_NODE_DATA_SOURCE_FILE and KONGA_SEED_USER_DATA_SOURCE_FILE with the Helm Chart to seed an admin user and a kong admin endpoint by mounting such files with a configmap.

The configmap should provide content for konga_node.data and konga_user.data like in the example below (please notice that kong_admin_url is an "in-cluster" url):

data:
  konga_node.data: |-
    module.exports = [
        {
            "name": "kong-admin",
            "type": "key_auth",
            "kong_admin_url": "http://your-kong-admin:8444",
            "health_checks": false,
        }
    ]

  konga_user.data: |-
    module.exports = [
        {
            "username": "admin",
            "email": "admin@somewhere.com",
            "admin": true,
            "active" : true,
            "password": "somepassword"
        }
    ]

@pantsel pantsel changed the base branch from master to next May 3, 2020 13:38
@pantsel pantsel merged commit 055a564 into pantsel:next May 3, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants