-
Notifications
You must be signed in to change notification settings - Fork 167
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
make api_service method work #355
Conversation
94999cb
to
fdf78c7
Compare
fdf78c7
to
e376ae2
Compare
Thanks! Let's see all resources with consecutive capital letters:
(APIGroup, APIGroupList, APIResourceList are not actual API resources, they're kinds of the discovery results themselves)
and couple more example, one made up, one from istio CRD referenced in #361:
Hmm, is this a breaking change? I agree it's better (and matches Rails'
|
I'd say either major or we make both available and call it a patch.
Is there a planned major bump coming up that we can piggy back on?
…On Tue, Oct 9, 2018 at 9:25 AM Beni Cherniavsky-Paskin < ***@***.***> wrote:
Thanks!
Let's see all resources with consecutive capital letters:
github.com/cben/kubernetes-discovery-samples> ag -o 'kind:.*[A-Z][A-Z]\S*' --nonumbers --nofilename | sort | uniq
kind: APIGroup
kind: APIGroupList
kind: APIResourceList
kind: APIService
kind: APIServiceList
kind: APIVersions
kind: OAuthAccessToken
kind: OAuthAccessTokenList
kind: OAuthAuthorizeToken
kind: OAuthAuthorizeTokenList
kind: OAuthClient
kind: OAuthClientAuthorization
kind: OAuthClientAuthorizationList
kind: OAuthClientList
kind old method names new method names
APIGroup apigroup api_group
APIGroupList apigroup_list api_group_list
APIResourceList apiresource_list api_resource_list
APIService apiservice api_service
APIServiceList apiservice_list api_service_list
APIVersions apiversions api_versions
OAuthAccessToken oauth_access_token o_auth_access_token
OAuthAccessTokenList oauth_access_token_list o_auth_access_token_list
OAuthAuthorizeToken oauth_authorize_token o_auth_authorize_token
OAuthAuthorizeTokenList oauth_authorize_token_list
o_auth_authorize_token_list
OAuthClient oauth_client o_auth_client
OAuthClientAuthorization oauth_client_authorization
o_auth_client_authorization
OAuthClientAuthorizationList oauth_client_authorization_list
o_auth_client_authorization_list
OAuthClientList oauth_client_list o_auth_client_list
Hmm, is this a breaking change? I agree it's better (and matches Rails'
.underscore behaviour) 👍, but perhaps someone already has working code
with say client.get_apiservice and now will need to change to
client.get_api_service...
BTW, many of these kinds are recent but some go back quite a while,
APIService appeared in kube 1.7...
- I definitely don't want to release this in a patch bump.
- compromise on calling this a bug but releasing in a minor bump?
- major bump?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#355 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAsZ1n1NX-pNk67pZKcptds8URmckA9ks5ujM3kgaJpZM4XN2AO>
.
|
I'm working on making both old and new work... |
2e6282d
to
c21bc88
Compare
Rebased, still blocked on compatibility, working on it. |
Changes ABBREVIATIONCamelCase treatment to recognize end of ABBREVIATION as word boundary. Similar to ActiveSupport `String#underscore` behavior.
c21bc88
to
74e6699
Compare
Rebased again. |
reminder to self: there will never be a perfect time but fixing this sooner is better. |
Oh, wow. Sorry for holding this up so long. |
These changes were backported to v4.y branch (all from master except ManageIQ#355). Planning to also merge this to master.
These changes were backported to v4.y branch (all from master except ManageIQ#355). Planning to also merge this to master.
@cben @moolitayer