jenkinsci / jenkinsci/google-kubernetes-engine-plugin
GKE deployment from Jenkins Issues fails in Verify issue
- Dominant language
- Java
- Stars
- 36
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
### Jenkins and plugins versions report
Environment
```text
Paste the output here
```
### What Operating System are you using (both controller, and any agents involved in the problem)?
`GKE 1.24.7-gke.900
Google Kubernetes Engine Plugin 0.8.7
Jenkins 2.375.2`
### Reproduction steps
` step([
$class: 'KubernetesEngineBuilder',
projectId: env.PROJECT_ID,
clusterName: env.CLUSTER_NAME,
location: env.REGION,
manifestPattern: 'deployment-app.yaml',
credentialsId: env.CREDENTIALS_ID,
verifyDeployments: true])
`
### Expected Results
Deployment will Succeed
### Actual Results
Deployment failing when verfy=true is passed
`Verifying: apps/v1/Deployment: deployment-app
Failed to verify apps/v1/Deployment: deployment-app java.io.IOException: Failed to launch command args: [kubectl, --kubeconfig, /var/lib/jenkins/workspace/sample_dev_gke_deploy@tmp/.kube5135053502047210947config, get, deployment, deployment-app, -o, json], status: 1. Logs: Error from server (NotFound): deployments.apps "deployment-app" not found
at com.google.jenkins.plugins.k8sengine.KubectlWrapper.launchAndJoinCommand(KubectlWrap`
### Anything else?
Contributor guide
Research direction
Start with the KubernetesEngineBuilder verification path and the KubectlWrapper command shown in the failure, then reproduce the Jenkins deployment using verifyDeployments: true. Done means verification can find deployment-app successfully instead of returning a Kubernetes NotFound error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, java, kubernetes
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100