Hidde Beydals
236ffd1767
Tidy up command descriptions
...
Rewordings and removal of superfluous newlines.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
Hidde Beydals
dc6b0d0f0d
Use Host from parsed URL instead of Hostname
...
Regression bug introduced in #1001 .
Signed-off-by: Hidde Beydals <hello@hidde.co>
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
Michael Bridgen
bc45a79b92
Give more explanation for --personal flag
...
Signed-off-by: Michael Bridgen <michael@weave.works>
4 years ago
Stefan Prodan
bc9cbc387c
Add flux version to bootstrap commit messages
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Somtochi Onyekwere
a7586e69fd
Refactor cmd global variables into structs
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
Somtochi Onyekwere
406601eead
Update pkg/git to v0.2.2
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
Philip Laine
d236a9af57
Add git implementation to generate sync options
...
Signed-off-by: Philip Laine <philip.laine@gmail.com>
4 years ago
Somtochi Onyekwere
4fcf93306a
Gets actual path for owner
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
Somtochi Onyekwere
3a4a2002d4
Corrects typo
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
Somtochi Onyekwere
b8d4af5538
Inform user of path being used
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
Somtochi Onyekwere
0646538cef
Checks if bootstrap path differs
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
Somtochi Onyekwere
61129c6b6a
Coverts backward slash to forward slash in path flag
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
Somtochi Onyekwere
f1cfae8f26
Validates project name for gitlab
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
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>
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
Stefan Prodan
7792cd6a10
Add token authentication option to bootstrap
...
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
0bf52f4746
Change `fluxcd/toolkit` to `fluxcd/flux2`
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
Hidde Beydals
e2752e4508
Rename `gotk` binary to `flux`
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago