Task ‘devops’ failed:
{
“counter”: 144,
“created”: “2024-11-21T03:08:01.397563”,
“end_line”: 174,
“event”: “runner_on_failed”,
“event_data”: {
“duration”: 90.686697,
“end”: “2024-11-21T03:08:01.397438”,
“event_loop”: null,
“host”: “localhost”,
“ignore_errors”: null,
“play”: “localhost”,
“play_pattern”: “localhost”,
“play_uuid”: “8202c861-e8ed-0635-195c-000000000005”,
“playbook”: “/kubesphere/playbooks/devops.yaml”,
“playbook_uuid”: “48d6fa0e-943d-40cd-a6e1-503cf0d53d8d”,
“remote_addr”: “127.0.0.1”,
“res”: {
“ansible_no_log”: false,
“attempts”: 3,
“changed”: true,
“cmd”: “# Delete Job migrate because ‘helm upgrade’ will try to update immutable fields of Job, which is not allowed. \n/usr/local/bin/kubectl delete job -n kubesphere-devops-system migrate –ignore-not-found\n\nks_devops_chart_version=0.1.15\ncharts_folder=/kubesphere/kubesphere/ks-devops/charts\nks_devops_chart=$charts_folder/ks-devops-$ks_devops_chart_version.tgz\n\n# Create or update CRDs manually\ntar xzvf $ks_devops_chart -C $charts_folder\n/usr/local/bin/kubectl apply -f $charts_folder/ks-devops/crds\n/usr/local/bin/kubectl apply -f $charts_folder/ks-devops/charts/s2i/crds\n\n# Import the templates seperately due the potential webhook issues\nrm -rf s2i-templates\nhelm template $charts_folder/ks-devops/charts/s2i/ -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml -s templates/binary.yaml -s templates/java.yaml -s templates/nodejs.yaml -s templates/python.yaml -s templates/tomcat.yaml > s2i-templates\templates.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/binary.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/java.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/nodejs.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/python.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/tomcat.yaml\n\n/usr/local/bin/helm upgrade –install devops $ks_devops_chart -n kubesphere-devops-system -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml –wait\n\n/usr/local/bin/kubectl apply -f s2i-templates\templates.yaml\n”,
“delta”: “0:00:11.817234”,
“end”: “2024-11-20 22:08:01.308146”,
“invocation”: {
“module_args”: {
“raw_params”: “# Delete Job migrate because ‘helm upgrade’ will try to update immutable fields of Job, which is not allowed. \n/usr/local/bin/kubectl delete job -n kubesphere-devops-system migrate –ignore-not-found\n\nks_devops_chart_version=0.1.15\ncharts_folder=/kubesphere/kubesphere/ks-devops/charts\nks_devops_chart=$charts_folder/ks-devops-$ks_devops_chart_version.tgz\n\n# Create or update CRDs manually\ntar xzvf $ks_devops_chart -C $charts_folder\n/usr/local/bin/kubectl apply -f $charts_folder/ks-devops/crds\n/usr/local/bin/kubectl apply -f $charts_folder/ks-devops/charts/s2i/crds\n\n# Import the templates seperately due the potential webhook issues\nrm -rf s2i-templates\nhelm template $charts_folder/ks-devops/charts/s2i/ -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml -s templates/binary.yaml -s templates/java.yaml -s templates/nodejs.yaml -s templates/python.yaml -s templates/tomcat.yaml > s2i-templates\templates.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/binary.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/java.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/nodejs.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/python.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/tomcat.yaml\n\n/usr/local/bin/helm upgrade –install devops $ks_devops_chart -n kubesphere-devops-system -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml –wait\n\n/usr/local/bin/kubectl apply -f s2i-templates\templates.yaml\n”,
“uses_shell”: true,
“argv”: null,
“chdir”: null,
“creates”: null,
“executable”: “/bin/bash”,
“removes”: null,
“stdin”: null,
“stdin_add_newline”: true,
“strip_empty_ends”: true,
“warn”: true
}
},
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2024-11-20 22:07:49.490912”,
“stderr”: "W1120 22:07:59.508782 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\nW1120 22:07:59.510165 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\nW1120 22:07:59.513767 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\nError: UPGRADE FAILED: failed to create resource: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:04Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z",
“stderr_lines”: [
“W1120 22:07:59.508782 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob”,
“W1120 22:07:59.510165 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob”,
“W1120 22:07:59.513767 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob”,
"Error: UPGRADE FAILED: failed to create resource: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:04Z is after 2024-02-14T06:08:48Z",
"Error from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z",
"Error from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z",
"Error from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z",
"Error from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z",
"Error from server (InternalError): error when creating \“s2i-templatestemplates.yaml\”: Internal error occurred: failed calling webhook \“s2ibuildertemplate.kb.io\”: failed to call webhook: Post \“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z"
],
“stdout”: “ks-devops/Chart.yaml\nks-devops/Chart.lock\nks-devops/values.yaml\nks-devops/templates/NOTES.txt\nks-devops/templates/helpers.tpl\nks-devops/templates/cluster-template-ci.yaml\nks-devops/templates/cluster-template-cicd.yaml\nks-devops/templates/cluster-template-golang.yaml\nks-devops/templates/cluster-template-maven.yaml\nks-devops/templates/cluster-template-nodejs.yaml\nks-devops/templates/config.yaml\nks-devops/templates/cronjob-gc.yaml\nks-devops/templates/deployment-apiserver.yaml\nks-devops/templates/deployment-controller.yaml\nks-devops/templates/jenkins-agent-config.yaml\nks-devops/templates/service-apiserver.yaml\nks-devops/templates/serviceaccount.yaml\nks-devops/templates/tests/test-connection.yaml\nks-devops/.helmignore\nks-devops/README.md\nks-devops/crds/devops.kubesphere.io_clustertemplates.yaml\nks-devops/crds/devops.kubesphere.io_devopsprojects.yaml\nks-devops/crds/devops.kubesphere.io_gitrepositories.yaml\nks-devops/crds/devops.kubesphere.io_pipelineruns.yaml\nks-devops/crds/devops.kubesphere.io_pipelines.yaml\nks-devops/crds/devops.kubesphere.io_templates.yaml\nks-devops/crds/gitops.kubesphere.io_applications.yaml\nks-devops/charts/s2i/Chart.yaml\nks-devops/charts/s2i/values.yaml\nks-devops/charts/s2i/templates/NOTES.txt\nks-devops/charts/s2i/templates/helpers.tpl\nks-devops/charts/s2i/templates/binary.yaml\nks-devops/charts/s2i/templates/java.yaml\nks-devops/charts/s2i/templates/nodejs.yaml\nks-devops/charts/s2i/templates/operator.yaml\nks-devops/charts/s2i/templates/prometheus-servicemonitor.yaml\nks-devops/charts/s2i/templates/python.yaml\nks-devops/charts/s2i/templates/tests/.gitkeep\nks-devops/charts/s2i/templates/tomcat.yaml\nks-devops/charts/s2i/.helmignore\nks-devops/charts/s2i/README.md\nks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibinaries.yaml\nks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibuilders.yaml\nks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibuildertemplates.yaml\nks-devops/charts/s2i/crds/devops.kubesphere.io_s2iruns.yaml\nks-devops/charts/jenkins/Chart.yaml\nks-devops/charts/jenkins/values.yaml\nks-devops/charts/jenkins/templates/NOTES.txt\nks-devops/charts/jenkins/templates/helpers.tpl\nks-devops/charts/jenkins/templates/config.yaml\nks-devops/charts/jenkins/templates/home-pvc.yaml\nks-devops/charts/jenkins/templates/jenkins-agent-config.yaml\nks-devops/charts/jenkins/templates/jenkins-agent-svc.yaml\nks-devops/charts/jenkins/templates/jenkins-casc-config.yml\nks-devops/charts/jenkins/templates/jenkins-master-deployment.yaml\nks-devops/charts/jenkins/templates/jenkins-master-networkpolicy.yaml\nks-devops/charts/jenkins/templates/jenkins-master-statefulset.yaml\nks-devops/charts/jenkins/templates/jenkins-master-svc.yaml\nks-devops/charts/jenkins/templates/jenkins-test.yaml\nks-devops/charts/jenkins/templates/jenkins-worker-limitrange.yaml\nks-devops/charts/jenkins/templates/jenkins-worker-namespace.yaml\nks-devops/charts/jenkins/templates/jenkins-worker-namespacequota.yaml\nks-devops/charts/jenkins/templates/jenkins-worker-rbac.yaml\nks-devops/charts/jenkins/templates/jobs.yaml\nks-devops/charts/jenkins/templates/prometheus-prometheusrule.yaml\nks-devops/charts/jenkins/templates/prometheus-servicemonitor.yaml\nks-devops/charts/jenkins/templates/rbac.yaml\nks-devops/charts/jenkins/templates/secret.yaml\nks-devops/charts/jenkins/templates/service-account.yaml\nks-devops/charts/jenkins/.helmignore\nks-devops/charts/jenkins/README.md\ncustomresourcedefinition.apiextensions.k8s.io/clustertemplates.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/devopsprojects.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/gitrepositories.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/pipelineruns.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/pipelines.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/templates.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/applications.gitops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/s2ibinaries.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/s2ibuilders.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/s2ibuildertemplates.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/s2iruns.devops.kubesphere.io configured”,
“stdout_lines”: [
“ks-devops/Chart.yaml”,
“ks-devops/Chart.lock”,
“ks-devops/values.yaml”,
“ks-devops/templates/NOTES.txt”,
“ks-devops/templates/helpers.tpl”,
“ks-devops/templates/cluster-template-ci.yaml”,
“ks-devops/templates/cluster-template-cicd.yaml”,
“ks-devops/templates/cluster-template-golang.yaml”,
“ks-devops/templates/cluster-template-maven.yaml”,
“ks-devops/templates/cluster-template-nodejs.yaml”,
“ks-devops/templates/config.yaml”,
“ks-devops/templates/cronjob-gc.yaml”,
“ks-devops/templates/deployment-apiserver.yaml”,
“ks-devops/templates/deployment-controller.yaml”,
“ks-devops/templates/jenkins-agent-config.yaml”,
“ks-devops/templates/service-apiserver.yaml”,
“ks-devops/templates/serviceaccount.yaml”,
“ks-devops/templates/tests/test-connection.yaml”,
“ks-devops/.helmignore”,
“ks-devops/README.md”,
“ks-devops/crds/devops.kubesphere.io_clustertemplates.yaml”,
“ks-devops/crds/devops.kubesphere.io_devopsprojects.yaml”,
“ks-devops/crds/devops.kubesphere.io_gitrepositories.yaml”,
“ks-devops/crds/devops.kubesphere.io_pipelineruns.yaml”,
“ks-devops/crds/devops.kubesphere.io_pipelines.yaml”,
“ks-devops/crds/devops.kubesphere.io_templates.yaml”,
“ks-devops/crds/gitops.kubesphere.io_applications.yaml”,
“ks-devops/charts/s2i/Chart.yaml”,
“ks-devops/charts/s2i/values.yaml”,
“ks-devops/charts/s2i/templates/NOTES.txt”,
“ks-devops/charts/s2i/templates/helpers.tpl”,
“ks-devops/charts/s2i/templates/binary.yaml”,
“ks-devops/charts/s2i/templates/java.yaml”,
“ks-devops/charts/s2i/templates/nodejs.yaml”,
“ks-devops/charts/s2i/templates/operator.yaml”,
“ks-devops/charts/s2i/templates/prometheus-servicemonitor.yaml”,
“ks-devops/charts/s2i/templates/python.yaml”,
“ks-devops/charts/s2i/templates/tests/.gitkeep”,
“ks-devops/charts/s2i/templates/tomcat.yaml”,
“ks-devops/charts/s2i/.helmignore”,
“ks-devops/charts/s2i/README.md”,
“ks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibinaries.yaml”,
“ks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibuilders.yaml”,
“ks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibuildertemplates.yaml”,
“ks-devops/charts/s2i/crds/devops.kubesphere.io_s2iruns.yaml”,
“ks-devops/charts/jenkins/Chart.yaml”,
“ks-devops/charts/jenkins/values.yaml”,
“ks-devops/charts/jenkins/templates/NOTES.txt”,
“ks-devops/charts/jenkins/templates/helpers.tpl”,
“ks-devops/charts/jenkins/templates/config.yaml”,
“ks-devops/charts/jenkins/templates/home-pvc.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-agent-config.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-agent-svc.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-casc-config.yml”,
“ks-devops/charts/jenkins/templates/jenkins-master-deployment.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-master-networkpolicy.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-master-statefulset.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-master-svc.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-test.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-worker-limitrange.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-worker-namespace.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-worker-namespacequota.yaml”,
“ks-devops/charts/jenkins/templates/jenkins-worker-rbac.yaml”,
“ks-devops/charts/jenkins/templates/jobs.yaml”,
“ks-devops/charts/jenkins/templates/prometheus-prometheusrule.yaml”,
“ks-devops/charts/jenkins/templates/prometheus-servicemonitor.yaml”,
“ks-devops/charts/jenkins/templates/rbac.yaml”,
“ks-devops/charts/jenkins/templates/secret.yaml”,
“ks-devops/charts/jenkins/templates/service-account.yaml”,
“ks-devops/charts/jenkins/.helmignore”,
“ks-devops/charts/jenkins/README.md”,
“customresourcedefinition.apiextensions.k8s.io/clustertemplates.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/devopsprojects.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/gitrepositories.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/pipelineruns.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/pipelines.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/templates.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/applications.gitops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/s2ibinaries.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/s2ibuilders.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/s2ibuildertemplates.devops.kubesphere.io configured”,
“customresourcedefinition.apiextensions.k8s.io/s2iruns.devops.kubesphere.io configured”
]
},
“resolved_action”: “command”,
“role”: “ks-devops”,
“start”: “2024-11-21T03:06:30.710741”,
“task”: “ks-devops | Upgrading or installing ks-devops”,
“task_action”: “command”,
“task_args”: "",
“task_path”: “/kubesphere/installer/roles/ks-devops/tasks/main.yaml:191”,
“task_uuid”: “8202c861-e8ed-0635-195c-000000000042”,
“uuid”: “64757f33-4f2d-4ece-98b6-54bc9fc0b6e0”
},
“parent_uuid”: “8202c861-e8ed-0635-195c-000000000042”,
“pid”: 26453,
“runner_ident”: “devops”,
“start_line”: 173,
“stdout”: "fatal: [localhost]: FAILED! => {\“attempts\”: 3, \“changed\”: true, \“cmd\”: \“# Delete Job migrate because ‘helm upgrade’ will try to update immutable fields of Job, which is not allowed. \n/usr/local/bin/kubectl delete job -n kubesphere-devops-system migrate –ignore-not-found\n\nks_devops_chart_version=0.1.15\ncharts_folder=/kubesphere/kubesphere/ks-devops/charts\nks_devops_chart=$charts_folder/ks-devops-$ks_devops_chart_version.tgz\n\n# Create or update CRDs manually\ntar xzvf $ks_devops_chart -C $charts_folder\n/usr/local/bin/kubectl apply -f $charts_folder/ks-devops/crds\n/usr/local/bin/kubectl apply -f $charts_folder/ks-devops/charts/s2i/crds\n\n# Import the templates seperately due the potential webhook issues\nrm -rf s2i-templates\nhelm template $charts_folder/ks-devops/charts/s2i/ -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml -s templates/binary.yaml -s templates/java.yaml -s templates/nodejs.yaml -s templates/python.yaml -s templates/tomcat.yaml > s2i-templates\\templates.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/binary.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/java.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/nodejs.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/python.yaml\nrm -rf $charts_folder/ks-devops/charts/s2i/templates/tomcat.yaml\n\n/usr/local/bin/helm upgrade –install devops $ks_devops_chart -n kubesphere-devops-system -f /kubesphere/kubesphere/ks-devops/ks-devops-values.yaml –wait\n\n/usr/local/bin/kubectl apply -f s2i-templates\\templates.yaml\n\”, \“delta\”: \“0:00:11.817234\”, \“end\”: \“2024-11-20 22:08:01.308146\”, \“msg\”: \“non-zero return code\”, \“rc\”: 1, \“start\”: \“2024-11-20 22:07:49.490912\”, \“stderr\”: \"W1120 22:07:59.508782 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\nW1120 22:07:59.510165 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\nW1120 22:07:59.513767 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\nError: UPGRADE FAILED: failed to create resource: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:04Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\nError from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\", \“stderr_lines\”: [\“W1120 22:07:59.508782 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\”, \“W1120 22:07:59.510165 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\”, \“W1120 22:07:59.513767 29944 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob\”, \"Error: UPGRADE FAILED: failed to create resource: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:04Z is after 2024-02-14T06:08:48Z\", \"Error from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\", \"Error from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\", \"Error from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\", \"Error from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\", \"Error from server (InternalError): error when creating \\“s2i-templatestemplates.yaml\\”: Internal error occurred: failed calling webhook \\“s2ibuildertemplate.kb.io\\”: failed to call webhook: Post \\“https://webhook-server-service.kubesphere-devops-system.svc:443/validate-devops-kubesphere-io-v1alpha1-s2ibuildertemplate?timeout=10s\\”: x509: certificate has expired or is not yet valid: current time 2024-11-21T03:08:06Z is after 2024-02-14T06:08:48Z\"], \“stdout\”: \“ks-devops/Chart.yaml\nks-devops/Chart.lock\nks-devops/values.yaml\nks-devops/templates/NOTES.txt\nks-devops/templates/helpers.tpl\nks-devops/templates/cluster-template-ci.yaml\nks-devops/templates/cluster-template-cicd.yaml\nks-devops/templates/cluster-template-golang.yaml\nks-devops/templates/cluster-template-maven.yaml\nks-devops/templates/cluster-template-nodejs.yaml\nks-devops/templates/config.yaml\nks-devops/templates/cronjob-gc.yaml\nks-devops/templates/deployment-apiserver.yaml\nks-devops/templates/deployment-controller.yaml\nks-devops/templates/jenkins-agent-config.yaml\nks-devops/templates/service-apiserver.yaml\nks-devops/templates/serviceaccount.yaml\nks-devops/templates/tests/test-connection.yaml\nks-devops/.helmignore\nks-devops/README.md\nks-devops/crds/devops.kubesphere.io_clustertemplates.yaml\nks-devops/crds/devops.kubesphere.io_devopsprojects.yaml\nks-devops/crds/devops.kubesphere.io_gitrepositories.yaml\nks-devops/crds/devops.kubesphere.io_pipelineruns.yaml\nks-devops/crds/devops.kubesphere.io_pipelines.yaml\nks-devops/crds/devops.kubesphere.io_templates.yaml\nks-devops/crds/gitops.kubesphere.io_applications.yaml\nks-devops/charts/s2i/Chart.yaml\nks-devops/charts/s2i/values.yaml\nks-devops/charts/s2i/templates/NOTES.txt\nks-devops/charts/s2i/templates/helpers.tpl\nks-devops/charts/s2i/templates/binary.yaml\nks-devops/charts/s2i/templates/java.yaml\nks-devops/charts/s2i/templates/nodejs.yaml\nks-devops/charts/s2i/templates/operator.yaml\nks-devops/charts/s2i/templates/prometheus-servicemonitor.yaml\nks-devops/charts/s2i/templates/python.yaml\nks-devops/charts/s2i/templates/tests/.gitkeep\nks-devops/charts/s2i/templates/tomcat.yaml\nks-devops/charts/s2i/.helmignore\nks-devops/charts/s2i/README.md\nks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibinaries.yaml\nks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibuilders.yaml\nks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibuildertemplates.yaml\nks-devops/charts/s2i/crds/devops.kubesphere.io_s2iruns.yaml\nks-devops/charts/jenkins/Chart.yaml\nks-devops/charts/jenkins/values.yaml\nks-devops/charts/jenkins/templates/NOTES.txt\nks-devops/charts/jenkins/templates/helpers.tpl\nks-devops/charts/jenkins/templates/config.yaml\nks-devops/charts/jenkins/templates/home-pvc.yaml\nks-devops/charts/jenkins/templates/jenkins-agent-config.yaml\nks-devops/charts/jenkins/templates/jenkins-agent-svc.yaml\nks-devops/charts/jenkins/templates/jenkins-casc-config.yml\nks-devops/charts/jenkins/templates/jenkins-master-deployment.yaml\nks-devops/charts/jenkins/templates/jenkins-master-networkpolicy.yaml\nks-devops/charts/jenkins/templates/jenkins-master-statefulset.yaml\nks-devops/charts/jenkins/templates/jenkins-master-svc.yaml\nks-devops/charts/jenkins/templates/jenkins-test.yaml\nks-devops/charts/jenkins/templates/jenkins-worker-limitrange.yaml\nks-devops/charts/jenkins/templates/jenkins-worker-namespace.yaml\nks-devops/charts/jenkins/templates/jenkins-worker-namespacequota.yaml\nks-devops/charts/jenkins/templates/jenkins-worker-rbac.yaml\nks-devops/charts/jenkins/templates/jobs.yaml\nks-devops/charts/jenkins/templates/prometheus-prometheusrule.yaml\nks-devops/charts/jenkins/templates/prometheus-servicemonitor.yaml\nks-devops/charts/jenkins/templates/rbac.yaml\nks-devops/charts/jenkins/templates/secret.yaml\nks-devops/charts/jenkins/templates/service-account.yaml\nks-devops/charts/jenkins/.helmignore\nks-devops/charts/jenkins/README.md\ncustomresourcedefinition.apiextensions.k8s.io/clustertemplates.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/devopsprojects.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/gitrepositories.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/pipelineruns.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/pipelines.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/templates.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/applications.gitops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/s2ibinaries.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/s2ibuilders.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/s2ibuildertemplates.devops.kubesphere.io configured\ncustomresourcedefinition.apiextensions.k8s.io/s2iruns.devops.kubesphere.io configured\”, \“stdout_lines\”: [\“ks-devops/Chart.yaml\”, \“ks-devops/Chart.lock\”, \“ks-devops/values.yaml\”, \“ks-devops/templates/NOTES.txt\”, \“ks-devops/templates/helpers.tpl\”, \“ks-devops/templates/cluster-template-ci.yaml\”, \“ks-devops/templates/cluster-template-cicd.yaml\”, \“ks-devops/templates/cluster-template-golang.yaml\”, \“ks-devops/templates/cluster-template-maven.yaml\”, \“ks-devops/templates/cluster-template-nodejs.yaml\”, \“ks-devops/templates/config.yaml\”, \“ks-devops/templates/cronjob-gc.yaml\”, \“ks-devops/templates/deployment-apiserver.yaml\”, \“ks-devops/templates/deployment-controller.yaml\”, \“ks-devops/templates/jenkins-agent-config.yaml\”, \“ks-devops/templates/service-apiserver.yaml\”, \“ks-devops/templates/serviceaccount.yaml\”, \“ks-devops/templates/tests/test-connection.yaml\”, \“ks-devops/.helmignore\”, \“ks-devops/README.md\”, \“ks-devops/crds/devops.kubesphere.io_clustertemplates.yaml\”, \“ks-devops/crds/devops.kubesphere.io_devopsprojects.yaml\”, \“ks-devops/crds/devops.kubesphere.io_gitrepositories.yaml\”, \“ks-devops/crds/devops.kubesphere.io_pipelineruns.yaml\”, \“ks-devops/crds/devops.kubesphere.io_pipelines.yaml\”, \“ks-devops/crds/devops.kubesphere.io_templates.yaml\”, \“ks-devops/crds/gitops.kubesphere.io_applications.yaml\”, \“ks-devops/charts/s2i/Chart.yaml\”, \“ks-devops/charts/s2i/values.yaml\”, \“ks-devops/charts/s2i/templates/NOTES.txt\”, \“ks-devops/charts/s2i/templates/helpers.tpl\”, \“ks-devops/charts/s2i/templates/binary.yaml\”, \“ks-devops/charts/s2i/templates/java.yaml\”, \“ks-devops/charts/s2i/templates/nodejs.yaml\”, \“ks-devops/charts/s2i/templates/operator.yaml\”, \“ks-devops/charts/s2i/templates/prometheus-servicemonitor.yaml\”, \“ks-devops/charts/s2i/templates/python.yaml\”, \“ks-devops/charts/s2i/templates/tests/.gitkeep\”, \“ks-devops/charts/s2i/templates/tomcat.yaml\”, \“ks-devops/charts/s2i/.helmignore\”, \“ks-devops/charts/s2i/README.md\”, \“ks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibinaries.yaml\”, \“ks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibuilders.yaml\”, \“ks-devops/charts/s2i/crds/devops.kubesphere.io_s2ibuildertemplates.yaml\”, \“ks-devops/charts/s2i/crds/devops.kubesphere.io_s2iruns.yaml\”, \“ks-devops/charts/jenkins/Chart.yaml\”, \“ks-devops/charts/jenkins/values.yaml\”, \“ks-devops/charts/jenkins/templates/NOTES.txt\”, \“ks-devops/charts/jenkins/templates/_helpers.tpl\”, \“ks-devops/charts/jenkins/templates/config.yaml\”, \“ks-devops/charts/jenkins/templates/home-pvc.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-agent-config.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-agent-svc.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-casc-config.yml\”, \“ks-devops/charts/jenkins/templates/jenkins-master-deployment.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-master-networkpolicy.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-master-statefulset.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-master-svc.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-test.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-worker-limitrange.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-worker-namespace.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-worker-namespacequota.yaml\”, \“ks-devops/charts/jenkins/templates/jenkins-worker-rbac.yaml\”, \“ks-devops/charts/jenkins/templates/jobs.yaml\”, \“ks-devops/charts/jenkins/templates/prometheus-prometheusrule.yaml\”, \“ks-devops/charts/jenkins/templates/prometheus-servicemonitor.yaml\”, \“ks-devops/charts/jenkins/templates/rbac.yaml\”, \“ks-devops/charts/jenkins/templates/secret.yaml\”, \“ks-devops/charts/jenkins/templates/service-account.yaml\”, \“ks-devops/charts/jenkins/.helmignore\”, \“ks-devops/charts/jenkins/README.md\”, \“customresourcedefinition.apiextensions.k8s.io/clustertemplates.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/devopsprojects.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/gitrepositories.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/pipelineruns.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/pipelines.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/templates.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/applications.gitops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/s2ibinaries.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/s2ibuilders.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/s2ibuildertemplates.devops.kubesphere.io configured\”, \“customresourcedefinition.apiextensions.k8s.io/s2iruns.devops.kubesphere.io configured\”]}",
“uuid”: “64757f33-4f2d-4ece-98b6-54bc9fc0b6e0”
}