Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add platform=none as new cloud provider in WMCO e2e test suite - Add a check in testWindowsNodeCreation test to avoid the creation of Windows machines via machineSet, and just wait for the Windows instance(s) to become Windows node(s). - Introduce a parametrized entry point in Makefile to invoke the e2e-test suite from CI, just for the BYOH use case. - Add a new step in run-ci-e2e-test.sh script to create the windows-instances configMap once the operator deployment process is complete. - Add section in HACKING.md to describe the process of running the e2e tests on a platform-agnostic infrastructure.
- Loading branch information
Showing
6 changed files
with
105 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package none | ||
|
||
import ( | ||
"github.com/pkg/errors" | ||
|
||
config "github.com/openshift/api/config/v1" | ||
mapi "github.com/openshift/api/machine/v1beta1" | ||
"github.com/openshift/windows-machine-config-operator/test/e2e/clusterinfo" | ||
) | ||
|
||
// Provider is a provider struct for testing platform=none | ||
type Provider struct { | ||
oc *clusterinfo.OpenShift | ||
} | ||
|
||
// New returns a Provider implementation for platform=none | ||
func New(clientset *clusterinfo.OpenShift) (*Provider, error) { | ||
return &Provider{ | ||
oc: clientset, | ||
}, nil | ||
} | ||
|
||
// GenerateMachineSet is not supported for platform=none and throws an exception | ||
func (p *Provider) GenerateMachineSet(withWindowsLabel bool, replicas int32) (*mapi.MachineSet, error) { | ||
return nil, errors.New("MachineSet generation not supported for platform=none") | ||
} | ||
|
||
// GetType returns the platform type for platform=none | ||
func (p *Provider) GetType() config.PlatformType { | ||
return config.NonePlatformType | ||
} |