-
Notifications
You must be signed in to change notification settings - Fork 58
Add new cluster profiles - aws-gluster and gcp-logging #176
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -287,10 +287,12 @@ type TestStepConfiguration struct { | |
| ArtifactDir string `json:"artifact_dir"` | ||
|
|
||
| // Only one of the following can be not-null. | ||
| ContainerTestConfiguration *ContainerTestConfiguration `json:"container,omitempty"` | ||
| OpenshiftAnsibleClusterTestConfiguration *OpenshiftAnsibleClusterTestConfiguration `json:"openshift_ansible,omitempty"` | ||
| OpenshiftAnsibleSrcClusterTestConfiguration *OpenshiftAnsibleSrcClusterTestConfiguration `json:"openshift_ansible_src,omitempty"` | ||
| OpenshiftInstallerClusterTestConfiguration *OpenshiftInstallerClusterTestConfiguration `json:"openshift_installer,omitempty"` | ||
| ContainerTestConfiguration *ContainerTestConfiguration `json:"container,omitempty"` | ||
| OpenshiftAnsibleClusterTestConfiguration *OpenshiftAnsibleClusterTestConfiguration `json:"openshift_ansible,omitempty"` | ||
| OpenshiftAnsibleSrcClusterTestConfiguration *OpenshiftAnsibleSrcClusterTestConfiguration `json:"openshift_ansible_src,omitempty"` | ||
| OpenshiftAnsibleCustomClusterTestConfiguration *OpenshiftAnsibleCustomClusterTestConfiguration `json:"openshift_ansible_custom,omitempty"` | ||
| OpenshiftAnsibleUpgradeClusterTestConfiguration *OpenshiftAnsibleUpgradeClusterTestConfiguration `json:"openshift_ansible_upgrade,omitempty"` | ||
| OpenshiftInstallerClusterTestConfiguration *OpenshiftInstallerClusterTestConfiguration `json:"openshift_installer,omitempty"` | ||
| } | ||
|
|
||
| // ContainerTestConfiguration describes a test that runs a | ||
|
|
@@ -307,12 +309,14 @@ type ContainerTestConfiguration struct { | |
| type ClusterProfile string | ||
|
|
||
| const ( | ||
| ClusterProfileAWS ClusterProfile = "aws" | ||
| ClusterProfileAWSAtomic = "aws-atomic" | ||
| ClusterProfileAWSCentos = "aws-centos" | ||
| ClusterProfileGCP = "gcp" | ||
| ClusterProfileGCPHA = "gcp-ha" | ||
| ClusterProfileGCPCRIO = "gcp-crio" | ||
| ClusterProfileAWS ClusterProfile = "aws" | ||
| ClusterProfileAWSAtomic = "aws-atomic" | ||
| ClusterProfileAWSCentos = "aws-centos" | ||
| ClusterProfileAWSGluster = "aws-gluster" | ||
| ClusterProfileGCP = "gcp" | ||
| ClusterProfileGCPHA = "gcp-ha" | ||
| ClusterProfileGCPCRIO = "gcp-crio" | ||
| ClusterProfileGCPLogging = "gcp-logging" | ||
| ) | ||
|
|
||
| // ClusterTestConfiguration describes a test that provisions | ||
|
|
@@ -321,6 +325,14 @@ type ClusterTestConfiguration struct { | |
| ClusterProfile ClusterProfile `json:"cluster_profile"` | ||
| } | ||
|
|
||
| // ClusterUpgradeTestConfiguration describes a test that provisions | ||
| // a cluster, upgrades it and runs a command in it. | ||
| type ClusterUpgradeTestConfiguration struct { | ||
| ClusterProfile ClusterProfile `json:"cluster_profile"` | ||
| PreviousVersion string `json:"previous_version"` | ||
| PreviousRPMDeps string `json:"previous_rpm_deps"` | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't look like you need this separate
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because clusters are always upgraded from one version to the next, these could also be derived automatically from
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deriving previous version is fairly complicated, 4.0 -> 3.11 (it could as well be 3.12 -> 3.11), previous RPM deps repo is not easy too
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additional struct is for this is no longer created |
||
|
|
||
| // OpenshiftAnsibleClusterTestConfiguration describes a test | ||
| // that provisions a cluster using openshift-ansible and runs | ||
| // conformance tests. | ||
|
|
@@ -335,6 +347,20 @@ type OpenshiftAnsibleSrcClusterTestConfiguration struct { | |
| ClusterTestConfiguration `json:",inline"` | ||
| } | ||
|
|
||
| // OpenshiftAnsibleCustomClusterTestConfiguration describes a | ||
| // test that provisions a cluster using openshift-ansible's | ||
| // custom provisioner, and runs conformance tests. | ||
| type OpenshiftAnsibleCustomClusterTestConfiguration struct { | ||
| ClusterTestConfiguration `json:",inline"` | ||
| } | ||
|
|
||
| // OpenshiftAnsibleUpgradeClusterTestConfiguration describes a | ||
| // test that provisions a cluster using openshift-ansible, | ||
| // upgrades it to the next version and runs conformance tests. | ||
| type OpenshiftAnsibleUpgradeClusterTestConfiguration struct { | ||
| ClusterTestConfiguration `json:",inline"` | ||
| } | ||
|
|
||
| // OpenshiftInstallerClusterTestConfiguration describes a test | ||
| // that provisions a cluster using openshift-installer and runs | ||
| // conformance tests. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do similar for custom?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done