Fix failing openshift tests
Some checks failed
Go / Build (pull_request) Successful in 1m44s
lint / lint (1.21) (pull_request) Successful in 2m38s
lint / lint (1.22) (pull_request) Successful in 3m0s
Kompose CI / Test with ${{ matrix.go }} and CROSS_COMPILE=${{ matrix.cross_compile }} (false, 1.21) (pull_request) Failing after 3m53s
Kompose CI / Test with ${{ matrix.go }} and CROSS_COMPILE=${{ matrix.cross_compile }} (false, 1.22) (pull_request) Failing after 4m5s
Kompose CI / Test with ${{ matrix.go }} and CROSS_COMPILE=${{ matrix.cross_compile }} (true, 1.21) (pull_request) Failing after 4m28s
Kompose CI / Test with ${{ matrix.go }} and CROSS_COMPILE=${{ matrix.cross_compile }} (true, 1.22) (pull_request) Failing after 2m57s

This commit is contained in:
Prathamesh Musale 2025-12-01 14:28:07 +05:30
parent c82b499b01
commit 386e2b9ec3

View File

@ -169,6 +169,11 @@ func (o *OpenShift) initDeploymentConfig(name string, service kobject.ServiceCon
podSpec = o.InitPodSpec(name, service, opt)
}
// OpenShift: Set image to a space - actual image comes from ImageStream trigger
for i := range podSpec.Containers {
podSpec.Containers[i].Image = " "
}
dc := &deployapi.DeploymentConfig{
TypeMeta: kapi.TypeMeta{
Kind: "DeploymentConfig",