-
Notifications
You must be signed in to change notification settings - Fork 25
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
Generate aliases #20
base: master
Are you sure you want to change the base?
Generate aliases #20
Conversation
…o search all namespaces.
Yea, I think so. Im thinking we generate a default file for users to source and only if they want they can use the generate tool. Figure we can make them into releases. Probably should have it ignore bin completely. |
This last commit allows for additional aliases. Essentially we can generate everything to a single file. Im happy to revert back if this isnt the direction youd like to go. |
Co-authored-by: Danny Burt <Dbz@users.noreply.github.com>
Co-authored-by: Danny Burt <Dbz@users.noreply.github.com>
Guess let me know what you think from here. Couple of thoughts. I have.
|
1. Remove leaky abstraction aliasNames 2. Refactor GenerateAdditional to Generate 3. Remove and update tests
OK, here is the PR to remove the leaky abstraction. I did a little bit of extra refactoring to combine |
Well, I think this is looking great. I like all of your bullets. I would add we should make the user provided aliases go into a separate file so we're not overriding it on update. |
Refactor Generate * Remove leaky abstraction aliasNames * Refactor GenerateAdditional to Generate * Remove and update tests
Hmmm... that seems to have broken stuff. Tests are passing, but if you actually use the tool its broken. I have fixed that (need to initialize the map) but now the tests are always passing. So gotta figure out what that is all about. It seems to be true on commit before yours so I shall see. |
It is the TestMain function. Itll be fixed next commit. |
Co-authored-by: Patrick Messina <patrick_messina@eogresources.com>
So I realize, in order to allow folks to generate their own stuff, we do need to include a binary in git :( . I usually dislike that, so maybe let's generate one per release? |
Possible solution: Don't provide it in the repository. And pretty much have one file that they can source. It'll have good defaults. Have a binary that we keep with the release. That's where it belongs anyway. If users want to generate them they can download that release. I imagine most people just wanna source a file and be done. But just in case, think we should have all the commands be copy and paste. |
…d removed the extra bit in code (#28) Co-authored-by: Patrick Messina <patrick_messina@eogresources.com>
* changed generate_aliases directory to generate * changing readme * minor readme changes * Update README.md comprehensive Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * Update README.md aliases Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * Update README.md Specifically Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * Update README.md deleting here Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * Update README.md d is for describe Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * Update README.md this is more clear Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * Update README.md examples == good Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * moved Generate Aliases information to customizing aliases * added table of contents * formatting * added coming soon * have examples * Update README.md How are so many of these wrong? Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * added additional example for prefix * Update README.md fine by me Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * example cutom alias * added more content to generating aliases * fixed table of contents * customizing aliases yaml * corrected table of contents * added another example * inital readme * added make test * Update README.md Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> * Update README.md an Co-authored-by: Danny Burt <Dbz@users.noreply.github.com> Co-authored-by: Patrick Messina <patrick_messina@eogresources.com> Co-authored-by: Danny Burt <Dbz@users.noreply.github.com>
* Ignore bin * Add comments to generated aliases * Regenerate Aliases * updated drain command. The old version was deprecated from kube * added grep command to getting resources * More example usages * added watch all * Add comment to additional section of readme Minor changes * Fix grep * Fixe rules section * Few more readme rules fixes Co-authored-by: Patrick Messina <patrick_messina@eogresources.com>
I made some modifications for my personal use to create aliases for powershell. I don't know go, so I am vary of opening a PR, but the basic idea is as follows
It would be very nice if something like this could be accommodated. I will work on fixing it... |
Hi @anupamsr . I'm happy to accommodate :) What should do is work together on a PR to create a new generated file specifically for powershell users. Should should be able to do that with a minimal amount of code. |
Hi. Is there a plan to add aliases for kubectl context? I mean, something like
I am just about learning kubernetes devops so it if you think there is a better way, I would really appriciate knowing that. |
Sure, if you want you can open a pull request and Ill merge it in. If not, Ill add it. |
Yes, if you're going to open a PR which would be awesome, please base it off of this branch! |
Done. Please have a look: #34 |
Added aliases for kubectl config
Generate aliases!