Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPCT-181: Added the platformName field when External (#54)
On OCP 4.13 we are introducing PlatformType `External`, it requires a field `PlatformName` to be filled on the infrastructure object. This PR export this field to the `report` command, allowing to check the user-defined `platformName` value. https://issues.redhat.com/browse/OPCT-181 Blockers: - [x] #55 - [x] #60 scenarios: - `report` with a single artifact from Platform External cluster: ``` $ ./openshift-provider-cert-linux-amd64 report \ ocp4.13-nightly_UPI_External_202303172104_sonobuoy_adee7267-e433-4c1e-886d-63486b20bbaa.tar.gz > OpenShift Provider Certification Summary < Kubernetes API Server version : v1.26.2+bc894ae OpenShift Container Platform version : 4.13.0-0.nightly-2023-03-11-033820 - Cluster Update Progressing : False - Cluster Target Version : Cluster version is 4.13.0-0.nightly-2023-03-11-033820 OCP Infrastructure: - PlatformType : External (oci) - Name : oci-t13-7kb2h - Topology : HighlyAvailable - ControlPlaneTopology : HighlyAvailable ``` - `report` with a single artifact from Platform External cluster and 'other' (`None`) as a baseline: ``` $ ./openshift-provider-cert-linux-amd64 report \ ocp4.13-nightly_UPI_External_202303172104_sonobuoy_adee7267-e433-4c1e-886d-63486b20bbaa.tar.gz \ -b ocp4.12_UPI_202303201604_sonobuoy_61a9a863-682a-4415-980f-ff3b61f15efa.tar.gz > OpenShift Provider Certification Summary < Kubernetes API Server version : v1.26.2+bc894ae : v1.25.7+eab9cc9 OpenShift Container Platform version : 4.13.0-0.nightly-2023-03-11-033820 : 4.12.8 - Cluster Update Progressing : False : False - Cluster Target Version : Cluster version is 4.13.0-0.nightly-2023-03-11-033820 : Cluster version is 4.12.8 OCP Infrastructure: - PlatformType : External (oci) : None - Name : oci-t13-7kb2h : oci-t15-g5kc8 - Topology : HighlyAvailable : HighlyAvailable - ControlPlaneTopology : HighlyAvailable : HighlyAvailable ``` - `report` with a single artifact from other Platform type (`None`) cluster and 'other' (`External`) as a baseline: ``` $./openshift-provider-cert-linux-amd64 report \ -b ocp4.13-nightly_UPI_External_202303172104_sonobuoy_adee7267-e433-4c1e-886d-63486b20bbaa.tar.gz \ ocp4.12_UPI_202303201604_sonobuoy_61a9a863-682a-4415-980f-ff3b61f15efa.tar.gz > OpenShift Provider Certification Summary < Kubernetes API Server version : v1.25.7+eab9cc9 : v1.26.2+bc894ae OpenShift Container Platform version : 4.12.8 : 4.13.0-0.nightly-2023-03-11-033820 - Cluster Update Progressing : False : False - Cluster Target Version : Cluster version is 4.12.8 : Cluster version is 4.13.0-0.nightly-2023-03-11-033820 OCP Infrastructure: - PlatformType : None : External (oci) - Name : oci-t15-g5kc8 : oci-t13-7kb2h - Topology : HighlyAvailable : HighlyAvailable ```
- Loading branch information