Stefan Prodan
bc9cbc387c
Add flux version to bootstrap commit messages
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-02-12 10:47:00 +02:00
Stefan Prodan
37f5587085
Allow Flux to be deployed on tainted Kubernetes nodes
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-02-11 15:20:19 +02:00
Stefan Prodan
1256bbfbaf
Fix bootstrap status check timeout
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-02-11 13:09:16 +02:00
Jonathan Innis
eb7102ecac
Adding extract pattern validation
...
Signed-off-by: Jonathan Innis <jonathan.innis.ji@gmail.com >
2021-02-08 16:51:45 -08:00
jonathan-innis
3f0cb1637c
Add select-alpha and extract to create policy
...
Signed-off-by: jonathan-innis <jonathan.innis.ji@gmail.com >
2021-02-08 16:49:07 -08:00
Stefan Prodan
a5fa731545
Add support for getting resources by name
...
- add singular alias to get commands
- allow filtering the get commands result by resource name
- add the image commands to mkdocs index
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-02-05 16:35:23 +02:00
Stefan Prodan
3dd574ee51
Add support for multiple values files to create hr
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-02-05 15:43:03 +02:00
Michael Bridgen
cc7b7b0689
Give examples of create image repository
...
Signed-off-by: Michael Bridgen <michael@weave.works >
2021-02-04 12:55:42 +00:00
Michael Bridgen
5df8e05d1a
Give image repository a cert-secret-ref flag
...
ImageRepository objects can now refer to a secret containing
certificates to use for TLS. This adds the flag
flux create image repository --cert-secret-ref
for naming a secret to use. You can create such a secret with
flux create secret tls
Signed-off-by: Michael Bridgen <michael@weave.works >
2021-02-04 12:55:42 +00:00
Michael Bridgen
75ab28ee5d
Rename flux delete auto to flux delete image
...
This slipped through the auto->image change made in the course of
preparing #538 .
Signed-off-by: Michael Bridgen <michael@weave.works >
2021-02-04 11:57:40 +00:00
Michael Bridgen
1e6be99c36
Correct spelling of repository in error
...
Signed-off-by: Michael Bridgen <michael@weave.works >
2021-02-04 10:16:09 +00:00
Stefan Prodan
e055c9ddc1
Refactor components status check
...
- run install/bootstrap checks in parallel (1m timeout)
- list not found components
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-02-04 11:16:27 +02:00
jonathan-innis
d5ad26c934
Change failed message for bootstrap
...
Signed-off-by: jonathan-innis <jonathan.innis.ji@gmail.com >
2021-02-03 12:08:10 -08:00
jonathan-innis
144b7cd922
Update errors returned to user
...
Signed-off-by: jonathan-innis <jonathan.innis.ji@gmail.com >
2021-02-03 12:07:29 -08:00
jonathan-innis
b528428d02
Add kstatus to install and check commands
...
Signed-off-by: jonathan-innis <jonathan.innis.ji@gmail.com >
2021-02-03 12:07:29 -08:00
jonathan-innis
b3d7730e79
Use status polling in bootstrap command
...
Signed-off-by: jonathan-innis <jonathan.innis.ji@gmail.com >
2021-02-03 12:07:19 -08:00
Stefan Prodan
4fd5684277
Fix create secret commands
...
Regression bug introduced in https://github.com/fluxcd/flux2/pull/788
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-01-30 15:07:48 +02:00
Somtochi Onyekwere
b8a215230c
refactor resume command
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-29 19:05:38 +01:00
Somtochi Onyekwere
5df8f7313c
Refactor reconcile commands
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-28 13:21:29 +01:00
Somtochi Onyekwere
ef579fe596
Refactor suspend commands
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-27 09:57:37 +01:00
Somtochi Onyekwere
1f1c8286a5
Refactor delete command for kustomizations, sources and helmreleases
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-27 09:43:39 +01:00
Hidde Beydals
69294ef56d
Use correct type in various get source commands
...
This fixes a bug where the wrong type was displayed for various
`get source` commands.
```console
$ flux get sources helm --namespace default
✗ no Bucket objects found in default namespace
```
Signed-off-by: Hidde Beydals <hello@hidde.co >
2021-01-27 09:28:48 +01:00
Hidde Beydals
68d0be3818
Set source namespace when reconciling with source
...
Signed-off-by: Hidde Beydals <hello@hidde.co >
2021-01-26 22:21:40 +01:00
Michael Bridgen
263c664acd
Factor out more common secrets command code
...
Making the secret without data is always the same, so factor that out.
Signed-off-by: Michael Bridgen <michael@weave.works >
2021-01-26 17:25:33 +00:00
Michael Bridgen
b12c4c22fb
Add command for creating TLS secrets
...
The image-reflector controller now accepts a secret containing a
client certificate and key, and/or a CA certificate; so it's useful to
have a command for creating them.
`flux create secret helm` is close, but accepts username/password
(which would be ignored), and has the wrong name of course. Happily
though, much can be shared between the implementations.
Signed-off-by: Michael Bridgen <michael@weave.works >
2021-01-26 17:25:33 +00:00
Somtochi Onyekwere
65a2c87b5a
Refactor get cmd for kustomization and helmrelease
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-26 10:15:35 +01:00
Somtochi Onyekwere
584f0eea58
Refactor get source commands
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-26 09:26:55 +01:00
Hidde Beydals
ac6c6e3a30
Incorporate required API changes
...
* Use `LocalObjectReference` and `NamespacedObjectKindReference`
from `meta` package, as required by controller API changes.
* Remove `Update` field from created `ImageUpdateAutomation`,
as the API changed and the default is now defined in the Custom
Resource Definition.
Signed-off-by: Hidde Beydals <hello@hidde.co >
2021-01-22 17:21:36 +01:00
Somtochi Onyekwere
a7586e69fd
Refactor cmd global variables into structs
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-22 10:42:31 +01:00
Hidde Beydals
9e1db06936
Move Git implementation validation to custom flag
...
Signed-off-by: Hidde Beydals <hello@hidde.co >
2021-01-15 16:50:23 +01:00
Hidde Beydals
a260403334
Remove GitImplementation default
...
As the field in the CRD is optional.
Signed-off-by: Hidde Beydals <hello@hidde.co >
2021-01-15 16:49:26 +01:00
Stefan Prodan
bcdce02b78
Add image tags regex filter arg to policy command
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-01-15 13:24:59 +02:00
Stefan Prodan
2f0835b655
Make branch arg required for image updates
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-01-15 13:22:43 +02:00
Stefan Prodan
f6fa468acb
Use reconcile request annotation
...
Replace deprecated `ReconcileAtAnnotation` annotation with `ReconcileRequestAnnotation`
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-01-15 12:41:13 +02:00
Hidde Beydals
207c50ceac
Deprecate arch flags in favor of multi-arch images
...
This commit deprecates the architecture flag (`--arch`) for the install
and bootstrap commands, in favor of the bundled multi-arch images that
will be available for the next MINOR range of GOTK controller releases.
Summary of changes:
* `*Arch` variables have been marked as deprecated for both commands.
* `-arm64` suffix is no longer selectively added to the image definition
of a component's `Deployment`.
* `kubernetes.io/arch` node selector with the defined value has been
removed from the components' `Deployment`s.
* `Arch` has been removed from the available `Options` in
`manifestgen/install`.
* Documentation references have been changed to highlight existence
of multi-arch images and supported architectures.
Signed-off-by: Hidde Beydals <hello@hidde.co >
2021-01-15 11:25:20 +01:00
Somtochi Onyekwere
406601eead
Update pkg/git to v0.2.2
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-14 20:15:17 +01:00
Philip Laine
d236a9af57
Add git implementation to generate sync options
...
Signed-off-by: Philip Laine <philip.laine@gmail.com >
2021-01-13 23:44:29 +01:00
Michael Bridgen
cafce536bb
Rename asRuntime* -> asClient*
...
For the avoidance of misdirection.
Signed-off-by: Michael Bridgen <michael@weave.works >
2021-01-13 11:38:02 +00:00
Michael Bridgen
d03280a12f
Update to controller-runtime 0.7.0
...
controller-runtime methods now accept `client.Object` and
`client.ObjectList` rather than `runtime.Object`. This means the
adapter interfaces need to change signature, but happily, little else.
Since the list adapter is now distinct to the object adapter, `len()`
can go there instead of the command-specific interfaces.
Signed-off-by: Michael Bridgen <michael@weave.works >
2021-01-13 11:25:40 +00:00
Somtochi Onyekwere
4fcf93306a
Gets actual path for owner
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-11 15:02:02 +01:00
Stefan Prodan
331ac3f031
Add create secret helm command
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-01-08 12:36:11 +02:00
Stefan Prodan
febedaad8f
Map ecdsa/ed25519 args to create secret
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com >
2021-01-08 11:20:36 +02:00
Somtochi Onyekwere
3a4a2002d4
Corrects typo
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-07 10:44:40 +01:00
Somtochi Onyekwere
b8d4af5538
Inform user of path being used
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-07 10:30:17 +01:00
Somtochi Onyekwere
0646538cef
Checks if bootstrap path differs
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-07 10:22:13 +01:00
Somtochi Onyekwere
61129c6b6a
Coverts backward slash to forward slash in path flag
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-07 09:29:37 +01:00
Somtochi Onyekwere
f1cfae8f26
Validates project name for gitlab
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-05 14:37:49 +01:00
Somtochi Onyekwere
dd0b807fe4
Validates components set
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com >
2021-01-05 10:52:11 +01:00
Alexei Ledenev
69387fd2a4
Support check command with multiple config files
...
Resolves : #472
Signed-off-by: Alexei Ledenev <alexei.led@gmail.com >
2020-12-18 12:13:57 +02:00
Hidde Beydals
22e26efec1
Fix zsh completion command example
...
Signed-off-by: Hidde Beydals <hello@hidde.co >
2020-12-16 21:15:41 +01:00