Repository navigation
change openshiftconfig loading rules and files - #1698
Conversation
|
@deads2k I don't want to go into a discussion about the file locations since I guess it already happened upstream, but did you consider the idea below? I was really starting to like the idea of local and global file and directory names being the same. :) Also it would allow the local structure to contain stuff other than the config file (currently cert files for example). Apart that, really nice PR! Looking into it now. |
You should have seen @liggitt's eyes when I suggested that. I'll let him or @smarterclayton describe the reasons why not. I haven't had a negative experience with it, but they had concerns and I didn't feel strongly. I think it had to do with git. |
|
ಠ_ಠ |
|
@liggitt please can you reproduce the eyes on a video conference so I can see? :) |
|
Dear. Lord. |
|
Ok, ok, I'm convinced. |
|
Will this break existing users? |
If they were relying upon
I think number 1 is the best choice. It's a little painful now, but the rules are shallower and keeps our config compatible, but separate. |
|
Before we merge, we'll want to make sure that the upstream comments are complete. Brian had some concerns here: kubernetes/kubernetes#6680 (comment) |
|
----- Original Message -----
I think that's fine.
That's fine.
I don't think we need to do this.
|
There was a problem hiding this comment.
Missing local .openshiftconfig in this comment. What this code is doing is in fact:
// 1. --config value
// 2. Merge ./.openshiftconfig with:
// 2.1. OPENSHIFTCONFIG env var if it has a value,
// 2.2. otherwise, ~/.config/openshift/config file
38124c9 to
6c445ea
Compare
|
@fabianofranz rebased on the version committed into kube. Taking the second UPSTREAM patch upstream now. |
6c445ea to
a08bf99
Compare
|
LGTM |
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/1618/) (Image: devenv-fedora_1312) |
|
Evaluated for origin up to a08bf99 |
Merged by openshift-bot
…service-catalog/' changes from b69b4a6c80..b758460ba7 b758460ba7 origin build: modify hard coded path 871582f73a origin build: add origin tooling 9fa4e70 chart changes for v0.1.8 (openshift#1741) cada49c handle instance deletion that occurs during async provisioning or async update (openshift#1587) (openshift#1708) 3032f01 phony output binaries (openshift#1729) 0c98a72 remove last vestiges of glide (openshift#1696) 8435935 Prune vendor (openshift#1739) 0f657ec allow setting go version, clean up alignment 08af73f Disable test-dep target temporarily 41984a5 Check for existing bindings only for instances with DeprovisionStatus == ServiceInstanceDeprovisionStatusRequired. (openshift#1640) 706e555 chart changes for v0.1.7 (openshift#1721) 23644db we inconsistently rm thing with and without docker (openshift#1713) a38092d Chart changes for Release v0.1.6 (openshift#1718) 2fd4ecf Add PodPreset into settings api group (openshift#1694) bac68f4 update docs of developer's guide (openshift#1716) 3200b16 add integration test for proper async binding retry (openshift#1688) 6d809c3 Add custom columns to OpenAPI schema (openshift#1597) fcdefa6 Workaround spf13/viper stringarray bug (openshift#1700) ebbeb8c undo 6bad71d358ad3ad39eb8c003f5807cca1ec1d1e7 (openshift#1714) 1ee9659 Load all client auth plugins in the cli (openshift#1695) b9ad10d must run tests (openshift#1698) c621cdc add stages to Travis REVERT: b69b4a6c80 origin build: modify hard coded path REVERT: 527fac4d02 origin build: add origin tooling git-subtree-dir: cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog git-subtree-split: b758460ba7a45d370da9d5d634e71c16e9eb282a

This changes the osc kubeconfig chain to:
.openshiftconfigwith either$OPENSHIFTif it has a value or.config/openshift/config(note the lack of '.').Upstream has migration methods being added in kubernetes/kubernetes#6680. Since we collapsed onto the same chain before, this should bring everything into line.
@fabianofranz ptal