Commit Graph

450 Commits

Author SHA1 Message Date
Illya Chekrygin f2a596cb80 Merge pull request #498 from ichekrygin/helm3
Update HELM chart template(s) to be compatible with Helm v3 version.
2019-05-28 16:44:10 -07:00
Jared Watts 2ffe86b954 Merge pull request #442 from hasheddan/azure-rg-name-validation
azure: resource groups naming errors handled by creation
2019-05-28 11:37:55 -07:00
Jared Watts 660c6a5bf3 Merge pull request #486 from hasheddan/log-fatal-refactor
test: removes log.Fatal and log.Panic
2019-05-20 23:14:27 +02:00
Nic Cope 59cd015131 Merge pull request #492 from lukeweber/eks-dns
Add Route53NodeInstance permissions for eks cluster
2019-05-20 14:58:45 +02:00
Illya Chekrygin 691f8b375b Merge pull request #485 from ichekrygin/gitlab-no-k8s
Update GitLab remove K8S provisioning steps
2019-05-20 00:33:27 -07:00
Illya Chekrygin c9920b92cd Merge pull request #483 from lukeweber/split-cc
Remove EKS cluster provisioning from gitlab demo
2019-05-20 00:33:19 -07:00
Illya Chekrygin 0e0609be44 Merge pull request #488 from bassam/pr-update-build
update build submdoule
2019-05-19 22:48:01 -07:00
Bassam Tabbara 1f70e0301d update build submdoule
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2019-05-20 06:53:05 +02:00
hasheddan 41f27d2ee2 test: removes log.Fatal and log.Panic
Logging altered for consistency across tests.

Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2019-05-19 19:38:58 -05:00
Bassam Tabbara 9f2404db76 Merge pull request #481 from prasek/master
add deploy links for GitLab deploy examples
2019-05-19 21:05:55 +02:00
Bassam Tabbara 247f13c72c Merge pull request #482 from lukeweber/gitlab-aws-sam
Gitlab AWS Demo
2019-05-19 21:05:37 +02:00
Nic Cope 132b71c6e4 Merge pull request #476 from negz/gkesubnet
Allow GKE resource classes to specify node, cluster, and service CIDRs
2019-05-19 14:59:42 +02:00
Nic Cope f48c259e7a Remove end of line comments from GKE spec
These were intended to document the gcloud flags the various settings correlate
to, but were being interpreted as documentation for the following line's setting
when generating CRDs.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-19 12:12:21 +02:00
Nic Cope d7dd9a4836 Allow GKE resource classes to specify node, cluster, and service CIDRs
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-19 12:12:21 +02:00
Illya Chekrygin 800b948fba Merge pull request #471 from rbwsam/s3bucket_unique_name
Generate unique names for S3Buckets
2019-05-19 00:58:12 -07:00
Sam Leavens d7f8dadcbd Using bucket endpoint
- Using endpoint field to store AWS region  when generating s3bucket secrets
- Regenerated crds to reflect change to s3bucket
- Minor improvement to Makefile

Signed-off-by: Sam Leavens <rbwsam@gmail.com>
2019-05-19 00:23:59 -07:00
Sam Leavens 8af4e58adf Generate unique names for S3Buckets
- Uses same NameFormat system as GCP Bucket

