-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vm based providers: Introduce robust stack provider (#954)
* psa: Add missing psa configuration for kubeadm_ipv6.conf Signed-off-by: Or Shoval <[email protected]> * k8s-1.25-ipv6: Delete provider Create robust stack provider. Signed-off-by: Or Shoval <[email protected]> * publish: Create only the robust provider Signed-off-by: Or Shoval <[email protected]> * vm based cluster: Support both dual stack and single stack In order to reduce busywork and number of providers, Update the provider to support both single stack and dual stack according cluster-up configuration. This commit introduces KUBEVIRT_SINGLE_STACK which determines which stack to use (default: dual stack). Remove the logic that allows provisioning single stack, as we don't need it, and it will be easier to maintain without it. Signed-off-by: Or Shoval <[email protected]> * single stack: Move single stack sanity check Use the sanity check as part of cluster-up Fix it to wait for the calico pod to be ready before checking its IP to avoid flakes. Run single stack cluser-up sanity check as part of check cluster-up. Signed-off-by: Or Shoval <[email protected]> * gocli: Remove provision stack type argument Since we don't support anymore provisioning of single stack remove it's flag. Signed-off-by: Or Shoval <[email protected]> * k8s-1.26: Support robust stack provider Signed-off-by: Or Shoval <[email protected]> * k8s-1.26-centos9: Adapt to robust provider Signed-off-by: Or Shoval <[email protected]> --------- Signed-off-by: Or Shoval <[email protected]>
- Loading branch information
Showing
136 changed files
with
136 additions
and
83,878 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
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 |
---|---|---|
|
@@ -44,7 +44,6 @@ func NewProvisionCommand() *cobra.Command { | |
provision.Flags().Uint("ssh-port", 0, "port on localhost for ssh server") | ||
provision.Flags().String("container-suffix", "", "use additional suffix for the provisioned container image") | ||
provision.Flags().String("phases", "linux,k8s", "phases to run, possible values: linux,k8s linux k8s") | ||
provision.Flags().String("network-stack", "dualstack", "cluster network stack, possible values: dualstack ipv6") | ||
provision.Flags().StringArray("additional-persistent-kernel-arguments", []string{}, "additional persistent kernel arguments applied after provision") | ||
|
||
return provision | ||
|
@@ -86,11 +85,6 @@ func provisionCluster(cmd *cobra.Command, args []string) (retErr error) { | |
target = base + "-dev" | ||
} | ||
|
||
networkStack, err := cmd.Flags().GetString("network-stack") | ||
if err != nil { | ||
return err | ||
} | ||
|
||
memory, err := cmd.Flags().GetString("memory") | ||
if err != nil { | ||
return err | ||
|
@@ -251,7 +245,7 @@ func provisionCluster(cmd *cobra.Command, args []string) (retErr error) { | |
return err | ||
} | ||
|
||
envVars := fmt.Sprintf("version=%s networkstack=%s slim=%t", version, networkStack, slim) | ||
envVars := fmt.Sprintf("version=%s slim=%t", version, slim) | ||
if strings.Contains(phases, "linux") { | ||
// Copy manifests to the VM | ||
err = _cmd(cli, nodeContainer(prefix, nodeName), "scp -r -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i vagrant.key -P 22 /scripts/manifests/* [email protected]:/tmp", "copying manifests to the VM") | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.