Max Jonas Werner
0cf3f45f1e
feat: prompt for access tokens in 'bootstrap' command
...
This change adds functionality to both, `bootstrap github` and
`bootstrap gitlab` to prompt the user for the personal access tokens
if those can't be derived from the shell environment. Echoing is
turned off for better privacy.
Instead of having to interactively type the token or manually paste it
from the clipboard, users can also pipe it to Flux which comes in
handy e.g. when executing Flux remotely over an SSH connection:
```
$ echo 'asdf' | flux bootstrap github
```
Otherwise, Flux will prompt the user:
```
$ flux bootstrap github
Please type your GitHub personal access token:
```
closes #2011
Signed-off-by: Max Jonas Werner <mail@makk.es>
3 years ago
fluxcdbot
870f18c621
Update toolkit components
...
- source-controller to v0.17.1
https://github.com/fluxcd/source-controller/blob/v0.17.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
fluxcdbot
744b3ebd0a
Update toolkit components
...
- source-controller to v0.17.0
https://github.com/fluxcd/source-controller/blob/v0.17.0/CHANGELOG.md
- image-automation-controller to v0.16.0
https://github.com/fluxcd/image-automation-controller/blob/v0.16.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
fluxcdbot
f13b1629cf
Update toolkit components
...
- source-controller to v0.16.1
https://github.com/fluxcd/source-controller/blob/v0.16.1/CHANGELOG.md
- notification-controller to v0.18.1
https://github.com/fluxcd/notification-controller/blob/v0.18.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
Stefan Prodan
a4a1db0915
Update fluxcd packages
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
3 years ago
fluxcdbot
c3384c6499
Update toolkit components
...
- helm-controller to v0.12.1
https://github.com/fluxcd/helm-controller/blob/v0.12.1/CHANGELOG.md
- kustomize-controller to v0.16.0
https://github.com/fluxcd/kustomize-controller/blob/v0.16.0/CHANGELOG.md
- notification-controller to v0.18.0
https://github.com/fluxcd/notification-controller/blob/v0.18.0/CHANGELOG.md
- image-reflector-controller to v0.13.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.13.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
Stefan Prodan
f7aa3e7e1b
Update github.com/fluxcd/pkg/ssa to v0.1.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
3 years ago
fluxcdbot
deacfd6c03
Update toolkit components
...
- kustomize-controller to v0.15.5
https://github.com/fluxcd/kustomize-controller/blob/v0.15.5/CHANGELOG.md
- notification-controller to v0.17.1
https://github.com/fluxcd/notification-controller/blob/v0.17.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
fluxcdbot
2ecd99d317
Update toolkit components
...
- kustomize-controller to v0.15.4
https://github.com/fluxcd/kustomize-controller/blob/v0.15.4/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
Stefan Prodan
03df386f9e
Update kustomize-controller to v0.15.2
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
3 years ago
Stefan Prodan
83c3e8c2fc
Replace kubectl with Go server-side apply
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
3 years ago
fluxcdbot
622ed88a11
Update toolkit components
...
- helm-controller to v0.12.0
https://github.com/fluxcd/helm-controller/blob/v0.12.0/CHANGELOG.md
- kustomize-controller to v0.15.1
https://github.com/fluxcd/kustomize-controller/blob/v0.15.1/CHANGELOG.md
- source-controller to v0.16.0
https://github.com/fluxcd/source-controller/blob/v0.16.0/CHANGELOG.md
- notification-controller to v0.17.0
https://github.com/fluxcd/notification-controller/blob/v0.17.0/CHANGELOG.md
- image-automation-controller to v0.15.0
https://github.com/fluxcd/image-automation-controller/blob/v0.15.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
Stefan Prodan
25d06a53bc
Update image-reflector-controller to v0.12.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
3 years ago
Somtochi Onyekwere
0beab87f5b
Add gpg key path and passphrase as args
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
3 years ago
Stefan Prodan
03b6de1169
Replace promptui pkg with a fork free of LGPL
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
3 years ago
fluxcdbot
2679731bde
Update toolkit components
...
- kustomize-controller to v0.14.1
https://github.com/fluxcd/kustomize-controller/blob/v0.14.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
fluxcdbot
75309b4c93
Update toolkit components
...
- kustomize-controller to v0.14.0
https://github.com/fluxcd/kustomize-controller/blob/v0.14.0/CHANGELOG.md
- notification-controller to v0.16.0
https://github.com/fluxcd/notification-controller/blob/v0.16.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
Tomas Tulka
8896a1e73e
tidy
...
Signed-off-by: Tomas Tulka <tomas.tulka@gmail.com>
3 years ago
fluxcdbot
794d3ee2f5
Update toolkit components
...
- helm-controller to v0.11.2
https://github.com/fluxcd/helm-controller/blob/v0.11.2/CHANGELOG.md
- kustomize-controller to v0.13.3
https://github.com/fluxcd/kustomize-controller/blob/v0.13.3/CHANGELOG.md
- source-controller to v0.15.4
https://github.com/fluxcd/source-controller/blob/v0.15.4/CHANGELOG.md
- notification-controller to v0.15.1
https://github.com/fluxcd/notification-controller/blob/v0.15.1/CHANGELOG.md
- image-reflector-controller to v0.11.1
https://github.com/fluxcd/image-reflector-controller/blob/v0.11.1/CHANGELOG.md
- image-automation-controller to v0.14.1
https://github.com/fluxcd/image-automation-controller/blob/v0.14.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
3 years ago
Allen Porter
351d287d88
Add tests for flux trace command
...
Add tests for flux trace command that fake out the kubernetes client,
load objects from a yaml file and create them in the client, and
assert on the output of the trace command to an expected golden file.
This is a follow up from the suggestions in PR https://github.com/fluxcd/flux2/pull/1626 which suggested that additional
testing would be helpful. This test approach is modeled after the helm command tests.
This required some changes to the kubernetes client setup to make it
possible to use a fake. If we agree this pattern makes sense, it can be
applied to other commands.
Signed-off-by: Allen Porter <allen@thebends.org>
3 years ago
fluxcdbot
15a5f75fe7
Update toolkit components
...
- kustomize-controller to v0.13.2
https://github.com/fluxcd/kustomize-controller/blob/v0.13.2/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
b5ce02b8cf
Update toolkit components
...
- kustomize-controller to v0.13.1
https://github.com/fluxcd/kustomize-controller/blob/v0.13.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
6dedb767c3
Update toolkit components
...
- source-controller to v0.15.3
https://github.com/fluxcd/source-controller/blob/v0.15.3/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
1c1fd62a91
Update toolkit components
...
- image-reflector-controller to v0.11.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.11.0/CHANGELOG.md
- image-automation-controller to v0.14.0
https://github.com/fluxcd/image-automation-controller/blob/v0.14.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
5da7eb7d0d
Update toolkit components
...
- source-controller to v0.15.2
https://github.com/fluxcd/source-controller/blob/v0.15.2/CHANGELOG.md
- image-automation-controller to v0.13.0
https://github.com/fluxcd/image-automation-controller/blob/v0.13.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
a796f3609f
Update toolkit components
...
- helm-controller to v0.11.1
https://github.com/fluxcd/helm-controller/blob/v0.11.1/CHANGELOG.md
- source-controller to v0.15.1
https://github.com/fluxcd/source-controller/blob/v0.15.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
4f7b040405
Update source-controller to v0.15.1
...
This includes an introduction of a `--pass-credentials` flag for the
`flux create source helm` command to allow configuring the new
option introduced.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
354cd5e177
Update toolkit components
...
- source-controller to v0.15.0
https://github.com/fluxcd/source-controller/blob/v0.15.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Stefan Prodan
a6620e478a
Update to Kustomize v4
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
160f59a984
Update toolkit components
...
- helm-controller to v0.11.0
https://github.com/fluxcd/helm-controller/blob/v0.11.0/CHANGELOG.md
- kustomize-controller to v0.13.0
https://github.com/fluxcd/kustomize-controller/blob/v0.13.0/CHANGELOG.md
- source-controller to v0.14.0
https://github.com/fluxcd/source-controller/blob/v0.14.0/CHANGELOG.md
- notification-controller to v0.15.0
https://github.com/fluxcd/notification-controller/blob/v0.15.0/CHANGELOG.md
- image-reflector-controller to v0.10.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.10.0/CHANGELOG.md
- image-automation-controller to v0.12.0
https://github.com/fluxcd/image-automation-controller/blob/v0.12.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Stefan Prodan
b4edb46269
Update go-git to v5.4.2
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
cea869e285
Update toolkit components
...
- kustomize-controller to v0.12.2
https://github.com/fluxcd/kustomize-controller/blob/v0.12.2/CHANGELOG.md
- source-controller to v0.13.2
https://github.com/fluxcd/source-controller/blob/v0.13.2/CHANGELOG.md
- image-automation-controller to v0.11.0
https://github.com/fluxcd/image-automation-controller/blob/v0.11.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
aa887c61c3
Update toolkit components
...
- source-controller to v0.13.1
https://github.com/fluxcd/source-controller/blob/v0.13.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
9f83a69242
Update toolkit components
...
- kustomize-controller to v0.12.1
https://github.com/fluxcd/kustomize-controller/blob/v0.12.1/CHANGELOG.md
- source-controller to v0.13.0
https://github.com/fluxcd/source-controller/blob/v0.13.0/CHANGELOG.md
- notification-controller to v0.14.1
https://github.com/fluxcd/notification-controller/blob/v0.14.1/CHANGELOG.md
- image-automation-controller to v0.10.0
https://github.com/fluxcd/image-automation-controller/blob/v0.10.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
465ea5ccfd
Update go-git to v5.4.1
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
1c744a0f97
Update toolkit components
...
- helm-controller to v0.10.1
https://github.com/fluxcd/helm-controller/blob/v0.10.1/CHANGELOG.md
- source-controller to v0.12.2
https://github.com/fluxcd/source-controller/blob/v0.12.2/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
ef8f5cb87d
Update toolkit components
...
- image-automation-controller to v0.9.1
https://github.com/fluxcd/image-automation-controller/blob/v0.9.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Stefan Prodan
e733c4f55a
Update go-git-providers to v0.1.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
653dcc8d78
Update toolkit components
...
- kustomize-controller to v0.12.0
https://github.com/fluxcd/kustomize-controller/blob/v0.12.0/CHANGELOG.md
- image-reflector-controller to v0.9.1
https://github.com/fluxcd/image-reflector-controller/blob/v0.9.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
dab5bbd393
Update toolkit components
...
- source-controller to v0.12.1
https://github.com/fluxcd/source-controller/blob/v0.12.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
b47f3a57dc
Update toolkit components
...
- helm-controller to v0.10.0
https://github.com/fluxcd/helm-controller/blob/v0.10.0/CHANGELOG.md
- kustomize-controller to v0.11.1
https://github.com/fluxcd/kustomize-controller/blob/v0.11.1/CHANGELOG.md
- source-controller to v0.12.0
https://github.com/fluxcd/source-controller/blob/v0.12.0/CHANGELOG.md
- notification-controller to v0.13.0
https://github.com/fluxcd/notification-controller/blob/v0.13.0/CHANGELOG.md
- image-reflector-controller to v0.9.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.9.0/CHANGELOG.md
- image-automation-controller to v0.9.0
https://github.com/fluxcd/image-automation-controller/blob/v0.9.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
5bee3047ac
Update toolkit components
...
- kustomize-controller to v0.11.0
https://github.com/fluxcd/kustomize-controller/blob/v0.11.0/CHANGELOG.md
- notification-controller to v0.12.0
https://github.com/fluxcd/notification-controller/blob/v0.12.0/CHANGELOG.md
- image-reflector-controller to v0.8.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.8.0/CHANGELOG.md
- image-automation-controller to v0.8.0
https://github.com/fluxcd/image-automation-controller/blob/v0.8.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
f57ce14754
Implement `bootstrap` package in commands
...
This includes making a lot of things configurable (e.g. SSH key
algorithm, RSA bit size, etc.) that used to be static.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
Hidde Beydals
6390812cbb
Factor bootstrap logic into `bootstrap` package
...
This commit factors out the bootstrap logic into a new `bootstrap`
package, while also moving to `go-git-providers` to handle things
around Git providers (e.g. repository creation, deploy key
upsertions).
The `GitProviderBootstrapper` is a superset of the
`PlainGitBootstrapper` that besides `Reconciler` also implements the
`RepositoryReconciler`.
The Git actions rely on an interface, making it easier to support
other implementations than `go-git` at a later moment, to for example
support bootstrapping to Git servers that only support the v2 protocol.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
6129943685
Update toolkit components
...
- source-controller to v0.11.0
https://github.com/fluxcd/source-controller/blob/v0.11.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
7da24932ab
Update toolkit components
...
- helm-controller to v0.9.0
https://github.com/fluxcd/helm-controller/blob/v0.9.0/CHANGELOG.md
- kustomize-controller to v0.10.0
https://github.com/fluxcd/kustomize-controller/blob/v0.10.0/CHANGELOG.md
- source-controller to v0.10.0
https://github.com/fluxcd/source-controller/blob/v0.10.0/CHANGELOG.md
- notification-controller to v0.11.0
https://github.com/fluxcd/notification-controller/blob/v0.11.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
e8b52bf2fc
Update toolkit components
...
- helm-controller to v0.8.2
https://github.com/fluxcd/helm-controller/blob/v0.8.2/CHANGELOG.md
- kustomize-controller to v0.9.3
https://github.com/fluxcd/kustomize-controller/blob/v0.9.3/CHANGELOG.md
- source-controller to v0.9.1
https://github.com/fluxcd/source-controller/blob/v0.9.1/CHANGELOG.md
- notification-controller to v0.10.0
https://github.com/fluxcd/notification-controller/blob/v0.10.0/CHANGELOG.md
- image-reflector-controller to v0.7.1
https://github.com/fluxcd/image-reflector-controller/blob/v0.7.1/CHANGELOG.md
- image-automation-controller to v0.7.0
https://github.com/fluxcd/image-automation-controller/blob/v0.7.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
01946facb3
Update toolkit components
...
- helm-controller to v0.8.1
https://github.com/fluxcd/helm-controller/blob/v0.8.1/CHANGELOG.md
- kustomize-controller to v0.9.2
https://github.com/fluxcd/kustomize-controller/blob/v0.9.2/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
8a5bba80bf
Add `sourcesecret` and `kustomization` manifestgen
...
This includes a change to the `sync` generator to make the deploy
secret name configurable.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
c8ff861d00
Update toolkit components
...
- image-automation-controller to v0.6.1
https://github.com/fluxcd/image-automation-controller/blob/v0.6.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago