Skip to content

Commit

Permalink
Merge pull request #147 from alexander-demicev/imagepullsecrets
Browse files Browse the repository at this point in the history
Add image pull secrets value to chart
  • Loading branch information
alexander-demicev committed Sep 27, 2023
2 parents bd89057 + f5fa270 commit a62d4c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
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

0 comments on commit a62d4c1

Please sign in to comment.