jenkinsci / helm-charts

Jenkins helm charts
https://artifacthub.io/packages/helm/jenkinsci/jenkins
Apache License 2.0
575 stars 889 forks source link

The Pod template configuration of k8s cloud is lost #1071

Open huangjun0210 opened 7 months ago

huangjun0210 commented 7 months ago

Describe the bug

When the jenkins container is restarted, the Pod template configuration of k8s cloud is lost. The modifications made in the default mode are restored to the original ones, and the new ones are gone.

Version of Helm and Kubernetes

- Helm: v3.8.2
- Kubernetes: v1.27.11

Chart version

jenkins-5.0.20

What happened?

1. Do some k8s cloud Pod template configuration, such as modifying the default template or adding a new template
2. Install a plug-in and check the box to restart jenkins after the installation is complete.
3. After the installation is completed and jenkins restarts, check the k8s cloud Pod template configuration.
4. The Pod template configuration of k8s cloud is lost.

What you expected to happen?

No response

How to reproduce it

No response

Anything else we need to know?

Before jenkins restarts: image

After restarting jenkins: image

Storage class added in values.yaml

image

typ431127 commented 6 months ago

I also encountered this problem! My jenkins_home and jenkins_cache are configured with local persistence, but the data is still lost after configuration

typ431127 commented 6 months ago

描述错误

当jenkins容器重启的时候,k8s云的Pod模板配置就丢失了,默认模式下做的修改都恢复成原来的,新的都没了。

Helm 和 Kubernetes 的版本

- Helm: v3.8.2
- Kubernetes: v1.27.11

图表版本

jenkins-5.0.20

发生了什么?

1. Do some k8s cloud Pod template configuration, such as modifying the default template or adding a new template
2. Install a plug-in and check the box to restart jenkins after the installation is complete.
3. After the installation is completed and jenkins restarts, check the k8s cloud Pod template configuration.
4. The Pod template configuration of k8s cloud is lost.

您期望发生什么?

没有反应

如何重现

没有反应

我们还需要了解什么吗?

Jenkins重启前: 图像

重启jenkins后: 图像

在 values.yaml 中添加存储类

图像

I solved this problem by changing the defaultconfig parameter in values.yml to false

  JCasC:
    # -- Enables default Jenkins configuration via configuration as code plugin
    defaultConfig: false
qww-ygg commented 3 weeks ago

描述错误

当修改jenkins容器重启的时候,k8s云的Pod模板配置就丢失了,默认模式下做的都恢复成原来的了,新的都已经了。

Helm 和 Kubernetes 的版本

- Helm: v3.8.2
- Kubernetes: v1.27.11

圖表版本

jenkins-5.0.20

发生了什么?

  1. Do some k8s cloud Pod template configuration, such as modifying the default template or adding a new template
  2. Install a plug-in and check the box to restart jenkins after the installation is complete.
  3. After the installation is completed and jenkins restarts, check the k8s cloud Pod template configuration.
  4. The Pod template configuration of k8s cloud is lost.

您期望发生什么?

没有反应

如何重现

没有反应

我们还需要了解什么?

Jenkins重新启动前:图像 重新启动jenkins后:图像 在values.yaml中添加存储类 图像

我通过将 values.yml 中的 defaultconfig 参数更改为 false 解决了此问题

  JCasC:
    # -- Enables default Jenkins configuration via configuration as code plugin
    defaultConfig: false

Thank you.