Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image pull secrets value to chart #147

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion charts/rancher-turtles/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ spec:
labels:
control-plane: controller-manager
spec:
{{- if .Values.rancherTurtles.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.rancherTurtles.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- args:
- --leader-elect
{{- range .Values.managerArguments }}
{{- range .Values.rancherTurtles.managerArguments }}
- {{ . }}
{{- end }}
command:
Expand Down
1 change: 1 addition & 0 deletions charts/rancher-turtles/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rancherTurtles:
imagePullPolicy: Never
namespace: rancher-turtles-system
managerArguments: {}
imagePullSecrets: []
cluster-api-operator:
enabled: true
cert-manager:
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ func initRancherTurtles(clusterProxy framework.ClusterProxy, config *clusterctl.
"--create-namespace", "--wait"),
}
_, err := chart.Run(map[string]string{
"managerArguments[0]": "--insecure-skip-verify=true",
"cluster-api-operator.cluster-api.configSecret.namespace": "default",
"cluster-api-operator.cluster-api.configSecret.name": "variables",
"rancherTurtles.image": "ghcr.io/rancher-sandbox/rancher-turtles-amd64",
"rancherTurtles.tag": "v0.0.1",
"rancherTurtles.managerArguments[0]": "--insecure-skip-verify=true",
"cluster-api-operator.cluster-api.configSecret.namespace": "default",
"cluster-api-operator.cluster-api.configSecret.name": "variables",
})
Expect(err).ToNot(HaveOccurred())

Expand Down