Fix openshift DeploymentConfig and ImageStream APIVersions (#1598)

* fix openshift dc and image stream api version

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

* e2e: Update Openshift manifests to update the API Version

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>

---------

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
This commit is contained in:
AhmedGrati
2023-04-05 14:28:19 -04:00
committed by GitHub
parent 78700a215f
commit 59d5532181
19 changed files with 67 additions and 58 deletions
@@ -105,6 +105,11 @@ func TestInitDeploymentConfig(t *testing.T) {
if spec.Spec.Triggers[1].ImageChangeParams.ContainerNames[0] != "myfoobarname" {
t.Errorf("Expected myfoobarname for name, actual %s", spec.Spec.Triggers[1].ImageChangeParams.ContainerNames[0])
}
// Check that the APIVersion is equal to "apps.openshift.io/v1"
if spec.APIVersion != "apps.openshift.io/v1" {
t.Errorf("Expected 'apps.openshift.io/v1' for APIVersion, actual %s", spec.APIVersion)
}
}
func TestKomposeConvertRoute(t *testing.T) {