Justin SB
786423f617
Expose JWKS via a feature-flag
...
When the PublicJWKS feature-flag is set, we expose the apiserver JWKS
document publicly (including enabling anonymous access). This is a
stepping stone to a more hardened configuration where we copy the JWKS
document to S3/GCS/etc.
Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2020-08-30 10:15:11 -04:00
Ciprian Hacman
827d8c041f
Update mock version to 1.19.0-alpha.1
2020-07-08 18:31:18 +03:00
Ole Markus With
263172caac
Use new templates for cilium 1.8
2020-07-03 07:56:35 +02:00
Peter Rifel
75ccf45eb7
Fold multiple integration test cases into the complex cluster test
...
Each integration test cluster adds many LoC and some overhead in running the integration tests.
Since many of the tests are only testing a specific feature, it would be simpler to combine all of the non-mutually exclusive features into the complex cluster.
2020-06-19 22:09:22 -05:00
John Gardiner Myers
3ce8dd165b
Use launch templates by default
2020-06-10 09:34:48 -07:00
Peter Rifel
ef6abbcd5c
Don't use file references for single line strings in gce's metadata fields
2020-05-06 23:06:24 -05:00
Ole Markus With
d174faf116
Add some integration tests for cilium
2020-04-16 16:22:58 +02:00
Justin Santa Barbara
31bb16d4d1
Add context.Context to most signatures
...
The client-go signature for most methods adds a context.Context
object, and also makes Options mandatory. Feed through a
context.Context through many of our methods (but use context.TODO to
stop it getting totally out of hand!)
2020-04-11 14:44:17 -04:00
Peter Rifel
fa2d64c3a3
Update expected outputs of terraform tests
2020-04-05 21:24:49 -05:00
Peter Rifel
a0e1672cdc
add terraform testing
2020-03-31 14:50:45 -05:00
Peter Rifel
54c3b2f69c
Only check for bastion user data files in integration tests if they should exist
2020-03-31 09:40:55 -05:00
Peter Rifel
db50663452
refactor integration tests
2020-03-31 07:34:16 -05:00
John Gardiner Myers
b645dac752
Remove support for v1alpha1 and before
2020-03-24 19:49:15 -07:00
John Gardiner Myers
d9e999d377
Convert TestMinimal_json to v1alpha2 API
2020-03-24 19:49:07 -07:00
eric-hole
31285f921b
Adds a minimal GCE integration test
2020-03-17 01:19:49 -07:00
eric-hole
c4daebfa8e
Add lifecycleOverrides to runTestGCE
2020-03-17 01:01:26 -07:00
Ciprian Hacman
7398f9bd47
Add LaunchTemplate integration tests
2020-03-16 16:01:57 +02:00
Matt Ouille
f025ff0e70
Add External Policies (AWS managed policy attachments)
2020-02-16 21:54:12 -08:00
Christian van der Leeden
549f54de48
Enabling JSON output for Terraform instead of writing the HCL syntax tf file. JSON syntax is officially supported in 0.12 and a terraform version requirement will be set. For previous installations you need to delete the .tf file by hand. JSON generation will fail if kubernetes.tf is present.
...
Added Integration Test using minimal test setup
Added documentation. For terraform 0.12 support the resource names need to be changed still
2020-01-17 22:03:19 +01:00
Austin Moore
4a88f7b5a5
Add ability to specify no ssh key by setting sshKeyName to empty
...
Add tests for no ssh key functionality
Add docs for setting no ssh key
Disable sshKey rendering for cloudformation if nosshkey is set
Fix broken test
make goimports
Fix
Formatting fix
Update kubernetes version for tests
Update expected test output
Fix imports in mesh.pb.go
Run hack/update-expected.sh
Change digital ocean logic to handle *string for SSHKeyName
Fix expected output
Missed a few
2020-01-15 15:24:32 -05:00
Nicolas Vanheuverzwijn
8d3df18a51
test: fix integration test to always include bastion userdata
2020-01-13 15:53:13 -05:00
Justin SB
cf5c53c87d
Add tests for manifest normalization
...
(The tests are split out for easier cherry-picking, should we choose to)
2020-01-11 22:41:18 -05:00
Peter Rifel
21c5a82ed3
Update mock kops version
2020-01-03 08:17:02 -06:00
John Gardiner Myers
d127b9b1a1
Fix cmd/kops staticcheck failures
2019-12-25 14:59:27 -08:00
Ciprian Hacman
1a4d8bf49c
Add support for containerd container runtime - tests
2019-12-15 21:37:57 +02:00
Peter Rifel
bb3140deba
Update integration test to cover CloudFormation output of NAT gateways
2019-12-06 14:04:35 -06:00
Justin SB
e5d710616a
Add test for float args
...
We likely need to change from floats to resource.Quantity, so we need
to estabilsh more test coverage before we can safely make the change.
2019-09-29 13:14:21 -04:00
Justin SB
728e582360
Fill out kops controller functionality
...
k8s 1.16 requires that we move label setting away from the kubelet, to
a central controller. kops-controller is that controller.
2019-09-25 12:04:34 -04:00
mikesplain
9e55b8230a
Update copyright notices
...
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Justin SB
e28b4192ab
cloudformation tests: use standard file comparison
...
This allows us to auto-fix the expected output also.
2019-08-22 09:14:49 -04:00
xichengliudui
931ebe2bc8
fix Typo 'the the' -> 'the'
2019-08-20 08:47:17 -04:00
Austin Moore
29b46624e2
Fix test after rebase
2019-07-26 12:28:42 -04:00
Austin Moore
66a8d1de90
Add integration test for cross-zone-load-balancing
2019-07-26 12:21:43 -04:00
Justin SB
512378b335
Rationalize golden-output comparison
...
Create a single helper function: AssertMatchesFile
Also a few output files that weren't consistent.
2019-07-21 23:08:48 -04:00
Peter Rifel
adef332fe3
Add integration test for mixed instances / launch templates
2019-06-07 14:29:34 -07:00
Justin SB
ba9a4afc43
apigroup -> kops.k8s.io: Tests & supporting changes
...
Autogenerated code, docs & test changes
Also a new test for the older "kops" apiGroup, to make sure that
continues to work.
2019-05-06 22:26:29 -04:00
Rodrigo Menezes
4b1e92617a
Add terraform support for additional CIDR blocks now that it has support.
2019-03-28 00:47:08 -07:00
Moustafa Baiou
2028841338
fix integration test for unmanaged egress
...
gofmt
2019-01-27 15:53:21 -05:00
Justin Santa Barbara
556ed2aace
Allow for "external" egress
...
We don't configure routing for a subnet when it is external. In the
case when all subnets have external egress, we should not create any
route / network objects at all (e.g. no IGW)
2019-01-27 15:53:20 -05:00
Ariel Mashraki
7dca8a78d2
terraform: Fix resource formatting for IPv6 CIDRs
...
Solved #5976
2018-10-20 15:58:42 +03:00
k8s-ci-robot
646fee8a9d
Merge pull request #5857 from justinsb/strict_cloudformation_output_checking
...
Stop cloudformation output switching to literal quotes
2018-10-02 22:53:19 -07:00
Justin Santa Barbara
076742f528
Still materialize terraform output in tests
...
If we skip it, we can't test it. We do expect that most users will
use a lifecycle that only warns though.
2018-10-02 11:53:39 -07:00
Rodrigo Menezes
a82f548ff8
Allow using existing/shared Security Groups
...
Verbosely log when a user overwrites LB or IG security groups
Change SecurityGroup to SecurityGroupOverride
Allow using existing/shared Security Groups
Update tests
2018-10-02 00:51:39 -07:00
Justin Santa Barbara
1ad7a84d53
Stop cloudformation output switching to literal quotes
...
yaml can't store the \r character, so we strip the \r characters in
the expected output to keep the yaml output in block-quote style.
Also don't Fatalf out of an error, rather Errorf so we print all
problems.
2018-10-01 20:44:19 -07:00
Justin Santa Barbara
78c81e39a7
Add HACK_UPDATE_EXPECTED_IN_PLACE for cloudformation output
2018-07-27 00:57:45 -04:00
Justin Santa Barbara
630ea429ae
Merge pull request #4677 from usabilla/external-load-balancers
...
Add the ability to specify external loadbalancers for instancegroups
2018-07-19 21:54:00 -04:00
Justin Santa Barbara
af867403f9
More autofix of expected test output
...
Rename to HACK_UPDATE_EXPECTED_IN_PLACE as it isn't just terraform any more.
2018-07-19 12:11:38 -04:00
Gijs Kunze
8256c3cc73
Fixed integration tests after rebasing
2018-06-29 12:42:06 +02:00
Gijs Kunze
2c5edfe992
Added integration test for external load balancers
2018-06-29 11:39:21 +02:00
Justin Santa Barbara
1af610a6c4
Use fast-retry and cleanup task options for tests
...
The launch configuration test exposed that our integration tests don't
retry for very long, and wait a long time in between retries.
Create a RunTasksOptions type to hold the parameters, in particular
max task time, and the amount of time we wait when all tasks have
failed.
2018-06-18 00:04:23 -04:00