This repository has been archived by the owner on Sep 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.11.x migration from existing clusters without losing state (#1380)
Changelog: * Remove the etcd-environment metadata section on the nodepools if Kubernetes.Networking.SelfHosting is Enabled. This is to break the dependency that exists on the nodepool stacks on etcd stack resources. * Disable the fail-fast on updating legacy kube-aws clusters when the self-hosted network is enabled * Remove the etcd-environment metadata section on the nodepools if Kubernetes.Networking.SelfHosting is Enabled. (#1367) This is to break the dependency that exists on the nodepool stacks on etcd stack resources. Ref #1370 * Modified etcdadm with special export and import commands that will copy state from existing etcd over to the new ones during a migration. * Added systemd migration units * Save existing state into etcd's stack config and pass to cloud-config render routine. * Resolve tests, 1) package cycle with control plane tests depending on etcdconfig which depends on controlplane config 2) Allow mocks to return nil response and not crash lookupExistingEtcdEndpoints
- Loading branch information
1 parent
1ead69a
commit cdceab6
Showing
16 changed files
with
458 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package cfnstack | ||
|
||
import ( | ||
"github.com/aws/aws-sdk-go/service/ec2" | ||
) | ||
|
||
type EC2Interrogator interface { | ||
DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.