fluxcd-flux2/cmd/flux
Max Jonas Werner be1ce74dc5
fix: trim CRLF from password read from stdin
bufio's reader.ReadString includes any CRLF characters and we don't
want these in the resulting token because this leads to errors in the
authentication like this:

```
✗ failed to get Git repository
"https://github.com/kingdon-ci/jenkins-infra": Get
"https://api.github.com/repos/kingdon-ci/jenkins-infra": net/http:
invalid header field value "Bearer gho_NNNNNsecrettokenMMMMM\n" for
key Authorization
```

Signed-off-by: Max Jonas Werner <mail@makk.es>
2021-11-07 15:09:31 +01:00
..
testdata Add unit tests for export 2021-11-01 10:46:07 +01:00
alert.go Request reconcile using patch instead of update 2021-08-04 13:08:36 +02:00
alert_provider.go Request reconcile using patch instead of update 2021-08-04 13:08:36 +02:00
bootstrap.go bootstrap: Set ECDSA as the default SSH key algorithm 2021-11-02 16:22:16 +02:00
bootstrap_git.go Use proper GPG terminology 2021-10-08 19:35:39 +02:00
bootstrap_github.go fix: improve wording 2021-11-07 15:09:31 +01:00
bootstrap_gitlab.go fix: improve wording 2021-11-07 15:09:31 +01:00
check.go Switch to app.kubernetes.io/part-of label selector 2021-11-01 18:02:49 +02:00
check_test.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
completion.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
completion_bash.go Tidy up command descriptions 2021-03-26 10:20:42 +01:00
completion_fish.go Tidy up command descriptions 2021-03-26 10:20:42 +01:00
completion_powershell.go Tidy up command descriptions 2021-03-26 10:20:42 +01:00
completion_zsh.go Fix flux completion zsh to work with source only 2021-09-17 17:49:47 +09:00
create.go Refactor cmd global variables into structs 2021-01-22 10:42:31 +01:00
create_alert.go Switch StringArrayVar flags to use StringSliceVar 2021-05-06 10:09:36 +01:00
create_alertprovider.go Tidy up command descriptions 2021-03-26 10:20:42 +01:00
create_helmrelease.go Check for nil pointer before setting createNamespace in helmrelease 2021-09-21 14:37:20 +01:00
create_image.go Tidy up command descriptions 2021-03-26 10:20:42 +01:00
create_image_policy.go Update image-reflector-controller to v0.12.0 2021-10-08 19:26:31 +03:00
create_image_repository.go Use image API v1beta1 2021-06-28 16:20:05 +01:00
create_image_update.go Use image API v1beta1 2021-06-28 16:20:05 +01:00
create_kustomization.go Add wait flag to create kustomization cmd 2021-10-19 16:18:09 +03:00
create_receiver.go Switch StringArrayVar flags to use StringSliceVar 2021-05-06 10:09:36 +01:00
create_secret.go Add sourcesecret and kustomization manifestgen 2021-02-26 16:58:41 +01:00
create_secret_git.go Set ECDSA as the default algorithm for flux create secret git 2021-11-02 16:49:17 +02:00
create_secret_git_test.go Add test for create secret 2021-10-22 12:34:36 +01:00
create_secret_helm.go Add test for create secret 2021-10-22 12:34:36 +01:00
create_secret_helm_test.go Add test for create secret 2021-10-22 12:34:36 +01:00
create_secret_tls.go Add test for create secret 2021-10-22 12:34:36 +01:00
create_secret_tls_test.go Add test for create secret 2021-10-22 12:34:36 +01:00
create_source.go Add fetch timeout arg to create source commands 2021-11-01 15:37:58 +02:00
create_source_bucket.go Add fetch timeout arg to create source commands 2021-11-01 15:37:58 +02:00
create_source_git.go Set ECDSA as the default algorithm for flux create source git 2021-11-02 17:21:10 +02:00
create_source_git_test.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
create_source_helm.go Add fetch timeout arg to create source commands 2021-11-01 15:37:58 +02:00
create_tenant.go Adds a watch flag to the get command 2021-08-06 13:44:06 +02:00
delete.go Refactor cmd global variables into structs 2021-01-22 10:42:31 +01:00
delete_alert.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_alertprovider.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_helmrelease.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_image.go Rename flux delete auto to flux delete image 2021-02-04 11:57:40 +00:00
delete_image_policy.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_image_repository.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_image_update.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_kustomization.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
delete_receiver.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_source.go Rename gotk binary to flux 2020-10-29 16:25:16 +01:00
delete_source_bucket.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_source_git.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_source_helm.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
docgen.go Remove ' command' from Flux CLI docs title 2021-05-06 08:52:36 +02:00
export.go Add unit tests for export 2021-11-01 10:46:07 +01:00
export_alert.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_alertprovider.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_helmrelease.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_image.go Rename "auto" subcommands to "image" 2020-12-11 16:34:18 +00:00
export_image_policy.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_image_repository.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_image_update.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_kustomization.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
export_receiver.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_secret.go Format go imports 2021-04-07 16:40:16 +01:00
export_source.go Rename gotk binary to flux 2020-10-29 16:25:16 +01:00
export_source_bucket.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_source_git.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_source_helm.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
export_test.go Add unit tests for export 2021-11-01 10:46:07 +01:00
get.go Fix "get" subcommands to use stdout instead of stderr 2021-10-06 10:46:37 +09:00
get_alert.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_alertprovider.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_all.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
get_helmrelease.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_image.go Adds a watch flag to the get command 2021-08-06 13:44:06 +02:00
get_image_all.go Adds a watch flag to the get command 2021-08-06 13:44:06 +02:00
get_image_policy.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_image_repository.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_image_update.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_kustomization.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
get_receiver.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_source.go Adds a watch flag to the get command 2021-08-06 13:44:06 +02:00
get_source_all.go Adds a watch flag to the get command 2021-08-06 13:44:06 +02:00
get_source_bucket.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_source_chart.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_source_git.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
get_source_helm.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
helmrelease.go Request reconcile using patch instead of update 2021-08-04 13:08:36 +02:00
helmrelease_test.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
image.go Request reconcile using patch instead of update 2021-08-04 13:08:36 +02:00
image_test.go Use shared envTest for unit tests 2021-08-24 01:01:14 -07:00
install.go Add poll interval flag to flux check cmd 2021-10-22 09:57:54 +03:00
kustomization.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
kustomization_test.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
log.go Add Warningf to logger interface amd impl 2021-04-08 10:48:27 +03:00
logs.go Switch to app.kubernetes.io/part-of label selector 2021-11-01 18:02:49 +02:00
logs_test.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
main.go fix: trim CRLF from password read from stdin 2021-11-07 15:09:31 +01:00
main_e2e_test.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
main_test.go Add test for create secret 2021-10-22 12:34:36 +01:00
main_unit_test.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
manifests.embed.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
object.go Request reconcile using patch instead of update 2021-08-04 13:08:36 +02:00
receiver.go Request reconcile using patch instead of update 2021-08-04 13:08:36 +02:00
reconcile.go Fix quoting around reconciliation error message 2021-10-29 11:21:56 -04:00
reconcile_alert.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_alertprovider.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_helmrelease.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_image.go Rename "auto" subcommands to "image" 2020-12-11 16:34:18 +00:00
reconcile_image_repository.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_image_updateauto.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_kustomization.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
reconcile_receiver.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_source.go Rename gotk binary to flux 2020-10-29 16:25:16 +01:00
reconcile_source_bucket.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_source_git.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_source_helm.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_with_source.go Better checks for reconciliation in reconcile run command 2021-10-01 08:24:13 +01:00
resume.go Fix description for resume --all 2021-10-13 16:25:15 +01:00
resume_alert.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
resume_helmrelease.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
resume_image.go Rename "auto" subcommands to "image" 2020-12-11 16:34:18 +00:00
resume_image_repository.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
resume_image_updateauto.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
resume_kustomization.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
resume_receiver.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
resume_source.go Add resume source commands 2020-11-26 16:40:54 +02:00
resume_source_bucket.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
resume_source_chart.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
resume_source_git.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
resume_source_helm.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
source.go Request reconcile using patch instead of update 2021-08-04 13:08:36 +02:00
status.go Move StatusChecker to separate and generic pkg 2021-03-15 11:41:02 +01:00
suspend.go Adds suspend and resume all cmd 2021-04-28 10:44:51 +01:00
suspend_alert.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
suspend_helmrelease.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
suspend_image.go Rename "auto" subcommands to "image" 2020-12-11 16:34:18 +00:00
suspend_image_repository.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
suspend_image_updateauto.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
suspend_kustomization.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
suspend_receiver.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
suspend_source.go Add suspend source commands 2020-11-26 16:22:47 +02:00
suspend_source_bucket.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
suspend_source_chart.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
suspend_source_git.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
suspend_source_helm.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
trace.go Update kustomize-controller API to v1beta2 2021-10-08 21:11:06 +03:00
trace_test.go Use shared envTest for unit tests 2021-08-24 01:01:14 -07:00
tree.go Add flux tree command 2021-10-25 13:45:13 +03:00
tree_kustomization.go Enable completion for flux tree cmd 2021-11-01 12:19:06 +02:00
tree_kustomization_test.go Add flux tree command 2021-10-25 13:45:13 +03:00
uninstall.go Switch to app.kubernetes.io/part-of label selector 2021-11-01 18:02:49 +02:00
version.go Switch to app.kubernetes.io/part-of label selector 2021-11-01 18:02:49 +02:00
version_utils.go Add flux version command 2021-10-05 10:29:00 +01:00
version_utils_test.go Add flux version command 2021-10-05 10:29:00 +01:00