forked from openshift/windows-machine-config-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
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 ConfigMap controller test to avoid the creation of Windows instances via machineSet for platform-agnostic infrastructure - Introduce a function to validate windows-instances ConfigMap - 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 a new Makefile target to test BYOH in platform=none, where the number of Windows instances created by MachineSet is fixed to 0.
- Loading branch information
Showing
6 changed files
with
115 additions
and
7 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 | ||
} |