Commit Graph

3190 Commits (e0bee66876abd0294553a063058952bd9a2726b9)
 

Author SHA1 Message Date
Michael Bridgen ed09dd57b6
Merge pull request from fluxcd/auto-docs-correction
Make sure flux create output gets redirected to file
Michael Bridgen 58b4c980c1 Make sure flux create output gets redirected to file
(i.e.: a missing `>`)

Signed-off-by: Michael Bridgen <michael@weave.works>
Hidde Beydals dd5165dcbf
Merge pull request from fluxcd/update-components
Update toolkit components
fluxcdbot 6da22613fe Update toolkit components
Hidde Beydals d0926776a5
Merge pull request from fluxcd/doc-targetpath-escape-note
docs: add note about `TargetPath` and JSON values
Hidde Beydals 14dc39e8d2 docs: add note about `TargetPath` and JSON values
Signed-off-by: Hidde Beydals <hello@hidde.co>
Hidde Beydals f0f2a79384
Merge pull request from vterdunov/patch-1
Hidde Beydals 7b6f875920 docs: 'like so' -> 'as in the following example'
Signed-off-by: Hidde Beydals <hello@hidde.co>
Terdunov Vyacheslav 52cec044b8 Fix typo
Signed-off-by: Terdunov Vyacheslav <mail2slick@gmail.com>
Hidde Beydals 07dd59892f
Merge pull request from fluxcd/e2e-timeout
Set e2e uninstall timeout to 10m
Stefan Prodan ffeaa683c5 Set e2e uninstall timeout to 10m
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Hidde Beydals 1301bf7c15
Merge pull request from alexei-led/main
Support check command with multiple config files
Alexei Ledenev 69387fd2a4 Support check command with multiple config files
Resolves: 
Signed-off-by: Alexei Ledenev <alexei.led@gmail.com>
Stefan Prodan 12a0ebe3ba
Merge pull request from fluxcd/pat-hint
Add note about deploy key linked to pat
Philip Laine 3de81827eb Move hint to github guide
Signed-off-by: Philip Laine <philip.laine@xenit.se>
Philip Laine a7362b60e7 Add note about deploy key linked to pat
Signed-off-by: Philip Laine <philip.laine@xenit.se>
Stefan Prodan 5d4bb3a43f
Merge pull request from fluxcd/kustomize-helm-e2e
Add e2e test for flux2-kustomize-helm-example
Stefan Prodan d02d507812
Add e2e test for flux2-kustomize-helm-example
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan 554de7ba6f
Merge pull request from fluxcd/fix-action-binary
Move flux binary to GitHub workspace
Stefan Prodan 5d9ccc973d
Move flux binary to GitHub workspace
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan 53ffb8aa00
Merge pull request from fluxcd/flux-action-docs-ignore
Add note about ignoring flux action binary
Stefan Prodan c4da4a81aa
Add note about ignoring flux action binary
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Hidde Beydals b824ea8858
Merge pull request from fluxcd/docs/zsh-completion-example
Fix zsh completion command example
Hidde Beydals 22e26efec1 Fix zsh completion command example
Signed-off-by: Hidde Beydals <hello@hidde.co>
Hidde Beydals 679490e8f4
Merge pull request from fluxcd/update-components
Update toolkit components
fluxcdbot 15f17ed36d Update toolkit components
Hidde Beydals c8265fb80c
Merge pull request from fluxcd/docs-fix-image-updates-branch
Add branch to image automation docs
Stefan Prodan 3883e92631
Add branch to image automation docs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan aa9bc4ce8b
Merge pull request from fluxcd/update-components
Update kustomize-controller to v0.5.1
fluxcdbot 37c14e8088 Update toolkit components
Hidde Beydals 439fbafc01
Merge pull request from fluxcd/case-insensitive-selector-args
Make resource selector args case insensitive
Hidde Beydals 1b8e980519 Make resource selector args case insensitive
So that `<kind>/<name>` flags can be supplied as:

* `secret/foo`
* `Secret/foo`
* `SeCrEt/foo`

But result in: `Secret/foo`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
Hidde Beydals 567acb6291
Merge pull request from fluxcd/flags-tests
Add tests for CLI flags
Hidde Beydals 996bfe87ff Add tests for CLI flags
This includes various bug fixes, especially around the area of missing
names for `<kind>/<name>` formats.

Signed-off-by: Hidde Beydals <hello@hidde.co>
Hidde Beydals 3c1793b6c5
Merge pull request from fluxcd/fix-azure-devops-docs
Stefan Prodan 1a7f253767
Fix Azure DevOps SSH URL in docs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Hidde Beydals f188e59b21
Merge pull request from fluxcd/safe-rel-path
Add safe guards for relative paths
Hidde Beydals 5ea4e814f5 Add safe guards for relative paths
This commit adds multiple safe guards for relative paths, ensuring they
never traverse outside the working directory.

The `SafeRelativePath` flag calculates the safe relative path based on a
relative base dir, which results in a flattened path.

The write methods of `manifestgen` make use of the `SecureJoin` as well,
to ensure writes are never outside of the given directory when used as
a lib outside of the CLI.

Signed-off-by: Hidde Beydals <hello@hidde.co>
Stefan Prodan 008b3b8408
Merge pull request from fluxcd/docs-image-updates
Add image automation guide
Stefan Prodan 7ae3dee900
Add image automation guide
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan 2395ab6e14
Merge pull request from fluxcd/fix-cluster-domain
Fix cluster domain mapping
Stefan Prodan 8efe053ffa
Fix cluster domain mapping
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan 612600b88c
Merge pull request from L3o-pold/add-cluster-domain-bootstrap-option
Add cluster-domain option for bootstrap command
Léopold Jacquot 4d7df52dbe Add cluster-domain option for bootstrap command
Signed-off-by: Léopold Jacquot <leopold.jacquot@infomaniak.com>
Stefan Prodan b6c63a1aa4
Merge pull request from fluxcd/update-components
Update source-controller to v0.5.4
fluxcdbot a4788ce6bb Update toolkit components
Michael Bridgen 0ba6fc1b36
Merge pull request from fluxcd/image-controller-commands
Add commands for image automation API
Michael Bridgen 0e35c209d9 Factor out upsert and upsertAndWait
It's a common pattern in the create commands to construct a value,
then (if not exporting it) upsert it and wait for it to
reconcile. This commit factors `upsert`, which does the update/insert
bit, and `upsertAndWait`, which does the whole thing.

Since these output messages, they are methods of `apiType` (previously
`names`), so that they have access to the name of the kind they are
operating on.

Signed-off-by: Michael Bridgen <michael@weave.works>
Michael Bridgen 3b9b2cbe9f Reuse isReady from create_image commands
I implemented the isReady procedure for adapters for resume -- use it
in create too.

Signed-off-by: Michael Bridgen <michael@weave.works>
Michael Bridgen 45240bdb71 Rename "auto" subcommands to "image"
This means all the sub-subcommands can drop the `image-` prefix,
making them shorter and more fluent.

E.g.,

    flux create image policy

rather than

    flux create auto image-policy

Signed-off-by: Michael Bridgen <michael@weave.works>