deprecation.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {{- if .Values.checkDeprecation }}
  2. {{- if .Values.master }}
  3. {{ fail "`master` does no longer exist. It has been renamed to `controller`" }}
  4. {{- end }}
  5. {{- if .Values.controller.imageTag }}
  6. {{ fail "`controller.imageTag` does no longer exist. Please use `controller.tag` instead" }}
  7. {{- end }}
  8. {{- if .Values.controller.slaveListenerPort }}
  9. {{ fail "`controller.slaveListenerPort` does no longer exist. It has been renamed to `controller.agentListenerPort`" }}
  10. {{- end }}
  11. {{- if .Values.controller.slaveHostPort }}
  12. {{ fail "`controller.slaveHostPort` does no longer exist. It has been renamed to `controller.agentListenerHostPort`" }}
  13. {{- end }}
  14. {{- if .Values.controller.slaveKubernetesNamespace }}
  15. {{ fail "`controller.slaveKubernetesNamespace` does no longer exist. It has been renamed to `agent.namespace`" }}
  16. {{- end }}
  17. {{- if .Values.controller.slaveDefaultsProviderTemplate }}
  18. {{ fail "`controller.slaveDefaultsProviderTemplate` does no longer exist. It has been renamed to `agent.defaultsProviderTemplate`" }}
  19. {{- end }}
  20. {{- if .Values.controller.useSecurity }}
  21. {{ fail "`controller.useSecurity` does no longer exist. It has been renamed to `controller.adminSecret`" }}
  22. {{- end }}
  23. {{- if .Values.controller.slaveJenkinsUrl }}
  24. {{ fail "`controller.slaveJenkinsUrl` does no longer exist. It has been renamed to `agent.jenkinsUrl`" }}
  25. {{- end }}
  26. {{- if .Values.controller.slaveJenkinsTunnel }}
  27. {{ fail "`controller.slaveJenkinsTunnel` does no longer exist. It has been renamed to `agent.jenkinsTunnel`" }}
  28. {{- end }}
  29. {{- if .Values.controller.slaveConnectTimeout }}
  30. {{ fail "`controller.slaveConnectTimeout` does no longer exist. It has been renamed to `agent.kubernetesConnectTimeout`" }}
  31. {{- end }}
  32. {{- if .Values.controller.slaveReadTimeout }}
  33. {{ fail "`controller.slaveReadTimeout` does no longer exist. It has been renamed to `agent.kubernetesReadTimeout`" }}
  34. {{- end }}
  35. {{- if .Values.controller.slaveListenerServiceType }}
  36. {{ fail "`controller.slaveListenerServiceType` does no longer exist. It has been renamed to `controller.agentListenerServiceType`" }}
  37. {{- end }}
  38. {{- if .Values.controller.slaveListenerLoadBalancerIP }}
  39. {{ fail "`controller.slaveListenerLoadBalancerIP` does no longer exist. It has been renamed to `controller.agentListenerLoadBalancerIP`" }}
  40. {{- end }}
  41. {{- if .Values.controller.slaveListenerServiceAnnotations }}
  42. {{ fail "`controller.slaveListenerServiceAnnotations` does no longer exist. It has been renamed to `controller.agentListenerServiceAnnotations`" }}
  43. {{- end }}
  44. {{- if .Values.agent.slaveConnectTimeout }}
  45. {{ fail "`agent.slaveConnectTimeout` does no longer exist. It has been renamed to `agent.connectTimeout`" }}
  46. {{- end }}
  47. {{- if .Values.NetworkPolicy }}
  48. {{- if .Values.NetworkPolicy.Enabled }}
  49. {{ fail "`NetworkPolicy.Enabled` does no longer exist. It has been renamed to `networkPolicy.enabled`" }}
  50. {{- end }}
  51. {{- if .Values.NetworkPolicy.ApiVersion }}
  52. {{ fail "`NetworkPolicy.ApiVersion` does no longer exist. It has been renamed to `networkPolicy.apiVersion`" }}
  53. {{- end }}
  54. {{ fail "NetworkPolicy.* values have been renamed, please check the documentation" }}
  55. {{- end }}
  56. {{- if .Values.rbac.install }}
  57. {{ fail "`rbac.install` does no longer exist. It has been renamed to `rbac.create` and is enabled by default!" }}
  58. {{- end }}
  59. {{- if .Values.rbac.serviceAccountName }}
  60. {{ fail "`rbac.serviceAccountName` does no longer exist. It has been renamed to `serviceAccount.name`" }}
  61. {{- end }}
  62. {{- if .Values.rbac.serviceAccountAnnotations }}
  63. {{ fail "`rbac.serviceAccountAnnotations` does no longer exist. It has been renamed to `serviceAccount.annotations`" }}
  64. {{- end }}
  65. {{- if .Values.rbac.roleRef }}
  66. {{ fail "`rbac.roleRef` does no longer exist. RBAC roles are now generated, please check the documentation" }}
  67. {{- end }}
  68. {{- if .Values.rbac.roleKind }}
  69. {{ fail "`rbac.roleKind` does no longer exist. RBAC roles are now generated, please check the documentation" }}
  70. {{- end }}
  71. {{- if .Values.rbac.roleBindingKind }}
  72. {{ fail "`rbac.roleBindingKind` does no longer exist. RBAC roles are now generated, please check the documentation" }}
  73. {{- end }}
  74. {{- if .Values.controller.JCasC.pluginVersion }}
  75. {{ fail "controller.JCasC.pluginVersion has been deprecated, please use controller.installPlugins instead" }}
  76. {{- end }}
  77. {{- if .Values.controller.deploymentLabels }}
  78. {{ fail "`controller.deploymentLabels` does no longer exist. It has been renamed to `controller.statefulSetLabels`" }}
  79. {{- end }}
  80. {{- if .Values.controller.deploymentAnnotations }}
  81. {{ fail "`controller.deploymentAnnotations` does no longer exist. It has been renamed to `controller.statefulSetAnnotations`" }}
  82. {{- end }}
  83. {{- if .Values.controller.rollingUpdate }}
  84. {{ fail "`controller.rollingUpdate` does no longer exist. It is no longer relevant, since a StatefulSet is used for the Jenkins controller" }}
  85. {{- end }}
  86. {{- end }}