-
-
Notifications
You must be signed in to change notification settings - Fork 161
Implement glab context #402
Comments
I'm a bit tight at the moment. I will look at it later today so we look into it and see what to do |
/cc @maxice8 |
I don't have enough experience dealing with |
@solidnerd thanks for your suggestion. Currently, this is the config format: # global and host-independent configs here
...
...
# host related configs here
hosts:
# gitlab.com is the default host
gitlab.com:
# What protocol to use to access the api endpoint. Supported values: http, https
api_protocol: https
# Your GitLab access token. Get an access token at https://gitlab.com/profile/personal_access_tokens
token: *****
git_protocol: ssh
db.org:
api_protocol: http
token: *****
git_protocol: ssh
gitlab.alpinelinux.org:
api_protocol: https
token: *****
git_protocol: https which is not very far from the The configuration is used based on the host that The limitation here is, the user isn't allowed to specify/choose/use a different host config for another host (this is where the Implementing the context may take time because we'll be redefining the configuration format. It is a breaking change (or we would have to consider auto-migration at 'a first run' as we did for #170 but this would require translating the old format to the new format). I would consider implementing glab context as a Any suggestion on how best we can implement this? |
Hey @maxice8 & @profclems, I would agree that it takes time, and we need to evaluate how it works for our use cases and others. I propose doing it in the Feature Flag to test it and all the flows we need from our perspective or what happens during the test phase. I have no experience in writing a configuration mgmt on a context-based approach. But I would like to involve myself here, but I can't say how much time I have for researching and building a POC for an estimation from the commitment point. 1 for work and 1 for personal things. Let's see that we handle it over the next weeks and see how far we got there. |
I have put this request on hold for now till we come up with a proper way of implementing this. It's a nice feature and I believe it will make |
@profclems It's mostly specifying a base URL for your glab or we could have a similar feature like
docker context
orkubectl context
where you can specify in which config context you are currently.Default would be gitlab.com but as a user, I could define my own context for alpine as an example:
Here is something that comes to my mind.
Originally posted by @solidnerd in #383 (comment)
The text was updated successfully, but these errors were encountered: