Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openshift shows a warning when creating some resources from the Jenkins pipeline #1072

Closed
3 tasks done
braisvq1996 opened this issue Feb 19, 2024 · 1 comment · Fixed by opendevstack/ods-core#1264, opendevstack/ods-quickstarters#996 or #1075
Labels
bug Something isn't working

Comments

@braisvq1996
Copy link
Contributor

braisvq1996 commented Feb 19, 2024

Describe the bug
The warning should be solved

To Reproduce
Steps to reproduce the behavior:

  1. Provision a new Quickstarter of the ods or ods-service type
  2. See warning on the 1º component pipeline

Expected behavior
Warning should not appear

Screenshots
image

Affected version (please complete the following information):

  • OpenShift: 4.13
  • OpenDevStack 4.x

Log Output


+ oc -n ocp4eutest-cd create -f .d0ab61bd-2960-4df4-b529-9d605bf63cef.yml

W0219 16:13:30.586712     296 shim_kubectl.go:58] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "build.openshift.io/v1" for your resource

buildconfig.build.openshift.io/plain created

+ rm .d0ab61bd-2960-4df4-b529-9d605bf63cef.yml

Additional context
It is likely needed to change the api version on the BC and IS created by the pipeline: https://github.com/opendevstack/ods-jenkins-shared-library/blob/master/src/org/ods/services/OpenShiftService.groovy#L949-L993

Also it would be needed to check if ods-core webhook proxy or even the templates also use the same api version

Api versions:

Kind old apiVersion new apiVersion
BuildConfig v1 build.openshift.io/v1
Route v1 route.openshift.io/v1
ImageStream v1 image.openshift.io/v1
DeploymentConfing v1 apps.openshift.io/v1

To do:

@braisvq1996
Copy link
Contributor Author

Still left ods-quickstarters and ods-jenkins-shared library to check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant