kubesphere / ks-devops

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

Graphical editing of kubeconfigFile will flash back #996

Open chilianyi opened 1 year ago

chilianyi commented 1 year ago

What is version of KubeSphere DevOps has the issue?

v3.4.0

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

kubekey

What happened?

pipeline {
  agent any
  stages {
    stage('stage-x8135') {
      agent none
      steps {
        withCredentials([kubeconfigFile(credentialsId: 'devops-config', variable: 'KUBECONFIG',)]) {
          sh 'envsubst < app/app-api.yaml | kubectl apply -f -'
        }

        withCredentials([kubeconfigContent(credentialsId: 'devops-config', variable: 'KUBECONFIG')]) {
          echo 'test'
        }

      }
    }

  }
}

When edit, will flash back

截屏2023-09-13 10 54 28 截屏2023-09-13 10 55 46

Relevant log output

No response

Additional information

No response