Signed-off-by: Sam Leavens <rbwsam@gmail.com>
2019-05-17 09:22:54 -07:00
Nic Cope 5d31bad7eb Merge pull request #474 from negz/gkeauth
Use basic auth for GKE
2019-05-17 00:56:06 -07:00
Illya Chekrygin 85ff1746db Merge pull request #467 from lukeweber/fix-316
Remove locationConstraint when provisioning S3Bucket in us-east-1
2019-05-16 13:25:50 -07:00
Nic Cope ed95cb7206 Merge pull request #460 from negz/deletekar
Handle deletion of clusters running a complex workload
2019-05-16 13:17:54 -07:00
Nic Cope 54406046f2 Use updated `cobertura-coverage.xml` for Jenkins coverage report
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-16 12:47:57 -07:00
Jared Watts 009a8c0949 Merge pull request #466 from jbw976/job-owner-ref
extensions: install job should run in the same namespace as its owner ExtensionRequest
2019-05-16 11:08:03 -07:00
Jared Watts 512e8d8da8 Merge pull request #469 from jbw976/io-sw-nolint
add nolint for interfacer check on io.StringWriter, that type is only in go 1.12+
2019-05-16 10:54:30 -07:00
Jared Watts 3db1e7a27c extensions: add nolint for interfacer check on io.StrignWriter, that type is only in go 1.12+
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-05-16 09:46:18 -07:00
Jared Watts 9ff9f42574 Merge pull request #444 from jbw976/extension-manager
Extension manager initial implementation
2019-05-15 13:44:07 -07:00
Jared Watts 696dea18dc extensions: PR feedback
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-05-15 13:28:26 -07:00
Jared Watts d590406781 extensions: logic to unpack extensions package content and create artifacts
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-05-15 11:33:24 -07:00
Jared Watts f20e0cd1a1 util: logic to discover running pod and container image from downward API
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-05-15 11:33:24 -07:00
Jared Watts 411f4baa46 extensions: API/CRD definitions
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-05-15 11:33:23 -07:00
Illya Chekrygin 99cf44b682 Merge pull request #461 from lukeweber/create-subnetwork
Enable CreateSubnetwork option for Gke Cluster
2019-05-15 10:49:38 -07:00
Luke Weber 054c5189ab Enable CreateSubnetwork option for Gke Cluster
Signed-off-by: Luke Weber <luke.weber@gmail.com>
2019-05-15 09:56:41 -07:00
Illya Chekrygin b85a28e9b5 Merge pull request #446 from ichekrygin/cobertura
Update cobertura report file name and report content (exclude generated)
2019-05-10 09:22:01 -07:00
Illya Chekrygin 8ffca6c40b Update cobertura report file name and report content (exclude generated)
Signed-off-by: Illya Chekrygin <illya.chekrygin@gmail.com>
2019-05-10 09:13:40 -07:00
Nic Cope dc91db7919 Merge pull request #443 from negz/sm
Bump build submodule
2019-05-09 23:48:48 -07:00
Nic Cope c7a4be0ff8 Bump build submodule
So I can use Go 1.12.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-09 18:11:47 -07:00
Illya Chekrygin f60ce9e3b3 Merge pull request #438 from ichekrygin/gitlab-resource-label
Add Resource Annotation to Resource Classes in GitLab examples.
2019-05-08 06:46:49 -07:00
Jared Watts 83cf0f56c0 Merge pull request #397 from jbw976/installer-design
design proposal and API for mechanism to extend Crossplane with new out-of-tree functionality
2019-05-07 15:22:10 -07:00
Jared Watts 7b339d00aa API (CRDs) for Crossplane extensions
Signed-off-by: Jared Watts <jbw976@gmail.com>
2019-05-07 14:55:23 -07:00
Illya Chekrygin 43a0c304cc Merge pull request #430 from ichekrygin/gitlab-gcp
Add GitLab Application deployment using Crossplane Resources example
2019-05-07 11:52:35 -07:00
Illya Chekrygin eb7930b17a Update bucket scripts and claims to use naming format with UID in bucket name.
Resolves: #431
Signed-off-by: Illya Chekrygin <illya.chekrygin@gmail.com>
2019-05-07 11:40:32 -07:00
Illya Chekrygin e5ac66ba0e Merge pull request #419 from ichekrygin/reconciler-patterns
Add the initial design document for Reconciler Patterns
2019-05-06 22:55:44 -07:00
Nic Cope 1e647f3e7f Merge pull request #433 from negz/cmp
Convert unit tests from deep.Equal to cmp.Diff
2019-05-06 20:34:57 -07:00
Nic Cope bcf45a20cd Replace reflect.DeepEqual in tests with cmp.Diff
Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-06 17:44:44 -07:00
Nic Cope 177a831c9c Update tests for go-cmp compatibility
In all cases these updates address the fact that go-cmp requires the caller to
specify explicitly how it should handle unexported fields; cmp.Diff will
panic if it encounters an unexpected unexported field.

In many cases we encounter unexported fields while comparing errors types from
github.com/pkg/error. I've added an EquateErrors() comparer that maintains the
error comparison semantics of https://github.com/go-test/deep.

In most other cases I've also attempted to maintain the comparison semantics of
https://github.com/go-test/deep, which is to ignore unexported fields. In cases
where the test appeared to intend to compare the unexported fields of a type
under our control, and where comparing those unexported fields did not break the
test, I updated the test to compare unexported fields. In cases where the test
appeared to intend to compare unexported fields, but doing so broke the test, I
added a BUG comment.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-06 17:44:44 -07:00
Illya Chekrygin 48098ff115 Add GitLab Application deployment using Crossplane Resources example
Signed-off-by: Illya Chekrygin <illya.chekrygin@gmail.com>
2019-05-06 15:01:43 -07:00
Nic Cope 6936d32287 Replace github.com/go-test/deep with github.com/go-test/cmp
cmp's diff output is much easier for humans to read. cmp also supports passing
options to each Diff call. deep uses package scoped option variables, making it
easy to forget to reset an option after it has been set.

This package was generated by running:

```bash

files=$(find pkg -name *_test.go)

for f in $files; do
  sed -i .sed 's/diff := deep.Equal/diff := cmp.Diff/g' $f
  sed -i .sed 's/diff != nil/diff != ""/g' $f
  rm $f.sed
done
```

A subset of the updated tests will not pass; I'll fix them in a subsequent
commit.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-03 17:19:28 -07:00
Nic Cope 270db1b28a Merge pull request #429 from negz/kapls
Small tweaks to KubernetesApplication label selectors
2019-05-03 16:49:13 -07:00
Nic Cope aeb6eeaf6f Make cluster selector mandatory
We either want to match the selected clusters, or all clusters. A nil cluster
selector matches no labels, while a cluster selector with zero value match
labels and expressions matches any cluster.

https://github.com/kubernetes/apimachinery/blob/e7a87c0/pkg/apis/meta/v1/helpers.go#L32

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-03 16:34:34 -07:00
Nic Cope 8943cda8d7 Add a resource label selector
Our controllers don't use this selector - it exists for illustratory purposes,
to document what labels all KubernetesApplicationResources a KubernetesApplication
creates must have.

Signed-off-by: Nic Cope <negz@rk0n.org>
2019-05-03 16:34:34 -07:00
Nic Cope f7c25e974d Merge pull request #423 from HashedDan/azure-rg-typos
azure: cleaning up comment typos in resource groups
2019-05-01 13:54:29 -07:00