Skip to content

Conversation

qmfrederik
Copy link
Contributor

#194 embedded the Fractions within the KubernetesClient.

Because most of the Fractions types are marked as public, any library referencing both KubernetesClient and the original Fractions library would be confused at compile time as there are two types with the same name in two different projects.

Hence, this PR makes all Fractions-related types internal, so they are not visible to any other library at compile time.

Libraries can also use reflection at runtime to find types. To guard against libraries being confused by finding two types with the same name in two different libraries, I've also renamed the Fractions to k8s.Internal.Fractions.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 22, 2019
@tg123
Copy link
Member

tg123 commented Mar 22, 2019

/LGTM

BTW
is strong name the only reason to embed the library?

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 22, 2019
@qmfrederik
Copy link
Contributor Author

Is strong name the only reason to embed the library?

I think it was, yes.

@brendandburns
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, qmfrederik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 22, 2019
@k8s-ci-robot k8s-ci-robot merged commit cd7cda5 into kubernetes-client:master Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants