-
Notifications
You must be signed in to change notification settings - Fork 38.9k
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
Prometheus/promdash replication controller #8536
Conversation
It would be nice to see the YAML retained, IMHO. Makes for a smaller diff, maybe. |
@timothysc, heres the HA example with the service running.
|
@jayunit100, could you suggest reviewers for this PR? |
How about my buddy @zmerlynn to review (he reviewed the original one) Regarding the port to json: The reason i ported it is that, simply,
|
Were this a serious concern, i would agree to the generative approach, but this is an example project, so IMHO it should be transparent and approachable by as wide an audience as possible. Better to leave things out in the open, good, bad and/or ugly as they may be. Any right-minded reader will obviously think along the lines you propose, anyway. Let's just hope they do not fault us for thinking of the less-capable, as well. (To preclude such noise, you can add a "exercise for the reader" blurb somewhere, perhaps.) |
Update to use a public IP so that services have a sane web-root
Okay, updated to use Working properly now w/ the exact public IP (previous PR only worked if you used the ip of the bound host) |
Agree with @tnguyen-rh. We've actually been preferring YAML - can we keep it here? |
i sincerely think allowing json is the right thing here, not just trying to save myself some time --- so i'll try to make a case for why i used (and switched to) json, for this specific case . Please read below, and just let me know the final decision. final call is yours :) There are basically two reasons to use yaml over json in this case, lets go through them one by one:
now, why did i pick json ?
the long term solution ? im happy to standardize on Yaml, if and when either (1) kubernetes stops supporting json or (2) there is a conversion utility so that you dont have to rebuild a complex json kube application in yaml or vice versa for the sake of patch submissions. *personally... * For me, right now, i have to look in either way if you guys insist im happy to do it in YAML, but it will take some cycles to redo it again. please do share your honest feedback on my argument ..... thanks for the feedback to @tnguyen-rh and @zmerlynn . ; and thanks for reading if you got this far :) :) now its your turn for the final decision :) |
I replied off-github w/ a json2yaml link (RH internal). |
If you are comfortable with JSON, you can edit JSON and when you test it, just get the resource back in YAML from the server via kubectl get -o yaml > file.yaml Like you I sometimes struggle with YAML, but I find the ability to work in JSON and let server convert for me works well enough. Sent from my iPhone
|
hi @zmerlynn . Any final verdict on this ? If YAML is required to merge I'm happy to do it, just let me know :) ! ps thanks for the idea @derekwaynecarr . based on zack's final feedback i may need to use that trick. |
Sorry, been underwater. If it's easier for you to maintain in json right now, that's fine. LGTM |
Prometheus/promdash replication controller
Here is the replicatoinController implementation of the original pod for prometheus/promdash.