modified generation of controller-registration.yaml - added globalyEnabled: true, improved examples

This commit is contained in:
Jakub Vavřík
2021-01-30 11:14:15 +01:00
parent 0d74cb5852
commit 46ab0c5eae
9 changed files with 129 additions and 38 deletions
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:generate ../../vendor/github.com/gardener/gardener/hack/generate-controller-registration.sh extension-shoot-fleet-agent . ../../VERSION ../../example/controller-registration.yaml Extension:shoot-fleet-agent
//go:generate ../../hack/generate-controller-registration.sh extension-shoot-fleet-agent . ../../VERSION ../../example/controller-registration.yaml Extension:shoot-fleet-agent
// Package chart enables go:generate support for generating the correct controller registration.
package chart
@@ -9,7 +9,10 @@ kind: FleetAgentConfig
clientConnection:
kubeconfig: {{ .Values.fleetManager.kubeconfig }}
{{- if .Values.fleetManager.labels }}
labels: {{ .Values.fleetManager.labels | toYaml }}
labels: {{ .Values.fleetManager.labels | toYaml | nindent 6 }}
{{- end }}
{{- if .Values.fleetManager.namespace }}
namespace: {{ .Values.fleetManager.namespace }}
{{- end }}
{{- end }}
File diff suppressed because one or more lines are too long