We'd like to introduce a new implementation in a future commit. Renaming these
types and functions to deprecated allows us to migrate the codebase gradually.
This commit is fairly mechanically generated by a lot of find and replace.
Signed-off-by: Nic Cope <negz@rk0n.org>
This commit should only touch comments, or make types private to avoid them
needing a comment when they're not consumed outside their own package.
Signed-off-by: Nic Cope <negz@rk0n.org>
This commit was generated by running:
```
$ goimports -w -local "github.com/crossplaneio/crossplane/" $(find cmd/ -name *.go|xargs)
$ goimports -w -local "github.com/crossplaneio/crossplane/" $(find pkg/ -name *.go|xargs)
```
goimports is an extension of gofmt that automatically includes packages. It
also sorts package names according to the following rules:
1. stdlib packages
2. Third party packages
3. Local packages (i.e. other crossplane packages)
Signed-off-by: Nic Cope <negz@rk0n.org>
This removes the need to explicity initialise new objects as unbound. This
commit also refactors the underlying SetBound method to take a bool, removing
the need to translate that pattern throughout the codebase whereever we call
SetBound.
Signed-off-by: Nic Cope <negz@rk0n.org>
Any Kubernetes resource with an embedded ObjectMeta satisfies the Object
interface directly, i.e. you can just call `foo.GetUID()` rather than
calling `foo.GetObjectMeta.GetUID()`.
Signed-off-by: Nic Cope <negz@rk0n.org>
Previously we passed on the entire kubeconfig file when authenticating to AKS,
as opposed to EKS AND GKE where we pass only the endpoint, CA data, and user
credentials.
Fixes#273
Signed-off-by: Nic Cope <negz@rk0n.org>