-
Notifications
You must be signed in to change notification settings - Fork 58
Add new cluster profiles - aws-gluster and gcp-logging #176
Add new cluster profiles - aws-gluster and gcp-logging #176
Conversation
919cfbb to
8dd26de
Compare
|
/hold |
|
Since you're doing this, you can also add the test types for #175. The existing test types are here: Lines 290 to 293 in e36b62b
Once they are valid ci-operator test types, we can change the generator to support those templates. |
8dd26de to
92d1eb3
Compare
CONFIGURATION.md
Outdated
| target_cloud: '' | ||
| openshift_ansible_upgrade: | ||
| target_cloud: '' | ||
| previous_ansible_version: '' |
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.
This seems like it could mirror tag_specification and fully define the previous release, so you don't need to explicitly provide the version, image and RPMs
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.
It seems previous_version and previous_rpm_deps should be sufficient
b234481 to
2c8d76b
Compare
CONFIGURATION.md
Outdated
| openshift_ansible_src: | ||
| target_cloud: '' | ||
| openshift_ansible_upgrade: | ||
| target_cloud: '' |
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.
Not sure why the docs state this field is target_cloud and the class json field is cluster_profile. Docs issue?
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.
#178 = )
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.
I blame the happy hour.
2c8d76b to
a1c6330
Compare
a1c6330 to
40ad537
Compare
| needsReleaseRpms = true | ||
| validationErrors = append(validationErrors, validateClusterProfile(fmt.Sprintf("%s", fieldRoot), testConfig.ClusterProfile)) | ||
| } | ||
| if testConfig := test.OpenshiftAnsibleUpgradeClusterTestConfiguration; testConfig != nil { |
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
d8392b6 to
ac9af1d
Compare
|
/unassign |
pkg/api/types.go
Outdated
| ClusterProfile ClusterProfile `json:"cluster_profile"` | ||
| PreviousVersion string `json:"previous_version"` | ||
| PreviousRPMDeps string `json:"previous_rpm_deps"` | ||
| } |
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.
It doesn't look like you need this separate struct. These fields can be added to OpenshiftAnsibleUpgradeClusterTestConfiguration directly.
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.
Because clusters are always upgraded from one version to the next, these could also be derived automatically from tag_specification.
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.
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
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.
Additional struct is for this is no longer created
…ecific test config
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bbguimaraes, vrutkovs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
Related to openshift/release#1878 and openshift/release#1866
This also adds new test types - openshift-ansible upgrade and custom openshift-ansible provisioners.
Fixes #175