fluxcd-flux2/cmd/flux
Timo Furrer 2e1721ca85 Implement --deploy-token-auth in GitLab bootstrapping
This change set implements support for the `--deploy-token-auth` option
in the `flux bootstrap gitlab` command.

That option will reconcile a GitLab Project Deploy Token to use for the
authentication of the GitLab git repository.
A GitLab Project Deploy Token can be used the same way as a Personal
Access Token which is already supported via `--token-auth`.
The difference with the GitLab Project Deploy Token is that the token is
managed (created, updated, deleted) by Flux and not provided by the
user.

This change is transparent to the source-controller.

A prerequisite for this change is the
`fluxcd/go-git-providers` change here:

* https://github.com/fluxcd/go-git-providers/pull/191

See related discussion here: https://github.com/fluxcd/flux2/discussions/3595
GitLab Issue here: https://gitlab.com/gitlab-org/gitlab/-/issues/392605

Signed-off-by: Timo Furrer <tuxtimo@gmail.com>
2023-03-21 14:03:09 +01:00
..
testdata Create secret with bearer-token 2023-03-14 22:31:45 +05:30
alert.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
alert_provider.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
bootstrap.go Remove deprecated flags 2023-02-17 14:23:11 +02:00
bootstrap_bitbucket_server.go Remove deprecated flags 2023-02-17 14:23:11 +02:00
bootstrap_git.go Remove deprecated flags 2023-02-17 14:23:11 +02:00
bootstrap_github.go Remove deprecated flags 2023-02-17 14:23:11 +02:00
bootstrap_gitlab.go Implement --deploy-token-auth in GitLab bootstrapping 2023-03-21 14:03:09 +01:00
build.go Add a build kustomization feature 2022-01-20 11:51:56 +01:00
build_artifact.go fix path on flux push 2022-12-20 12:15:35 +01:00
build_artifact_test.go tests: only provide template values when used 2023-02-15 13:22:44 +01:00
build_kustomization.go Fix dry-run still loading kubeconfig issue 2022-12-17 00:34:38 +01:00
build_kustomization_test.go tests: only provide template values when used 2023-02-15 13:22:44 +01:00
check.go check: Show the latest stored version of CRDs 2022-12-23 11:44:28 +02:00
check_test.go trim prefix from server version 2022-05-18 17:08:50 +02:00
completion.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01: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 Fix fluxcd/website#1347 2023-01-05 20:19:53 -05:00
completion_zsh.go Fix flux completion zsh to work with source only 2021-09-17 17:49:47 +09:00
create.go e2e: Update bootstrap test to Kubernetes 1.25.2 2022-09-28 23:54:08 +03:00
create_alert.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
create_alertprovider.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
create_helmrelease.go Replace helmv2.KubeConfig with meta.KubeConfig 2023-03-08 18:51:14 +01:00
create_image.go Tidy up command descriptions 2021-03-26 10:20:42 +01:00
create_image_policy.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
create_image_repository.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
create_image_update.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
create_kustomization.go Add retry interval option to create kustomization command 2023-03-21 12:36:07 +00:00
create_receiver.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
create_secret.go Add sourcesecret and kustomization manifestgen 2021-02-26 16:58:41 +01:00
create_secret_git.go Create secret with bearer-token 2023-03-14 22:31:45 +05:30
create_secret_git_test.go Create secret with bearer-token 2023-03-14 22:31:45 +05:30
create_secret_helm.go Remove file reading from bootstrap package 2022-11-04 15:23:08 +01:00
create_secret_helm_test.go Add create oci secret command 2022-08-09 12:44:59 +03:00
create_secret_oci.go OCI docs improvements 2022-08-10 12:02:30 +03:00
create_secret_oci_test.go Add create oci secret command 2022-08-09 12:44:59 +03:00
create_secret_tls.go Remove file reading from bootstrap package 2022-11-04 15:23:08 +01:00
create_secret_tls_test.go validate that object name adheres to RFC 1123 for flux create commands 2022-02-16 10:51:03 +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 feat: add --ignore-paths flag to flux create source (git|bucket) 2022-05-27 09:45:25 -07:00
create_source_git.go Remove deprecated flags 2023-02-17 14:23:11 +02:00
create_source_git_test.go feat: add --ignore-paths flag to flux create source (git|bucket) 2022-05-27 09:45:25 -07:00
create_source_helm.go Remove file reading from bootstrap package 2022-11-04 15:23:08 +01:00
create_source_helm_test.go Add OCI support to create source helm 2022-06-01 15:59:52 +02:00
create_source_oci.go Add insecure flag to flux create source oci 2022-09-12 14:31:03 +03:00
create_source_oci_test.go e2e: update podinfo to version with newer APIs 2023-03-09 11:43:05 +01:00
create_tenant.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01:00
create_test.go validate that object name adheres to RFC 1123 for flux create commands 2022-02-16 10:51:03 +01:00
delete.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01:00
delete_alert.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
delete_alertprovider.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02: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 Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
delete_image_repository.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
delete_image_update.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
delete_kustomization.go add detail to delete docs 2022-04-07 08:29:57 -04:00
delete_receiver.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
delete_source.go Rename gotk binary to flux 2020-10-29 16:25:16 +01:00
delete_source_bucket.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
delete_source_git.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
delete_source_helm.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
delete_source_oci.go OCI docs improvements 2022-08-10 12:02:30 +03:00
diff.go Add contextual error code for flux diff kustomization 2022-02-03 13:41:57 +01:00
diff_artifact.go feat: diff artifact capability added 2022-10-20 13:23:50 +03:00
diff_artifact_test.go feat: diff artifact capability added 2022-10-20 13:23:50 +03:00
diff_kustomization.go Add a dry-run mode to flux build kustomization 2022-11-16 16:06:30 +01:00
diff_kustomization_test.go tests: only provide template values when used 2023-02-15 13:22:44 +01:00
docgen.go Revert "Fix broken "edit this page" links in Flux CLI section" 2022-09-06 15:20:42 +02:00
events.go events: avoid having to keep individal kind maps 2023-03-09 14:41:32 +01:00
events_test.go Add flux events command 2023-03-09 14:41:31 +01:00
export.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01:00
export_alert.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
export_alertprovider.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02: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 Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
export_image_repository.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
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 Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
export_secret.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01:00
export_source.go Rename gotk binary to flux 2020-10-29 16:25:16 +01:00
export_source_bucket.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
export_source_git.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
export_source_helm.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
export_source_oci.go Implement OCIRepository commands 2022-08-09 12:44:57 +03:00
export_test.go tests: only provide template values when used 2023-02-15 13:22:44 +01:00
get.go fix misleading messaging when using -A flag 2023-01-30 16:54:16 +01:00
get_alert.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
get_alertprovider.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
get_all.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
get_helmrelease.go Move MESSAGE to the end of get subcommand output 2022-02-24 04:21:47 +05:30
get_image.go Output Usage for flux get <sources|images> 2022-01-26 16:03:22 -07:00
get_image_all.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
get_image_policy.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
get_image_repository.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
get_image_update.go Move MESSAGE to the end of get subcommand output 2022-02-24 04:21:47 +05:30
get_kustomization.go Support shortening of revision with digest 2023-02-15 15:43:11 +01:00
get_receiver.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
get_source.go Output Usage for flux get <sources|images> 2022-01-26 16:03:22 -07:00
get_source_all.go Implement OCIRepository commands 2022-08-09 12:44:57 +03:00
get_source_bucket.go Support shortening of revision with digest 2023-02-15 15:43:11 +01:00
get_source_chart.go Support shortening of revision with digest 2023-02-15 15:43:11 +01:00
get_source_git.go Support shortening of revision with digest 2023-02-15 15:43:11 +01:00
get_source_helm.go Support shortening of revision with digest 2023-02-15 15:43:11 +01:00
get_source_oci.go Support shortening of revision with digest 2023-02-15 15:43:11 +01:00
helmrelease.go Add gvk to rest of api type 2022-02-21 10:40:35 +01:00
helmrelease_test.go e2e: update podinfo to version with newer APIs 2023-03-09 11:43:05 +01:00
image.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
image_test.go tests: rename "kubectl" setupTestNamespace 2023-02-15 13:56:55 +01:00
install.go Remove deprecated flags 2023-02-17 14:23:11 +02:00
install_test.go tests: only provide template values when used 2023-02-15 13:22:44 +01:00
kustomization.go Add gvk to rest of api type 2022-02-21 10:40:35 +01:00
kustomization_test.go e2e: update podinfo to version with newer APIs 2023-03-09 11:43:05 +01:00
list.go OCI docs improvements 2022-08-10 12:02:30 +03:00
list_artifact.go Support logging in directly to the provider when pushing OCI artifacts 2022-09-12 12:08:47 +02:00
log.go Add Warningf to logger interface amd impl 2021-04-08 10:48:27 +03:00
logs.go Update flux logs to accomodate the new format 2022-08-31 17:58:43 +01:00
logs_test.go Update flux logs to accomodate the new format 2022-08-31 17:58:43 +01:00
main.go add validation to namespace flag 2022-08-08 12:52:02 +01:00
main_e2e_test.go tests: rename "kubectl" setupTestNamespace 2023-02-15 13:56:55 +01:00
main_test.go reset cmd flags 2022-08-12 10:49:00 +01:00
main_unit_test.go Update Go to v1.17 2022-01-10 16:30:38 +01:00
manifests.embed.go Add missing copyright headers 2021-10-14 16:14:28 +03:00
object.go Add gvk to rest of api type 2022-02-21 10:40:35 +01:00
pull.go Add artifact commands 2022-08-09 12:44:57 +03:00
pull_artifact.go Support logging in directly to the provider when pushing OCI artifacts 2022-09-12 12:08:47 +02:00
push.go OCI docs improvements 2022-08-10 12:02:30 +03:00
push_artifact.go Allow custom annotations to be set when pushing OCI artifacts 2023-03-03 12:40:59 +02:00
receiver.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
reconcile.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
reconcile_alert.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
reconcile_alertprovider.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
reconcile_helmrelease.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
reconcile_image.go Rename "auto" subcommands to "image" 2020-12-11 16:34:18 +00:00
reconcile_image_repository.go Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
reconcile_image_updateauto.go Add dynamic completion suppport 2021-09-18 17:27:47 +09:00
reconcile_kustomization.go Implement OCIRepository commands 2022-08-09 12:44:57 +03:00
reconcile_receiver.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
reconcile_source.go Rename gotk binary to flux 2020-10-29 16:25:16 +01:00
reconcile_source_bucket.go fix: wait for Source objects observed generation 2022-03-23 12:38:42 +01:00
reconcile_source_git.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
reconcile_source_helm.go Return a different success message for helm oci 2022-06-22 12:03:20 +01:00
reconcile_source_oci.go OCI docs improvements 2022-08-10 12:02:30 +03:00
reconcile_with_source.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01:00
resume.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01:00
resume_alert.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02: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 Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
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 Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
resume_source.go Add resume source commands 2020-11-26 16:40:54 +02:00
resume_source_bucket.go Fix resume source bucket panic 2022-03-23 15:33:57 +02:00
resume_source_chart.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
resume_source_git.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
resume_source_helm.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
resume_source_oci.go OCI docs improvements 2022-08-10 12:02:30 +03:00
source.go Implement OCIRepository commands 2022-08-09 12:44:57 +03:00
source_oci_test.go e2e: update podinfo to version with newer APIs 2023-03-09 11:43:05 +01:00
stats.go Add command to print the reconcilers status 2023-02-20 13:08:04 +02:00
status.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
suspend.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01:00
suspend_alert.go Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02: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 Update image-reflector API to v1beta2 2023-02-17 00:32:48 +05:30
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 Update CLI commands to Notification API v1beta2 2022-12-21 17:14:18 +02:00
suspend_source.go Add suspend source commands 2020-11-26 16:22:47 +02:00
suspend_source_bucket.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
suspend_source_chart.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
suspend_source_git.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
suspend_source_helm.go Update Source API to v1beta2 2022-03-23 11:33:35 +01:00
suspend_source_oci.go OCI docs improvements 2022-08-10 12:02:30 +03:00
tag.go OCI docs improvements 2022-08-10 12:02:30 +03:00
tag_artifact.go Support logging in directly to the provider when pushing OCI artifacts 2022-09-12 12:08:47 +02:00
trace.go Make flux trace work with OCIRepository 2022-08-10 14:37:28 +02:00
trace_test.go Make flux trace work with OCIRepository 2022-08-10 14:37:28 +02:00
tree.go Add flux tree command 2021-10-25 13:45:13 +03:00
tree_kustomization.go flux tree: Set CRDs GroupKind in output 2023-02-01 12:41:35 +02:00
tree_kustomization_test.go Update Go to v1.17 2022-01-10 16:30:38 +01:00
uninstall.go Move uninstall code to pkg 2022-10-12 19:25:14 +02:00
version.go Add the kube client qps and burst to the global args 2022-03-25 10:43:59 +01:00
version_utils.go Add version validation to install commands 2022-08-24 11:58:29 +03:00
version_utils_test.go Update Go to v1.17 2022-01-10 16:30:38 +01:00