kubesphere / ks-devops

This is a cloud-native application that focuses on the DevOps area.
https://kubesphere.io/devops/
Apache License 2.0
157 stars 89 forks source link

Failed to load kubeconfigFile popupwindow #841

Closed chilianyi closed 1 year ago

chilianyi commented 1 year ago

What is version of KubeSphere DevOps has the issue?

v3.3.1-rc.1

How did you install the Kubernetes? Or what is the Kubernetes distribution?

kubekey

What happened?

Create pipeline use jenkinsfile:

pipeline {
  agent {
    node {
      label 'base'
    }

  }
  stages {
    stage('stage-vy3bn') {
      agent none
      steps {
        container('base') {
          sh '''echo "apiVersion: v1
kind: Pod
metadata:
  name: curl-util
spec:
  containers:
  - name: curl-util
    image: radial/busyboxplus:curl
    command:
    - sh
    - -c
    - while true; do sleep 1; done" > deploy.yaml'''
          withCredentials([kubeconfigFile(credentialsId : 'self' ,variable : 'KUBECONFIG' ,)]) {
            sh 'envsubst < deploy.yaml | kubectl apply -f -'
          }

        }

      }
    }

  }
}

Create Run is able to success deploy yaml to k8s.

But when modify the pipeline with ui:

截屏2022-10-21 15 13 36

Click the modify, will jump to pipeline detail page

截屏2022-10-21 15 14 07

Relevant log output

No response

Additional information

No response

harrisonliu5 commented 1 year ago

/kind need-to-verify