Skip to content

Commit

Permalink
Merge pull request #1303 from artem-nefedov/helm-remove-flux-hardcode
Browse files Browse the repository at this point in the history
Move hardcoded "flux-system" namespace from templates to default values
  • Loading branch information
akselleirv authored Jun 3, 2024
2 parents 596b93a + 4da4ace commit f9f7362
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/tofu-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ __Note__: If you need to use the `imagePullSecrets` it would be best to set `ser
| rbac.create | bool | `true` | If `true`, create and use RBAC resources |
| replicaCount | int | `1` | Number of tofu-controller pods to deploy |
| resources | object | `{"limits":{"cpu":"1000m","memory":"1Gi"},"requests":{"cpu":"200m","memory":"64Mi"}}` | Resource limits and requests |
| runner | object | `{"creationTimeout":"5m0s","grpc":{"maxMessageSize":4},"image":{"repository":"ghcr.io/flux-iac/tf-runner","tag":"v0.16.0-rc.4"},"serviceAccount":{"allowedNamespaces":[],"annotations":{},"create":true,"name":""}}` | Runner-specific configurations |
| runner | object | `{"creationTimeout":"5m0s","grpc":{"maxMessageSize":4},"image":{"repository":"ghcr.io/flux-iac/tf-runner","tag":"v0.16.0-rc.4"},"serviceAccount":{"allowedNamespaces":["flux-system"],"annotations":{},"create":true,"name":""}}` | Runner-specific configurations |
| runner.creationTimeout | string | `"5m0s"` | Timeout for runner-creation (Controller) |
| runner.grpc.maxMessageSize | int | `4` | Maximum GRPC message size (Controller) |
| runner.image.repository | string | `"ghcr.io/flux-iac/tf-runner"` | Runner image repository |
| runner.image.tag | string | `.Chart.AppVersion` | Runner image tag |
| runner.serviceAccount.allowedNamespaces | list | `[]` | List of namespaces that the runner may run within |
| runner.serviceAccount.allowedNamespaces | list | `["flux-system"]` | List of namespaces that the runner may run within (in addition to namespace of the controller itself) |
| runner.serviceAccount.annotations | object | `{}` | Additional runner service Account annotations |
| runner.serviceAccount.create | bool | `true` | If `true`, create a new runner service account |
| runner.serviceAccount.name | string | `""` | Runner service account to be used |
Expand Down
1 change: 0 additions & 1 deletion charts/tofu-controller/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ Create a unique list of runner allowed namespaces
*/}}
{{- define "tofu-controller.runner.allowedNamespaces" -}}
{{- $allowedNamespaces := append .Values.runner.serviceAccount.allowedNamespaces .Release.Namespace -}}
{{- $allowedNamespaces := append $allowedNamespaces "flux-system" -}}
{{- $allowedNamespaces = $allowedNamespaces | uniq -}}
{{ toJson $allowedNamespaces }}
{{- end }}
Expand Down
5 changes: 3 additions & 2 deletions charts/tofu-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ runner:
annotations: {}
# -- Runner service account to be used
name: ""
# -- List of namespaces that the runner may run within
allowedNamespaces: []
# -- List of namespaces that the runner may run within (in addition to namespace of the controller itself)
allowedNamespaces:
- flux-system
# EKS-specific configurations
# -- Create an AWS EKS Security Group Policy with the supplied Security Group IDs [See](https://docs.aws.amazon.com/eks/latest/userguide/security-groups-for-pods.html#deploy-securitygrouppolicy)
eksSecurityGroupPolicy:
Expand Down

0 comments on commit f9f7362

Please sign in to comment.