Commit Graph

133 Commits (4204ec1d43298de718e73db9484b0a25fc95f56c)

Author SHA1 Message Date
Michael Bridgen 512761080e Add get auto image-policy and refactor
This factors the get command implementation so that the control flow
is generic and relies on a handful of methods, then uses that to add
`get auto image-policy` and to rewrite `get auto image-repository`.

Signed-off-by: Michael Bridgen <michael@weave.works>
4 years ago
Michael Bridgen 037a5b71fd Add {create,export} auto image-policy
Signed-off-by: Michael Bridgen <michael@weave.works>
4 years ago
Michael Bridgen b66bdec61a Add subcommands for image-repository
This adds all the standard subcommands for the ImageRepository type.

Following `source`, I have put them under a namespace: `auto`,
referring to automation.

NB For `create` I use controllerutil.CreateOrUpdate, which looks to me
like a slightly more rounded version of the upsert* funcs.

Signed-off-by: Michael Bridgen <michael@weave.works>
4 years ago
Michael Bridgen 4abe69f90a Give flux bootstrap the extra components flag
This commit adds a flag for supplying extra components to bootstrap
(and its subcommands), to match the one for `flux install`.

Since the bootstrapComponents global is used in a few places, I made
it a func and renamed the variable. For consistency, I also renamed
the var used in install.go.

Lastly, so that the flag sorts next to `--components`, I changed it to
`--components-extra` in both commands.

Signed-off-by: Michael Bridgen <michael@weave.works>
4 years ago
Michael Bridgen 75023011d3 Add argument for adding to default install
If you want to install the default set of controllers and the image-*
controllers, at present you have to list every single one of them.

An improvement on this is to let people specify what they want _in
addition_ to the default controllers. This commit adds an argument
`--extra-components` which appends to the (most likely, default value)
slice of `--components`.

Signed-off-by: Michael Bridgen <michael@weave.works>
4 years ago
Philip Laine 82b74d8689 Add git implementation flag and note about Azure DevOps
Signed-off-by: Philip Laine <philip.laine@gmail.com>
4 years ago
Stefan Prodan 9867c4baf0
Add create secret git command
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Stefan Prodan d2df9ccf33
Add service account arg to create commands
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Stefan Prodan 567ce7f987
Add suspend status to get sources commands
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Stefan Prodan e7ff319685
Add resume source commands
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Stefan Prodan 072138deff
Add suspend source commands
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Stefan Prodan a8e5876b2e
Add create tenant to CLI docs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Stefan Prodan 48bed79439
Add values-from arg to create helmrelease cmd
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Aurel Canciu 53a1db0703
Adjustments to support new sa name in kustomize
Supporting changes in fluxcd/kustomize-controller#180

Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
4 years ago
Stefan Prodan 7792cd6a10
Add token authentication option to bootstrap
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Stefan Prodan 9f7835d818
Add target namespace to create ks cmd
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Sylvain Rabot 78d7dca985
Add a --context option
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
4 years ago
Hidde Beydals e2752e4508 Rename `gotk` binary to `flux`
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
Hidde Beydals 9916a53761 Rename `gotk-system` namespace to `flux-system`
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
Philip Laine b0d2a38ff6 Refactor manifest generation
Signed-off-by: Philip Laine <philip.laine@xenit.se>
4 years ago
Ally Parker 2d67ea5f7f Add secret-ref flag to git source
Add secret-ref flag to Helm source

Add secret-ref to bucket source
4 years ago
“Anton 95ef3c1782 Update docs 4 years ago
“Anton a58c18e992 Refresh bootstrap and install docs 4 years ago
Stefan Prodan b041dbd14f Add GitLab HTTPS auth to bootstrap options
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Hidde Beydals 19918cd342 Refactor create, reconcile and resume cmds
* Take ObservedGeneration into account in readiness checks where
  applicable
* Reduce amount of code (and duplicate GETs) by working with pointers
  where possible
* Improve logged messages to properly take resource names into account
  and better describe processes
