Peter Rifel
55f33c68b3
Cleanup old v1alpha1 test outputs
2020-08-27 14:30:10 -05:00
Peter Rifel
64f6f5e2cb
Add integration test for GCE private topology with bastion
2020-08-27 14:28:26 -05:00
John Gardiner Myers
d434733254
update-expected.sh
2020-07-30 19:42:07 -07:00
John Gardiner Myers
d0b30cf771
update-expected.sh
2020-07-17 11:26:09 -07:00
John Gardiner Myers
56e5adc67e
Move VPC setup into NewCluster()
2020-06-30 12:37:46 -07:00
John Gardiner Myers
fe66b0011b
Move CloudProvider determination into NewCluster()
2020-06-30 12:37:11 -07:00
John Gardiner Myers
ec4fe1e7e8
Don't put bastions in the utility subnets
2020-05-12 22:06:34 -07:00
John Gardiner Myers
843e5b9b16
Move GCEServiceAccount into CloudConfig
2020-05-03 20:35:32 -07:00
eric-hole
c59314a799
Adds some initial tests. Fixes some logic
...
Need to fix service account implementation first
Fixing tests and iterating on the serviceaccount logic
Run the gce_byo_sa test
2020-04-04 21:20:31 -07:00
eric-hole
b3d65ffce0
Adds a gce-service-account flag so you BYO service-account
...
Generated code and some cleanup
Not sure where that code went
Tests for service account
fixes case on gceserviceaccount
2020-04-04 21:15:56 -07:00
eric-hole
0daa5388ba
Fixing gce integration tests (thanks Peter) with nodeLabels
2020-03-14 12:18:05 -07:00
Ole Markus With
98ea9119a3
Fix tests
2020-02-06 19:41:47 +01:00
Kubernetes Prow Robot
8664fa69c4
Merge pull request #8172 from hakman/container-runtime-cli-flag
...
containerd: Add --container-runtime cli flag
2019-12-27 09:29:59 -08:00
Ciprian Hacman
8523dd8d9d
Update tests for --container-runtime
2019-12-22 22:16:08 +02:00
Peter Rifel
cf43c53f4d
Update kubernetes versions used in integration tests
2019-12-21 08:12:48 -06:00
Justin SB
098b348d6a
stable channel: promote default AMIs from alpha -> stable
...
Promoting the 2019-09-26 AMIs
2019-11-07 22:42:03 -05:00
Justin SB
1580d4c82b
Update tests to use k8s >= 1.14
...
Where tests are using a version of k8s that is now really deprecated,
replace it with k8s 1.14.0.
2019-09-14 13:58:50 -04:00
Justin SB
fafa283e02
Promote 2019-08-16 AMIs from alpha -> stable
...
As discussed in office hours.
2019-09-14 11:32:38 -04:00
Justin SB
79bf0a05ac
Fix golden output: creationTimestamp is now quoted
2019-08-25 16:00:40 -04: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
Eric Greer
8362b1260e
etcd memory requests can now be specified
2019-02-21 15:14:51 -08:00
Jared Allard
fee9bb1f90
fix(tests/integration/create_cluster): fix up minimal <-> ing mixup
2018-11-24 17:12:04 -08:00
Jared Allard
c54222bdb8
chore(tests): use minimal as the test not dedicated security one
2018-11-24 17:07:19 -08:00
Jared Allard
19811d9759
chore(tests): fix them up
2018-11-24 17:03:50 -08:00
Jared Allard
f4de628519
chore(tests): fix some find and replace issues
2018-11-24 16:23:05 -08:00
Jared Allard
49ceb0a8dc
feat: fix tests and ref link in apply_cluster
2018-11-24 16:17:32 -08:00
Jared Allard
2182b879d9
fix(cmd/kops/create_cluster): set anonymousAuth to false not true, whoops
2018-11-24 11:08:09 -08:00
Jared Allard
2336498467
chore(tests/integration/create_cluster): finalize tests
2018-11-16 23:11:00 -08:00
Jared Allard
19f9d2f4d1
Merge branch 'master' into master
2018-11-16 23:03:38 -08:00
Jared Allard
b075964a1d
chore(tests/integration/create_cluster): move test defns lower
2018-11-16 23:02:05 -08:00
Jared Allard
9b5b56aa63
chore(tests/integration/create_cluster): add new field
2018-11-16 22:40:25 -08:00
Justin Santa Barbara
e119068480
Update tests for channel bump
2018-10-15 16:56:34 -04:00
Justin Santa Barbara
54c499fe9b
Introduce field to specify whether we are using etcd-manager or legacy mode
...
Splitting this out from the bigger bundle PR
2018-10-01 15:36:24 -07:00
Justin Santa Barbara
587d8374b5
Revert COS in stable/alpha channel
...
No problem with COS per-se, but these versions have the newer docker,
which includes the --storage flag. We fixed that in master in #5258 ,
but older versions of kops - including the currently released version
1.9.1 - don't have the fix.
Revert to fix the problem immediately, but opened #5358 to track a
more realistic fix.
2018-06-20 20:00:15 -04:00
Justin Santa Barbara
e73ee4e3e8
Update tests for alpha -> stable promotion
2018-05-31 07:41:31 -07:00
Aurel Canciu
cc8371cb31
Add ability to use ec2 nat instance as egress
2018-05-09 23:04:54 +03:00
Justin Santa Barbara
5d36f9e37d
Update kops version in tests
...
We need to satisfy the new minimum supported version.
2018-03-12 02:17:49 -04:00
k8s-ci-robot
b02a73fa2c
Merge pull request #4184 from chrislovecnm/rbac-default
...
Switching the default for kops to create a cluster with RBAC enabled.
2018-01-26 10:52:33 -08:00
Justin Santa Barbara
930fe8e740
Promote alpha channel image to stable
...
The 4.4.111 image is not showing the flakiness on the NFS e2e tests.
2018-01-22 19:42:40 -05:00
Justin Santa Barbara
da55c5eaee
Update tests with new default image
2018-01-20 00:11:23 -05:00
chrislovecnm
4f9ed369e9
Updating tests for having default RBAC setting
2018-01-04 00:12:42 -07:00
Kubernetes Submit Queue
e88496a248
Merge pull request #4061 from meringu/create-subnets
...
Automatic merge from submit-queue.
Add --subnets and --utility-subnets to kops create cluster
This change adds two new options to `kops create cluster`
When specifying `--vpc`, `--subnets` can be specified as an unordered array of subnet ids. Kops will then look up the zones of the subnets to find which zone to add the subnet id to.
If `--topology private` is also specified, `--utility-subnets` can similarly be specified.
~If a zone was specified but a subnet wasn't given that matches the zone, then the subnet will be allocated a CIDR with the current behaviour.~ This case fails validation here 7bd0a6a703/pkg/apis/kops/validation/validation.go (L151)
I can add unit tests and docs changes if required, but I am keen to get feedback before I proceed much further.
I have only added support for AWS.
I have tested this by running a command similar to this:
```bash
kops create cluster \
--zones=us-east-1a,us-east-1b,us-east-1c \
--topology private \
--master-zones=us-east-1a,us-east-1b,us-east-1c \
--vpc $vpc_id \
--subnets subnet-111111,subnet-222222,subnet-333333 \
--utility-subnets subnet-444444,subnet-555555,subnet-666666 \
$cluster_hosted_zone_name
```
And the cluster spec was as expected.
2017-12-18 21:12:59 -08:00
Henry Muru Paenga
0491530b6e
Lookup vpc if not given to create cluster
2017-12-18 11:12:57 +13:00
Henry Muru Paenga
afc1b58722
Tests for create cluster in shared vpc
2017-12-15 18:29:20 +13:00
Justin Santa Barbara
a3c9c2f4c2
Promote alpha channel to stable
2017-12-03 12:45:24 -05:00
georgebuckerfield
ba4dd61142
Fixing tests
2017-11-07 11:25:59 +00:00
Kashif Saadat
b30606ffda
Enable IAM Container Registry permissions by default when creating a cluster ( #3760 ).
2017-11-03 17:26:51 +00:00
Kubernetes Submit Queue
f2e707ef2d
Merge pull request #3460 from justinsb/bump_gce_cos
...
Automatic merge from submit-queue.
Update Google COS image
2017-10-05 00:08:40 -07:00
Justin Santa Barbara
b329178f25
Update Google COS image
...
Equivalent of https://github.com/kubernetes/kubernetes/pull/52120
2017-10-03 23:02:04 -04:00
Justin Santa Barbara
3ab5264ee4
Fix update cluster integration test for bazel
...
Bazel doesn't like overlapping file paths; this is much cleaner anyway.
2017-10-03 20:51:00 -04:00
Justin Santa Barbara
7fd1196708
Add Zones field to InstanceGroup
...
The Zones field can specify zones where they are not specified on a
Subnet, for example on GCE where we have regional subnets.
2017-09-30 19:44:35 -04:00
Justin Santa Barbara
da99a7270d
Subnets on GCE are regional, create one per region
...
We also make the subnet zone and CIDR optional on GCE
2017-09-30 19:22:14 -04:00
Justin Santa Barbara
055f510c6f
Create minimal mock GCECloud, first test
...
We test create cluster - we actually have an issue with the length of
the names on longer cluster names; first step is to get test coverage.
2017-09-16 11:02:30 -04:00
Justin Santa Barbara
9d31ed1b08
nodePortAccess, experimental spec override flag
...
This will allow us to set CIDRs for nodeport access, which in turn will
allow e2e tests that require nodeport access to pass.
Then add a feature-flagged flag to `kops create cluster` to allow
arbitrary setting of spec values; currently the only value supported is
cluster.spec.nodePortAccess
2017-09-04 14:27:31 -04:00
Justin Santa Barbara
b61b74408b
Update images in CI tests
2017-08-24 10:27:27 -04:00
Kashif Saadat
0e5c393f10
Rename IAM switch to legacy, default to false for new cluster creations.
2017-08-22 13:27:55 +01:00
Justin Santa Barbara
cde70934dc
Create test for ssh-access
2017-07-22 01:45:03 -04:00
Justin Santa Barbara
4c9385b0fd
Update integration tests for new versions
...
(Separately: when we implemented standalone mode, we should also switch
the tests so they don't rely on the published stable channel!)
2017-05-17 11:36:34 -04:00
dima
bf06e36a4f
change flag to --encrypt-etcd-storage=true
2017-04-19 13:27:56 +02:00
dima
e7ddeb71ec
add tests and fix existed for --encrypt-volume option
2017-04-03 14:47:28 +02:00
Justin Santa Barbara
3f2ee47689
Fix tests
2017-03-29 18:23:19 -04:00
Justin Santa Barbara
4006741a5d
Update for new taints / labels names
2017-03-27 23:13:39 -04:00
Robin Percy
4b030fed69
Added taints property to IG Spec.
...
- new property is only used when KubernetesVersion is 1.6 or greater
- taints are passed to kubelet via --register-with-taints flag
- Set a default NoSchedule taint on masters
- Set --register-schedule=true when --register-with-taints is used
- Changed the log message in taints.go to be less alarming if taints are
found - since they are expected on 1.6.0+ clusters
- Added Taints section to the InstanceGroup docs
- Only default taints are allowed in the spec pre-1.6
- Custom taint validation happens as soon as IG specs are edited.
2017-03-25 18:36:00 -07:00
Justin Santa Barbara
2e7ef573aa
Update expected test results: creationTimestamp no longer quoted
2017-03-16 02:40:50 -04:00
Justin Santa Barbara
cdc8b034d1
Fix 1.6.0 validation
...
We were requiring API servers, but the apiserver flag is removed from
1.6.
2017-03-01 12:58:54 -05:00
Robin Percy
6fa4acd49e
Exposed cloud labels as a CLI option
...
- --cloud-labels will be applied to every kops-created resource
- Also ran apimachinery to regenerated the conversions for the new
Cluster.ClusterLabels property.
2017-02-22 06:24:35 -08:00
Justin Santa Barbara
e6fb6281f6
Merge pull request #1804 from justinsb/fix_create_test_k8s_version
...
Specify KubernetesVersion in create cluster test
2017-02-07 01:17:59 -05:00
Justin Santa Barbara
61631f4815
Specify KubernetesVersion in create cluster test
...
We probably should use a canned channel, but in the interim this is
probably the best option, otherwise every time we update the stable
channel we break the tests.
2017-02-07 00:27:57 -05:00
Kris Nova
b05e1b0ad3
Bump to 1.4.8 in integration tests to fix #1799
2017-02-06 21:23:43 -07:00
Justin Santa Barbara
2d5fd877ad
Add --master-count flag, to make it easy to run masters in the same AZ
...
* The master zones are the default set of zones unless explicitly set
* The master count is the number of master zones unless explicitly set
* We then round-robin around the zones
* We append a suffix -1, -2, -3 if there are more masters than zones
* We trim prefixes to keep etcd member names short
Fix #1653
2017-01-31 01:11:06 -05:00
Justin Santa Barbara
e9d0a93e0c
Fix extra security group tests
2017-01-31 00:28:47 -05:00
Thomas Peitz
27957062ac
Fix additionalSecurityGroups in tests
2017-01-30 19:33:23 +01:00
Thomas Peitz
651f50e257
Add tests for additionalSecurityGroupIDs
2017-01-30 18:58:48 +01:00
Chris Love
97a4ba8c02
Merge pull request #1661 from justinsb/fix_1641
...
Allow specification of multiple CIDRs to create cluster
2017-01-29 01:28:28 -07:00
Justin Santa Barbara
bd5d7c83a5
AssociatePublicIP defaults to nil
...
Rather than always setting it (incorrectly in many cases), we infer it
from the subnets.
Users can still set it, we just don't default it to a value we then
ignore.
Fix #1582
2017-01-28 21:40:31 -05:00
Justin Santa Barbara
7e232f14d8
Allow specification of multiple CIDRs to create cluster
...
Fix #1641
2017-01-28 15:58:50 -05:00
Justin Santa Barbara
d885074723
Merge pull request #1560 from justinsb/kops_get_should_include_cluster_label
...
Include `cluster` label in `kops get ig -oyaml`
2017-01-21 09:50:58 -05:00
Justin Santa Barbara
686e4efa3b
Egress follow up
...
* Round trip to v1alpha1
* Enable test
2017-01-20 00:40:41 -05:00
Justin Santa Barbara
2b277c6789
Include `cluster` label in `kops get ig -oyaml`
...
Fix #1559
2017-01-19 22:59:55 -05:00
Eric Hole
8c0a4f2890
Fix integration tests.
2017-01-10 10:20:02 -05:00
Eric Hole
a03ba42b56
Merge branch 'master' into kris-and-eric-1282
2017-01-09 22:01:59 -05:00
Eric Hole
f5b3425d3d
First pass at create_cluster_integration_test for specifying NGWs.
2017-01-09 17:28:10 -05:00
Justin Santa Barbara
41495f36fe
Default bastion name should be bastion.<clusterName>
...
bastion-<clustername> is not necessarily in the same hosted zone, nor is
bastion-<dnszone>, and bastion-<dnszone> is not necessarily unique
across clusters.
2017-01-09 11:01:56 -05:00
Justin Santa Barbara
61011650dd
Support private hosted zones in DNS
2017-01-09 09:32:52 -05:00
Justin Santa Barbara
2912dee6e1
Rename -> AccessSpec, ELB -> LoadBalancer
...
Also add docs
2017-01-04 23:04:30 -05:00
Justin Santa Barbara
f52300d020
Fix tests: default api block
2017-01-04 23:04:30 -05:00
Justin Santa Barbara
cf78fa134d
Update integration tests for version bump
...
We really should be using a copy of the stable channel, but for now we
want to get the tests working.
2016-12-28 12:56:18 -05:00
Justin Santa Barbara
f665733b0d
Add test for bastion creation
...
Bastions are created when `-bastion` is passed.
Issue #1232
2016-12-27 01:29:50 -05:00
Justin Santa Barbara
91b77ae11e
Multi-version testing; fix few edge cases
...
By testing with data from various schema versions, we effectively check
that they are equivalent.
Also this uncovered a few places where we were not strictly ordering
things - add some sorts in there.
2016-12-18 23:14:29 -05:00
Justin Santa Barbara
9a3b96f853
Add HA test, test against single "all yaml" output
...
Related to #1189 ... we have this output now (in testing!)
2016-12-18 13:47:24 -05:00
Justin Santa Barbara
9bfd067520
Simple integration test for create cluster
...
Calls create cluster command
Compares to expected YAML output
2016-12-17 23:20:03 -05:00