Commit Graph

12256 Commits

Author SHA1 Message Date
Bharath Vedartham 7067f5f47a instancegroups: Ignore validation errors in unrelated instance groups
When unrelated instance groups produce validation errors, the instance group
being updated produces a failure and is forced to wait for rolling update to continue.

This can be avoided as failures in different node instance groups usually don't affect
the instance group being affected in any way.
2020-10-31 19:17:24 +05:30
Bharath Vedartham f99c04fafa validate_cluster_test: Update validate_cluster_tests
This commit fixes the unit tests for validate_cluster to reflect the addition of the new
InstanceGroup field in struct ValidationError
2020-10-31 19:16:54 +05:30
Bharath Vedartham 49f2a0e10a validate_cluster: Add InstanceGroup field to ValidationError struct
The InstanceGroup field in ValidationError struct is an optional field meant
to indicate the InstanceGroup which has reported that failure. This field either
holds a pointer to the instance group which caused the validation error or can be
nil which indicates that we were unable to determine the instance group to which
this failure should be attributed to.

This field is mainly used to identify whether a failure is worth waiting for
when validating a particular instance group.
2020-10-31 19:16:42 +05:30
Kubernetes Prow Robot 999ae25932
Merge pull request #10143 from hakman/deprecate-calico-mv
Deprecate field calico.majorVersion
2020-10-30 11:55:47 -07:00
Kubernetes Prow Robot 43293d551f
Merge pull request #10140 from rifelpet/elbv2-cloudmock
Update AWS Cloudmock for complex and externallb integration test clusters
2020-10-30 10:02:07 -07:00
Peter Rifel 7d5a39974f
Add lifecycle integration tests for complex and externallb clusters 2020-10-30 10:06:36 -05:00
Peter Rifel 11bf3ff202
Add missing cloudmock functionality for enabling lifecycle integration test on complex cluster 2020-10-30 10:06:36 -05:00
Peter Rifel 839a1185cf
Create cloudmock implementations for elbv2 API calls used by future NLB support 2020-10-30 10:06:36 -05:00
Kubernetes Prow Robot a13ffc6c30
Merge pull request #10145 from hakman/etcd-manager-version
Simplify etcd options builder
2020-10-30 03:16:05 -07:00
Kubernetes Prow Robot 9ef11bb8ae
Merge pull request #10144 from zetaab/allowreauth
allow reauth for openstack client
2020-10-30 00:34:05 -07:00
Ciprian Hacman 91d9c061dd Simplify etcd options builder 2020-10-30 09:11:00 +02:00
Jesse Haka 67d69f16a9 allow reauth for openstack client 2020-10-30 08:57:49 +02:00
Ciprian Hacman a999ac2d94 Deprecate field calico.majorVersion 2020-10-30 08:37:21 +02:00
Kubernetes Prow Robot ab157726d4
Merge pull request #10141 from johngmyers/remove-old-k8s
Remove code for no-longer-supported k8s releases
2020-10-29 23:28:05 -07:00
Kubernetes Prow Robot 9885df83ad
Merge pull request #10077 from hakman/kOps
Rebrand kops to kOps
2020-10-29 18:16:06 -07:00
John Gardiner Myers 8254be2976 update-expected.sh 2020-10-29 16:45:53 -07:00
John Gardiner Myers 2ac17bee69 Remove code for no-longer-supported k8s releases 2020-10-29 16:45:53 -07:00
Kubernetes Prow Robot 80f7b8ec5a
Merge pull request #10101 from johngmyers/prep-1.20
Prepare for version 1.20
2020-10-29 14:44:05 -07:00
John Gardiner Myers 9ecc4b2ec0 Use "remove" instead of "drop" in upgrade_k8s.md 2020-10-29 13:25:37 -07:00
John Gardiner Myers edfa6a0e94 Adjust Kubernetes version removals and deprecations for 1.20 2020-10-29 13:25:37 -07:00
John Gardiner Myers 69c9564ee8 Add 1.20 release notes 2020-10-29 12:59:06 -07:00
Kubernetes Prow Robot 1ed5af04f8
Merge pull request #10138 from rifelpet/asg-tg
ELB/TargetGroup/ASG attachment fixes
2020-10-29 11:58:06 -07:00
Ciprian Hacman 7b22128b37 Update site title and nav 2020-10-29 19:40:56 +02:00
Ciprian Hacman 567867ed69 Hide logo from README file 2020-10-29 19:40:56 +02:00
Ciprian Hacman c9cc319423 Rename _kops_ to kOps in the docs 2020-10-29 19:40:56 +02:00
Ciprian Hacman 61708eae6b Rename kops to kOps in the docs 2020-10-29 19:40:53 +02:00
Ciprian Hacman 6a4d86baf9 Rename Kops to kOps in the docs 2020-10-29 19:39:50 +02:00
Ciprian Hacman e4c9eca241 Rename kops to kOps in the root dir docs 2020-10-29 19:37:21 +02:00
Peter Rifel 6318e90128
Ignore changes reported by subsequent updates
Usually this is an "actual.Foo = e.Foo" one-liner but we don't know which LB attached to an ASG is the API ELB so it's a bit more complicated
2020-10-29 12:34:20 -05:00
Peter Rifel 7497edaf7c
Lookup LoadBalancerName when only the LB task name is known 2020-10-29 12:13:23 -05:00
Peter Rifel 7022f2834d
Attach/detach TGs from ASGs when using direct target 2020-10-29 11:08:39 -05:00
Kubernetes Prow Robot b7f66a6d98
Merge pull request #10109 from bmelbourne/set-minimum-terraform-0.12
Set minimum Terraform version to 0.12.26/0.13.0
2020-10-29 01:52:58 -07:00
Kubernetes Prow Robot aa8a51f70e
Merge pull request #10133 from rifelpet/verify-cf-2
Make verify-cloudformation job fail when issues are found
2020-10-29 00:18:58 -07:00
Peter Rifel a240507fce
Make verify-cloudformation job fail when issues are found 2020-10-28 21:01:22 -05:00
Kubernetes Prow Robot f466403912
Merge pull request #9794 from rdrgmnzs/lb-attachment
Prevent unintended resource updates to LB attatchments
2020-10-28 15:18:59 -07:00
Kubernetes Prow Robot f3ea21a8c6
Merge pull request #10128 from hakman/fix-bash
Update shell style for CLI docs for better compatibility
2020-10-28 13:55:39 -07:00
Barry Melbourne 84417c330b Set minimum Terraform version to 0.12.26/0.13.0 2020-10-28 20:24:41 +00:00
Kubernetes Prow Robot f7e8458e31
Merge pull request #10131 from rifelpet/cf-lint-fixes
Fix cloudformation lint errors
2020-10-28 12:21:56 -07:00
Rodrigo Menezes 41adf07e15 cleanup code 2020-10-28 11:11:58 -07:00
Kubernetes Prow Robot 8ef754e0ab
Merge pull request #10130 from rifelpet/verify-cloudformation
Add verify-cloudformation script
2020-10-28 11:01:57 -07:00
Kubernetes Prow Robot a83ccdcb25
Merge pull request #10118 from hakman/fix-links
Fix release notes links to point to https://kops.sigs.k8s
2020-10-28 10:11:56 -07:00
Ciprian Hacman 35d49a40a2 Update shell style for CLI docs for better compatibility 2020-10-28 18:23:23 +02:00
Ciprian Hacman f69ffeaa63 Update cluster and state store names in CLI docs 2020-10-28 18:22:53 +02:00
Peter Rifel 6c4273d985
Fix cloudformation lint errors
```
E3002 Invalid Property Resources/AWSAutoScalingAutoScalingGroupnodesmixedinstancesexamplecom/Properties/MixedInstancesPolicy/InstancesDistribution/SpotInstancePool
//kops/tests/integration/update_cluster/mixed_instances_spot/cloudformation.json:321:13

E3031 CidrIp contains invalid characters (Pattern: x.x.x.x/y) at Resources/AWSEC2SecurityGroupIngresssshexternaltonode2001085a348/Properties/CidrIp
//kops/tests/integration/update_cluster/complex/cloudformation.json:833:9
```

I'm using the strings.Contains to determine if a CIDR is v6 since it seems simplest given that we know the value wont have a port number [0]

[0] https://stackoverflow.com/questions/22751035/golang-distinguish-ipv4-ipv6
2020-10-28 10:16:29 -05:00
Peter Rifel b3cdca7908
Add verify-cloudformation script
This is an official AWS linter for cloudformation.
It has already caught a few bugs in our cloudformation json generation logic
2020-10-28 10:09:01 -05:00
Kubernetes Prow Robot fdc56efdff
Merge pull request #10126 from hakman/aws-vpc-cni-reset
Align AWS VPC CNI manifest with upstream
2020-10-28 05:23:56 -07:00
Ciprian Hacman 112221e354 Amazon VPC CNI - update misc 2020-10-28 12:36:27 +02:00
Ciprian Hacman 56fda317d4 Amazon VPC CNI - quote all keys and values 2020-10-28 12:31:46 +02:00
Ciprian Hacman a36fa3f4e1 Amazon VPC CNI - update DaemonSet 2020-10-28 12:31:32 +02:00
Ciprian Hacman 46122cd12b Amazon VPC CNI - rearrange DaemonSet 2020-10-28 12:31:32 +02:00