4 years ago
Philip Laine d32e8c6e98 Remove aliases 4 years ago
Philip Laine 55cee488bc Update docs 4 years ago
Philip Laine 94cf7c329c Update docs 4 years ago
circa10a 3619cb8bd1 Switch get commands to use tables for output
Signed-off-by: circa10a <caleblemoine@gmail.com>
4 years ago
stefanprodan 07677ed4a7 Add option to disable the network policy at install time 4 years ago
stefanprodan 0e52065893 Change the bootstrap default branch to main 4 years ago
Hidde Beydals ff6a1c14be Rename 'gitops-system' namespace to 'gotk-system'
To align with the project name, and the group introduced in #236.
4 years ago
stefanprodan d902c71a6f Update components to v0.1 4 years ago
stefanprodan 393be92632 Add support for multi-namespace tenant ownership 4 years ago
stefanprodan d11fa476e1 Refactor object kind/name parsing 4 years ago
stefanprodan bd2994f9ab Add support for Bucket sources to Kustomizations/HRs 4 years ago
stefanprodan a02452ccb9 Implement bucket CRUD commands 4 years ago
stefanprodan 1c7994a353 Add support for namespace/name format in depends-on 4 years ago
stefanprodan f93a40a18b Suspend bootstrap kustomization on uninstall 4 years ago
stefanprodan fafcf09570 Add -n shorthand for namespace flag 4 years ago
stefanprodan 2096532f5d Add create tenant command 4 years ago
Stefan Prodan 67e0acd044
Merge pull request #235 from stealthybox/shell-completions
Support bash, fish, zsh, and powershell shell completions as separate sub-commands
4 years ago
leigh capili cbcdfc5f6c Support bash, fish, zsh, and powershell shell completions as separate sub-commands 4 years ago
stefanprodan 2bac5aabee Add log level flag 4 years ago
stefanprodan d5e78b9f80 Add watch all namespaces flag 4 years ago
stefanprodan a7b1b04920 Add bootstrap reinstall e2e test 4 years ago
stefanprodan 1218d6abe8 Add branch flag to bootstrap cmd 4 years ago
stefanprodan 797cd9bea2 Add label arg to create commands 4 years ago
stefanprodan 8b6995e9ec Add decryption flags to create kustomization cmd 4 years ago
stefanprodan 5c8d00665f Use GitHub Container Registry for AMD64/ARM64 images 4 years ago
Stefan Prodan f4d78cc08e
Merge pull request #202 from fluxcd/arch
Add ARM64 support to install/bootstrap
4 years ago
stefanprodan 3f07bd6471 Add arch flag to install/bootstrap 4 years ago
Hidde Beydals 2f861f19c0 Update `gotk create helmrelease` examples
To better reflect optional fields and highlight specific configuration
options.
4 years ago
Hidde Beydals e53d0dadbf Support GitRepository source in HelmRelease cmds 4 years ago
Hidde Beydals 22624ae4d5 Rename `tk` binary to `gotk`
To avoid conflicts with the `tk` binary from the Tanka project.
4 years ago
stefanprodan b5ed8f0183 Add SSH hostname arg to GitLab bootstrap 4 years ago
Hidde Beydals 123433c4ea Support providing TLS certs for helm source 5 years ago
Manuel Morejon ffd4784916
Replace tab by space 5 years ago
Manuel Morejon 750830c302
Replace tk sync example by tk reconcile 5 years ago
stefanprodan c2ff169c08 Add image pull secret arg to install/bootstrap 5 years ago
stefanprodan 57a1dbfc6d Add container registry option to install/bootstrap 5 years ago
stefanprodan 8e67cfd5c9 Delete custom resources during uninstall
Remove Kustomizations, GitRepositories and HelmRepositories before deleting the toolkit controllers and CRDs.
5 years ago
stefanprodan 0b2bc7ab3f Implement get/export HelmRelease for Helm releases 5 years ago
stefanprodan 797aec5528 Add create/delete HelmRelease e2e tests 5 years ago
stefanprodan 5f0b95dc59 Implement create/delete for Helm releases 5 years ago
stefanprodan 5254dca9d9 Add Helm repository cmd docs 5 years ago
stefanprodan aaad618e20 Rename kustomization arg from validate to validation
Fix `tk create kustomization` command args inconsistency with the Kustomize API
5 years ago
stefanprodan b92cbcd7e7 Use semver manifests as kustomize base
Instead of cloning the components repositories to download the base manifests, we build them in CI at release time and download them in tk install/bootstrap based on the provided semver. This speeds up the manifests generation from minutes to milliseconds.
5 years ago
stefanprodan 499ba15004 Add export option to tk install 5 years ago
stefanprodan 8dc5db17ac Add helm suspend/resume commands 5 years ago
stefanprodan 7a68c4ccf3 Add reconcile helm commands 5 years ago
stefanprodan 394227571f Rename sync cmd to reconcile 5 years ago
stefanprodan e180611024 Refactor defaults
- add dedicated components flag for bootstrap/install/check
- extract defaults to vars
- update CLI docs
5 years ago
stefanprodan 24418370f1 Add helm-controller docs 5 years ago
stefanprodan b11b9588f8 Update tk docs 5 years ago
Hidde Beydals 21fd436621 Add descriptions to all CLI commands 5 years ago
Hidde Beydals 0e81f6c3af docs: disable autogen footer CLI docs 5 years ago
stefanprodan 3d7349ee53 Generate cmd docs 5 years ago
stefanprodan badd2a102f Generate bootstrap docs 5 years ago
stefanprodan c047a4476e Add bootstrap docs 5 years ago
stefanprodan b0b19b0dea Regen docs for the v0.0.1-alpha.7 API 5 years ago
stefanprodan afcb41c59b Add bash completion cmd 5 years ago
stefanprodan be3f65d800 docs: add CLI help 5 years ago