Allen Porter
351d287d88
Add tests for flux trace command
...
Add tests for flux trace command that fake out the kubernetes client,
load objects from a yaml file and create them in the client, and
assert on the output of the trace command to an expected golden file.
This is a follow up from the suggestions in PR https://github.com/fluxcd/flux2/pull/1626 which suggested that additional
testing would be helpful. This test approach is modeled after the helm command tests.
This required some changes to the kubernetes client setup to make it
possible to use a fake. If we agree this pattern makes sense, it can be
applied to other commands.
Signed-off-by: Allen Porter <allen@thebends.org>
3 years ago
fluxcdbot
15a5f75fe7
Update toolkit components
...
- kustomize-controller to v0.13.2
https://github.com/fluxcd/kustomize-controller/blob/v0.13.2/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
b5ce02b8cf
Update toolkit components
...
- kustomize-controller to v0.13.1
https://github.com/fluxcd/kustomize-controller/blob/v0.13.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
6dedb767c3
Update toolkit components
...
- source-controller to v0.15.3
https://github.com/fluxcd/source-controller/blob/v0.15.3/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
1c1fd62a91
Update toolkit components
...
- image-reflector-controller to v0.11.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.11.0/CHANGELOG.md
- image-automation-controller to v0.14.0
https://github.com/fluxcd/image-automation-controller/blob/v0.14.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
5da7eb7d0d
Update toolkit components
...
- source-controller to v0.15.2
https://github.com/fluxcd/source-controller/blob/v0.15.2/CHANGELOG.md
- image-automation-controller to v0.13.0
https://github.com/fluxcd/image-automation-controller/blob/v0.13.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
a796f3609f
Update toolkit components
...
- helm-controller to v0.11.1
https://github.com/fluxcd/helm-controller/blob/v0.11.1/CHANGELOG.md
- source-controller to v0.15.1
https://github.com/fluxcd/source-controller/blob/v0.15.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
4f7b040405
Update source-controller to v0.15.1
...
This includes an introduction of a `--pass-credentials` flag for the
`flux create source helm` command to allow configuring the new
option introduced.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
354cd5e177
Update toolkit components
...
- source-controller to v0.15.0
https://github.com/fluxcd/source-controller/blob/v0.15.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Stefan Prodan
a6620e478a
Update to Kustomize v4
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
160f59a984
Update toolkit components
...
- helm-controller to v0.11.0
https://github.com/fluxcd/helm-controller/blob/v0.11.0/CHANGELOG.md
- kustomize-controller to v0.13.0
https://github.com/fluxcd/kustomize-controller/blob/v0.13.0/CHANGELOG.md
- source-controller to v0.14.0
https://github.com/fluxcd/source-controller/blob/v0.14.0/CHANGELOG.md
- notification-controller to v0.15.0
https://github.com/fluxcd/notification-controller/blob/v0.15.0/CHANGELOG.md
- image-reflector-controller to v0.10.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.10.0/CHANGELOG.md
- image-automation-controller to v0.12.0
https://github.com/fluxcd/image-automation-controller/blob/v0.12.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Stefan Prodan
b4edb46269
Update go-git to v5.4.2
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
cea869e285
Update toolkit components
...
- kustomize-controller to v0.12.2
https://github.com/fluxcd/kustomize-controller/blob/v0.12.2/CHANGELOG.md
- source-controller to v0.13.2
https://github.com/fluxcd/source-controller/blob/v0.13.2/CHANGELOG.md
- image-automation-controller to v0.11.0
https://github.com/fluxcd/image-automation-controller/blob/v0.11.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
aa887c61c3
Update toolkit components
...
- source-controller to v0.13.1
https://github.com/fluxcd/source-controller/blob/v0.13.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
9f83a69242
Update toolkit components
...
- kustomize-controller to v0.12.1
https://github.com/fluxcd/kustomize-controller/blob/v0.12.1/CHANGELOG.md
- source-controller to v0.13.0
https://github.com/fluxcd/source-controller/blob/v0.13.0/CHANGELOG.md
- notification-controller to v0.14.1
https://github.com/fluxcd/notification-controller/blob/v0.14.1/CHANGELOG.md
- image-automation-controller to v0.10.0
https://github.com/fluxcd/image-automation-controller/blob/v0.10.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
465ea5ccfd
Update go-git to v5.4.1
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
1c744a0f97
Update toolkit components
...
- helm-controller to v0.10.1
https://github.com/fluxcd/helm-controller/blob/v0.10.1/CHANGELOG.md
- source-controller to v0.12.2
https://github.com/fluxcd/source-controller/blob/v0.12.2/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
ef8f5cb87d
Update toolkit components
...
- image-automation-controller to v0.9.1
https://github.com/fluxcd/image-automation-controller/blob/v0.9.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Stefan Prodan
e733c4f55a
Update go-git-providers to v0.1.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
653dcc8d78
Update toolkit components
...
- kustomize-controller to v0.12.0
https://github.com/fluxcd/kustomize-controller/blob/v0.12.0/CHANGELOG.md
- image-reflector-controller to v0.9.1
https://github.com/fluxcd/image-reflector-controller/blob/v0.9.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
dab5bbd393
Update toolkit components
...
- source-controller to v0.12.1
https://github.com/fluxcd/source-controller/blob/v0.12.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
b47f3a57dc
Update toolkit components
...
- helm-controller to v0.10.0
https://github.com/fluxcd/helm-controller/blob/v0.10.0/CHANGELOG.md
- kustomize-controller to v0.11.1
https://github.com/fluxcd/kustomize-controller/blob/v0.11.1/CHANGELOG.md
- source-controller to v0.12.0
https://github.com/fluxcd/source-controller/blob/v0.12.0/CHANGELOG.md
- notification-controller to v0.13.0
https://github.com/fluxcd/notification-controller/blob/v0.13.0/CHANGELOG.md
- image-reflector-controller to v0.9.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.9.0/CHANGELOG.md
- image-automation-controller to v0.9.0
https://github.com/fluxcd/image-automation-controller/blob/v0.9.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
5bee3047ac
Update toolkit components
...
- kustomize-controller to v0.11.0
https://github.com/fluxcd/kustomize-controller/blob/v0.11.0/CHANGELOG.md
- notification-controller to v0.12.0
https://github.com/fluxcd/notification-controller/blob/v0.12.0/CHANGELOG.md
- image-reflector-controller to v0.8.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.8.0/CHANGELOG.md
- image-automation-controller to v0.8.0
https://github.com/fluxcd/image-automation-controller/blob/v0.8.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
f57ce14754
Implement `bootstrap` package in commands
...
This includes making a lot of things configurable (e.g. SSH key
algorithm, RSA bit size, etc.) that used to be static.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
Hidde Beydals
6390812cbb
Factor bootstrap logic into `bootstrap` package
...
This commit factors out the bootstrap logic into a new `bootstrap`
package, while also moving to `go-git-providers` to handle things
around Git providers (e.g. repository creation, deploy key
upsertions).
The `GitProviderBootstrapper` is a superset of the
`PlainGitBootstrapper` that besides `Reconciler` also implements the
`RepositoryReconciler`.
The Git actions rely on an interface, making it easier to support
other implementations than `go-git` at a later moment, to for example
support bootstrapping to Git servers that only support the v2 protocol.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
6129943685
Update toolkit components
...
- source-controller to v0.11.0
https://github.com/fluxcd/source-controller/blob/v0.11.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
7da24932ab
Update toolkit components
...
- helm-controller to v0.9.0
https://github.com/fluxcd/helm-controller/blob/v0.9.0/CHANGELOG.md
- kustomize-controller to v0.10.0
https://github.com/fluxcd/kustomize-controller/blob/v0.10.0/CHANGELOG.md
- source-controller to v0.10.0
https://github.com/fluxcd/source-controller/blob/v0.10.0/CHANGELOG.md
- notification-controller to v0.11.0
https://github.com/fluxcd/notification-controller/blob/v0.11.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
e8b52bf2fc
Update toolkit components
...
- helm-controller to v0.8.2
https://github.com/fluxcd/helm-controller/blob/v0.8.2/CHANGELOG.md
- kustomize-controller to v0.9.3
https://github.com/fluxcd/kustomize-controller/blob/v0.9.3/CHANGELOG.md
- source-controller to v0.9.1
https://github.com/fluxcd/source-controller/blob/v0.9.1/CHANGELOG.md
- notification-controller to v0.10.0
https://github.com/fluxcd/notification-controller/blob/v0.10.0/CHANGELOG.md
- image-reflector-controller to v0.7.1
https://github.com/fluxcd/image-reflector-controller/blob/v0.7.1/CHANGELOG.md
- image-automation-controller to v0.7.0
https://github.com/fluxcd/image-automation-controller/blob/v0.7.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
01946facb3
Update toolkit components
...
- helm-controller to v0.8.1
https://github.com/fluxcd/helm-controller/blob/v0.8.1/CHANGELOG.md
- kustomize-controller to v0.9.2
https://github.com/fluxcd/kustomize-controller/blob/v0.9.2/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
c8ff861d00
Update toolkit components
...
- image-automation-controller to v0.6.1
https://github.com/fluxcd/image-automation-controller/blob/v0.6.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
38a3f3ba11
Update toolkit components
...
- kustomize-controller to v0.9.1
https://github.com/fluxcd/kustomize-controller/blob/v0.9.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
baaa466c0f
Update sigs.k8s.io/cli-utils to v0.22.2
...
This is the first release that includes a patch of the
`CachingClusterReader` so that it continues on all list errors.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
Stefan Prodan
2fe55bcdde
Update Go to v1.16
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Hidde Beydals
2cd3c32ca7
Update toolkit components
...
This includes a change to the components' Kustomization files to make
use of the YAML multi-doc manifests that are now attached to the GitHub
releases.
- helm-controller to v0.8.0
https://github.com/fluxcd/helm-controller/blob/v0.8.0/CHANGELOG.md
- kustomize-controller to v0.9.0
https://github.com/fluxcd/kustomize-controller/blob/v0.9.0/CHANGELOG.md
- source-controller to v0.9.0
https://github.com/fluxcd/source-controller/blob/v0.9.0/CHANGELOG.md
- notification-controller to v0.9.0
https://github.com/fluxcd/notification-controller/blob/v0.9.0/CHANGELOG.md
- image-reflector-controller to v0.7.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.7.0/CHANGELOG.md
- image-automation-controller to v0.6.0
https://github.com/fluxcd/image-automation-controller/blob/v0.6.0/CHANGELOG.md
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
f4650c7a84
Update toolkit components
...
- kustomize-controller to v0.8.1
https://github.com/fluxcd/kustomize-controller/blob/v0.8.1/CHANGELOG.md
- source-controller to v0.8.1
https://github.com/fluxcd/source-controller/blob/v0.8.1/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Dylan Arbour
99002f92f4
Update pkg/runtime to v0.8.2
...
pkg/runtime v0.8.2 introduces runtime/transform which includes
`MergeMaps`:
https://github.com/fluxcd/pkg/pull/85
Signed-off-by: Dylan Arbour <arbourd@users.noreply.github.com>
4 years ago
Hidde Beydals
b903cd5b68
Check for new Flux binary version
...
This prints a warning if the user has internet access and is running
an older version of the binary.
It also replaces the `blang/semver` package with `pkg/version` and
`Masterminds/semver` to align with controller dependencies.
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
Hidde Beydals
7c39aaf463
Update sigs.k8s.io/kustomize/api to v0.7.4
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
fluxcdbot
1c84fa0d97
Update toolkit components
...
- helm-controller to v0.7.0
https://github.com/fluxcd/helm-controller/blob/v0.7.0/CHANGELOG.md
- kustomize-controller to v0.8.0
https://github.com/fluxcd/kustomize-controller/blob/v0.8.0/CHANGELOG.md
- source-controller to v0.8.0
https://github.com/fluxcd/source-controller/blob/v0.8.0/CHANGELOG.md
- notification-controller to v0.8.0
https://github.com/fluxcd/notification-controller/blob/v0.8.0/CHANGELOG.md
- image-reflector-controller to v0.6.0
https://github.com/fluxcd/image-reflector-controller/blob/v0.6.0/CHANGELOG.md
- image-automation-controller to v0.5.0
https://github.com/fluxcd/image-automation-controller/blob/v0.5.0/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
Hidde Beydals
2f31d80c7a
Update `git` from `fluxcd/pkg`
...
This incorporates the changes made to the GitLab provider.
This means that we no longer rely on UI names, but rather use the unique
path identifier (the elements you see in your address bar when looking
at e.g. a group in your GitLab environment).
Signed-off-by: Hidde Beydals <hello@hidde.co>
4 years ago
jonathan-innis
9e86fbb311
Tidy up the mod imports
...
Signed-off-by: jonathan-innis <jonathan.innis.ji@gmail.com>
4 years ago
jonathan-innis
b528428d02
Add kstatus to install and check commands
...
Signed-off-by: jonathan-innis <jonathan.innis.ji@gmail.com>
4 years ago
fluxcdbot
8342f77087
Update toolkit components
...
- source-controller to v0.7.4
https://github.com/fluxcd/source-controller/blob/v0.7.4/CHANGELOG.md
Signed-off-by: GitHub <noreply@github.com>
4 years ago
fluxcdbot
f395044d65
Update toolkit components
4 years ago
fluxcdbot
648af6e645
Update toolkit components
4 years ago
fluxcdbot
c7c57f6717
Update toolkit components
4 years ago
fluxcdbot
1bca31f32c
Update toolkit components
4 years ago
Stefan Prodan
2eb6a0513e
Update fluxcd/pkg/git to v0.2.3
...
Fixes Gitlab bootstrap when used with a project token
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
72122120cb
Update toolkit components
4 years ago
fluxcdbot
19982fa4a6
Update toolkit components
4 years ago
Stefan Prodan
16e74647eb
Update fluxcd/pkg/git to v0.2.2
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
e243df93f1
Update toolkit components
4 years ago
fluxcdbot
f5117329e4
Update toolkit components
4 years ago
Somtochi Onyekwere
406601eead
Update pkg/git to v0.2.2
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
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>
4 years ago
Somtochi Onyekwere
4b63ccf140
Update fluxcd/pkg/git
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
4 years ago
fluxcdbot
c034befbb5
Update toolkit components
4 years ago
fluxcdbot
6da22613fe
Update toolkit components
4 years ago
fluxcdbot
15f17ed36d
Update toolkit components
4 years ago
fluxcdbot
37c14e8088
Update toolkit components
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
fluxcdbot
a4788ce6bb
Update toolkit components
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
fluxcdbot
b2f018e29b
Update toolkit components
4 years ago
fluxcdbot
a7d6446d8f
Update toolkit components
4 years ago
Stefan Prodan
6280fbce17
Update kustomize/api to v0.7.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
35bb770697
Update toolkit components
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
f909d6fde2
Update fluxcd/pkg/git to v0.1.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
fluxcdbot
aea442e7e1
Update toolkit components
4 years ago
fluxcdbot
38fdc603ad
Update toolkit components
4 years ago
fluxcdbot
2bb582f7ed
Update toolkit components
4 years ago
fluxcdbot
bfae2899f3
Update toolkit components
4 years ago
fluxcdbot
c49f9ef26a
Update toolkit components
4 years ago
Stefan Prodan
dd8dc90c1e
Update source-controller to v0.4.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
4 years ago
Aurel Canciu
2a789ec705
Refactor to adopt k8s standardized Condition type
...
Updates to use metav1.Condition type and removes references for
deprecated corev1.Condition* constants and uses the new k8s api/meta
helpers in place of the old pkg/apis/meta types.
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
4 years ago
fluxcdbot
f66399cdc0
Update toolkit components
4 years ago
fluxcdbot
e5dd0c7ff8
Update toolkit components
4 years ago
fluxcdbot
c3876e30a9
Update toolkit components
4 years ago
fluxcdbot
de4e266e33
Update toolkit components
4 years ago
fluxcdbot
d7a893acf9
Update toolkit components
4 years ago
fluxcdbot
71827b4a1a
Update toolkit components
4 years ago
Aurel Canciu
9e3a4b1810
Update pkg components & k8s 1.19, kustomize 0.6.4
...
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
4 years ago
fluxcdbot
07e4fa8abd
Update toolkit components
4 years ago
fluxcdbot
2d8e5b2420
Update toolkit components
4 years ago
fluxcdbot
414aeb0ac3
Update toolkit components
4 years ago
fluxcdbot
a2144b1759
Update toolkit components
4 years ago
fluxcdbot
f461c5e8b7
Update toolkit components
4 years ago
Philip Laine
f7971a871a
Add alert provider commands
4 years ago
stefanprodan
f613c01803
Update blang/semver to v4
...
Signed-off-by: stefanprodan <stefan.prodan@gmail.com>
4 years ago
circa10a
3619cb8bd1
Switch get commands to use tables for output
...
Signed-off-by: circa10a <caleblemoine@gmail.com>
4 years ago
fluxcdbot
bdbded8588
Update toolkit components
4 years ago
stefanprodan
d902c71a6f
Update components to v0.1
4 years ago
fluxcdbot
8e40069e67
Update toolkit components
4 years ago
fluxcdbot
347c2b6bcc
Update toolkit components
4 years ago
stefanprodan
857e442376
Update kustomize/api to v0.6.2
4 years ago
stefanprodan
c36e02bba9
Update kustomize-controller to v0.0.12
4 years ago
stefanprodan
531c2bcf00
Import fluxcd/pkg/runtime
4 years ago
fluxcdbot
dd5505918a
Update toolkit components
4 years ago
stefanprodan
afef6960b9
Cleanup GitHub e2e repo
4 years ago