Skip to content

Commit

Permalink
remove arch variable from flux install
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheem saady authored and ibraheem saady committed Jan 16, 2021
1 parent 33212f6 commit 365c142
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 8 deletions.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,58 @@ See contributing docs [here](./docs/CONTRIBUTING.md)
| sealed\_secrets\_generated\_private\_key | n/a |
| sync\_manifest | n/a |

## Requirements

| Name | Version |
|------|---------|
| terraform | >= 0.13 |
| flux | >= 0.0.8 |
| kubectl | >= 1.7.0 |
| kubernetes | >= 1.13.3 |

## Providers

| Name | Version |
|------|---------|
| flux | >= 0.0.8 |
| helm | n/a |
| kubectl | >= 1.7.0 |
| kubernetes | >= 1.13.3 |
| local | n/a |
| null | n/a |
| tls | n/a |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| components | Toolkit components to include in the install manifests | `list(string)` | <pre>[<br> "source-controller",<br> "kustomize-controller",<br> "helm-controller",<br> "notification-controller"<br>]</pre> | no |
| flux\_auth\_type | The authentication method that flux will use to access th Git repo (ssh, basic) | `string` | `"ssh"` | no |
| flux\_basic\_auth | The basic auth credentials. Only needed when flux\_auth\_type is basic | `object({ username : string, password : string })` | <pre>{<br> "password": "",<br> "username": ""<br>}</pre> | no |
| flux\_network\_policy\_enabled | A flag to enable/disable network policies | `bool` | `false` | no |
| flux\_ssh\_keys | The ssh keys for flux. (Active when flux\_auth\_type is ssh) | <pre>object({<br> generate_key : bool,<br> private_key : string,<br> public_key : string,<br> })</pre> | <pre>{<br> "generate_key": true,<br> "private_key": "",<br> "public_key": ""<br>}</pre> | no |
| flux\_ssh\_scan\_url | The domain that will be used by the ssh-keyscan. Only required when flux\_auth\_type is ssh | `string` | `""` | no |
| flux\_target\_path | The path of the directory in the Git repository on which Flux will sync | `string` | n/a | yes |
| flux\_version | The version of flux to install | `string` | `"latest"` | no |
| git\_branch | The Git branch to be watched | `string` | `"master"` | no |
| git\_url | The URL of the git repository | `string` | n/a | yes |
| image\_pull\_secrets | Kubernetes secret name used for pulling the toolkit images from a private registryvalue | `string` | `""` | no |
| log\_level | Log level for toolkit components | `string` | `"info"` | no |
| namespace | The namespace on which Flux will be installed | `string` | `"flux-system"` | no |
| output\_manifests | A flag whether to include the manifests genereated by Flux in the output | `bool` | `false` | no |
| registry | Container registry where the toolkit images are published | `string` | `"ghcr.io/fluxcd"` | no |
| sealed\_secrets | The sealed secret default chart version and docker image tag. (if generate\_key\_cert is false and private\_key and private\_cert are not provided, no custom key will be generated) | <pre>object({<br> generate_key_cert : bool,<br> private_key : string,<br> private_cert : string,<br> chart_version : string,<br> docker_image_tag : string<br> })</pre> | <pre>{<br> "chart_version": "1.13.2",<br> "docker_image_tag": "v0.13.1",<br> "generate_key_cert": true,<br> "private_cert": "",<br> "private_key": ""<br>}</pre> | no |
| sync\_interval | Sync interval in minutes | `number` | `1` | no |

## Outputs

| Name | Description |
|------|-------------|
| flux\_generated\_private\_key | n/a |
| flux\_generated\_public\_key | n/a |
| install\_manifest | n/a |
| namespace | n/a |
| sealed\_secrets\_generated\_cert | n/a |
| sealed\_secrets\_generated\_private\_key | n/a |
| sync\_manifest | n/a |

1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

data "flux_install" "main" {
target_path = var.flux_target_path
arch = var.flux_arch
network_policy = var.flux_network_policy_enabled
version = var.flux_version
namespace = var.namespace
Expand Down
7 changes: 0 additions & 7 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ variable "flux_version" {
default = "latest"
}

variable "flux_arch" {
description = "The arch of Flux (amd64, arm)"
type = string

default = "amd64"
}

variable "flux_network_policy_enabled" {
description = "A flag to enable/disable network policies"
type = bool
Expand Down

0 comments on commit 365c142

Please sign in to comment.