| Giorgi Lekveishvili | 3598266 | 2024-04-05 13:05:40 +0400 | [diff] [blame^] | 1 | {{- if .Values.checkDeprecation }} |
| 2 | {{- if .Values.master }} |
| 3 | {{ fail "`master` does no longer exist. It has been renamed to `controller`" }} |
| 4 | {{- end }} |
| 5 | |
| 6 | {{- if .Values.controller.imageTag }} |
| 7 | {{ fail "`controller.imageTag` does no longer exist. Please use `controller.image.tag` instead" }} |
| 8 | {{- end }} |
| 9 | |
| 10 | {{- if .Values.controller.slaveListenerPort }} |
| 11 | {{ fail "`controller.slaveListenerPort` does no longer exist. It has been renamed to `controller.agentListenerPort`" }} |
| 12 | {{- end }} |
| 13 | |
| 14 | {{- if .Values.controller.slaveHostPort }} |
| 15 | {{ fail "`controller.slaveHostPort` does no longer exist. It has been renamed to `controller.agentListenerHostPort`" }} |
| 16 | {{- end }} |
| 17 | |
| 18 | {{- if .Values.controller.slaveKubernetesNamespace }} |
| 19 | {{ fail "`controller.slaveKubernetesNamespace` does no longer exist. It has been renamed to `agent.namespace`" }} |
| 20 | {{- end }} |
| 21 | |
| 22 | {{- if .Values.controller.slaveDefaultsProviderTemplate }} |
| 23 | {{ fail "`controller.slaveDefaultsProviderTemplate` does no longer exist. It has been renamed to `agent.defaultsProviderTemplate`" }} |
| 24 | {{- end }} |
| 25 | |
| 26 | {{- if .Values.controller.useSecurity }} |
| 27 | {{ fail "`controller.useSecurity` does no longer exist. It has been renamed to `controller.adminSecret`" }} |
| 28 | {{- end }} |
| 29 | |
| 30 | {{- if .Values.controller.slaveJenkinsUrl }} |
| 31 | {{ fail "`controller.slaveJenkinsUrl` does no longer exist. It has been renamed to `agent.jenkinsUrl`" }} |
| 32 | {{- end }} |
| 33 | |
| 34 | {{- if .Values.controller.slaveJenkinsTunnel }} |
| 35 | {{ fail "`controller.slaveJenkinsTunnel` does no longer exist. It has been renamed to `agent.jenkinsTunnel`" }} |
| 36 | {{- end }} |
| 37 | |
| 38 | {{- if .Values.controller.slaveConnectTimeout }} |
| 39 | {{ fail "`controller.slaveConnectTimeout` does no longer exist. It has been renamed to `agent.kubernetesConnectTimeout`" }} |
| 40 | {{- end }} |
| 41 | |
| 42 | {{- if .Values.controller.slaveReadTimeout }} |
| 43 | {{ fail "`controller.slaveReadTimeout` does no longer exist. It has been renamed to `agent.kubernetesReadTimeout`" }} |
| 44 | {{- end }} |
| 45 | |
| 46 | {{- if .Values.controller.slaveListenerServiceType }} |
| 47 | {{ fail "`controller.slaveListenerServiceType` does no longer exist. It has been renamed to `controller.agentListenerServiceType`" }} |
| 48 | {{- end }} |
| 49 | |
| 50 | {{- if .Values.controller.slaveListenerLoadBalancerIP }} |
| 51 | {{ fail "`controller.slaveListenerLoadBalancerIP` does no longer exist. It has been renamed to `controller.agentListenerLoadBalancerIP`" }} |
| 52 | {{- end }} |
| 53 | |
| 54 | {{- if .Values.controller.slaveListenerServiceAnnotations }} |
| 55 | {{ fail "`controller.slaveListenerServiceAnnotations` does no longer exist. It has been renamed to `controller.agentListenerServiceAnnotations`" }} |
| 56 | {{- end }} |
| 57 | |
| 58 | {{- if .Values.agent.slaveConnectTimeout }} |
| 59 | {{ fail "`agent.slaveConnectTimeout` does no longer exist. It has been renamed to `agent.connectTimeout`" }} |
| 60 | {{- end }} |
| 61 | |
| 62 | {{- if .Values.NetworkPolicy }} |
| 63 | |
| 64 | {{- if .Values.NetworkPolicy.Enabled }} |
| 65 | {{ fail "`NetworkPolicy.Enabled` does no longer exist. It has been renamed to `networkPolicy.enabled`" }} |
| 66 | {{- end }} |
| 67 | |
| 68 | {{- if .Values.NetworkPolicy.ApiVersion }} |
| 69 | {{ fail "`NetworkPolicy.ApiVersion` does no longer exist. It has been renamed to `networkPolicy.apiVersion`" }} |
| 70 | {{- end }} |
| 71 | |
| 72 | {{ fail "NetworkPolicy.* values have been renamed, please check the documentation" }} |
| 73 | {{- end }} |
| 74 | |
| 75 | |
| 76 | {{- if .Values.rbac.install }} |
| 77 | {{ fail "`rbac.install` does no longer exist. It has been renamed to `rbac.create` and is enabled by default!" }} |
| 78 | {{- end }} |
| 79 | |
| 80 | {{- if .Values.rbac.serviceAccountName }} |
| 81 | {{ fail "`rbac.serviceAccountName` does no longer exist. It has been renamed to `serviceAccount.name`" }} |
| 82 | {{- end }} |
| 83 | |
| 84 | {{- if .Values.rbac.serviceAccountAnnotations }} |
| 85 | {{ fail "`rbac.serviceAccountAnnotations` does no longer exist. It has been renamed to `serviceAccount.annotations`" }} |
| 86 | {{- end }} |
| 87 | |
| 88 | {{- if .Values.rbac.roleRef }} |
| 89 | {{ fail "`rbac.roleRef` does no longer exist. RBAC roles are now generated, please check the documentation" }} |
| 90 | {{- end }} |
| 91 | |
| 92 | {{- if .Values.rbac.roleKind }} |
| 93 | {{ fail "`rbac.roleKind` does no longer exist. RBAC roles are now generated, please check the documentation" }} |
| 94 | {{- end }} |
| 95 | |
| 96 | {{- if .Values.rbac.roleBindingKind }} |
| 97 | {{ fail "`rbac.roleBindingKind` does no longer exist. RBAC roles are now generated, please check the documentation" }} |
| 98 | {{- end }} |
| 99 | |
| 100 | {{- if .Values.controller.JCasC.pluginVersion }} |
| 101 | {{ fail "controller.JCasC.pluginVersion has been deprecated, please use controller.installPlugins instead" }} |
| 102 | {{- end }} |
| 103 | |
| 104 | {{- if .Values.controller.deploymentLabels }} |
| 105 | {{ fail "`controller.deploymentLabels` does no longer exist. It has been renamed to `controller.statefulSetLabels`" }} |
| 106 | {{- end }} |
| 107 | |
| 108 | {{- if .Values.controller.deploymentAnnotations }} |
| 109 | {{ fail "`controller.deploymentAnnotations` does no longer exist. It has been renamed to `controller.statefulSetAnnotations`" }} |
| 110 | {{- end }} |
| 111 | |
| 112 | {{- if .Values.controller.rollingUpdate }} |
| 113 | {{ fail "`controller.rollingUpdate` does no longer exist. It is no longer relevant, since a StatefulSet is used for the Jenkins controller" }} |
| 114 | {{- end }} |
| 115 | |
| 116 | {{- if .Values.controller.tag }} |
| 117 | {{ fail "`controller.tag` no longer exists. It has been renamed to `controller.image.tag'" }} |
| 118 | {{- end }} |
| 119 | |
| 120 | {{- if .Values.controller.tagLabel }} |
| 121 | {{ fail "`controller.tagLabel` no longer exists. It has been renamed to `controller.image.tagLabel`" }} |
| 122 | {{- end }} |
| 123 | |
| 124 | {{- if .Values.controller.adminSecret }} |
| 125 | {{ fail "`controller.adminSecret` no longer exists. It has been renamed to `controller.admin.createSecret`" }} |
| 126 | {{- end }} |
| 127 | |
| 128 | {{- if .Values.controller.adminUser }} |
| 129 | {{ fail "`controller.adminUser` no longer exists. It has been renamed to `controller.admin.username`" }} |
| 130 | {{- end }} |
| 131 | |
| 132 | {{- if .Values.controller.adminPassword }} |
| 133 | {{ fail "`controller.adminPassword` no longer exists. It has been renamed to `controller.admin.password`" }} |
| 134 | {{- end }} |
| 135 | |
| 136 | {{- if .Values.controller.sidecars.other }} |
| 137 | {{ fail "`controller.sidecars.other` no longer exists. It has been renamed to `controller.sidecars.additionalSidecarContainers`" }} |
| 138 | {{- end }} |
| 139 | |
| 140 | {{- if .Values.agent.tag }} |
| 141 | {{ fail "`controller.agent.tag` no longer exists. It has been renamed to `controller.agent.image.tag`" }} |
| 142 | {{- end }} |
| 143 | |
| 144 | {{- if .Values.backup }} |
| 145 | {{ fail "`controller.backup` no longer exists." }} |
| 146 | {{- end }} |
| 147 | |
| 148 | {{- if .Values.helmtest.bats.tag }} |
| 149 | {{ fail "`helmtest.bats.tag` no longer exists. It has been renamed to `helmtest.bats.image.tag`" }} |
| 150 | {{- end }} |
| 151 | {{- end }} |