I had the same problem here, the solution was to change the kubernates file to the java I wanted (in my case 17).
If anyone else has a similar problem, check your kubernates or dockerFile file, thanks for the topic.