Commit Graph

18 Commits

Author SHA1 Message Date
Nic Cope 165b83c972 Mark the current implementation of ConditionedStatus as deprecated
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>
2019-05-31 16:04:27 -07:00
Nic Cope ab4ea267da Remove unused code
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-03-06 14:40:17 -08:00
Nic Cope bc90efad4f Address linter warnings about malformed or missing comments
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>
2019-03-06 14:40:16 -08:00
Nic Cope ec362dbb4e Run goimports on all files
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>
2019-03-06 14:37:03 -08:00
Nic Cope c994c7ab62 Have BindingState default to 'Unbound'
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>
2019-03-06 13:05:15 -08:00
Nic Cope 5c6affd69c Remove the GetObjectMeta method.
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>
2019-02-28 15:02:50 -08:00
Jared Watts 476633bd45 Use ObjectMetaAccessor interface for resource claims
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-02-20 08:06:12 -08:00
Jared Watts 14a3458025 Refactor bucket and cluster controllers to use the general resource controller
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-02-14 10:24:18 -08:00
Nic Cope 0c94dedc92 Use the minimal set of properties required to connect to AKS clusters
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>
2019-01-25 13:59:13 -08:00
Jared Watts bd538df947 apis: resource claim, resource class, and resource types and interfaces
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-01-03 11:54:38 -08:00
Jared Watts e1cd0967d5 compute: parse raw kubeconfig data into resource credentials secret keys format
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-12-03 12:54:12 -08:00
Illya Chekrygin 1654c93dda Fix ResourceCredentialsToken Key variable
Signed-off-by: Illya Chekrygin <illya.chekrygin@gmail.com>
2018-11-30 20:41:45 -08:00
Jared Watts cbed947d34 azure aks: APIs/CRDs for Azure AKS support
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-11-30 13:19:05 -08:00
Bassam Tabbara 2dde14c478 rename to crossplane
make build and make test now work.
2018-11-19 15:56:32 -08:00
ichekrygin 1f9f101a5b Add EKS types, client and controller 2018-11-19 15:37:15 -08:00
ichekrygin 1cf6e33fce Consolidate Resource Credentials Secrets constants 2018-11-12 21:09:03 -08:00
ichekrygin 7567c89564 Implement Kubernetes Controllers 2018-11-10 20:53:49 -08:00
ichekrygin b702c5b972 Add API Types for `ResourceClass`, `MySQLInstance`
Update `RDSInstance`
2018-11-05 12:17:08 -08:00