Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add flux autodiscovery (#1338)
* feat: add flux autodiscovery Signed-off-by: Olblak <me@olblak.com> * fix: flux file path Signed-off-by: Olblak <me@olblak.com> --------- Signed-off-by: Olblak <me@olblak.com>
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
assets/code_example/docs/plugins/autodiscovery/flux/updatecli.d/updatecli.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: "Flux Autodiscovery" | ||
scms: | ||
default: | ||
kind: git | ||
spec: | ||
url: "https://github.com/updatecli-test/flux2-multi-tenancy.git" | ||
branch: main | ||
autodiscovery: | ||
scmid: default | ||
crawlers: | ||
flux: | ||
digest: true | ||
versionfilter: | ||
kind: semver | ||
pattern: minoronly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "Flux" | ||
description: "Discover Flux update" | ||
lead: "kind: flux" | ||
draft: false | ||
images: [] | ||
menu: | ||
docs: | ||
parent: "plugin-autodiscovery" | ||
weight: 130 | ||
toc: true | ||
plugins: | ||
- autodiscovery | ||
--- | ||
|
||
== Description | ||
|
||
The `flux` Autodiscovery plugin allows to automatically search and update content in Flux configuration file. | ||
|
||
Updatecli proposes Helm Chart update when it identifies both a `helmrelease` and a `helmrepository` in the same namespace. | ||
Updatecli proposes version update when it detects OCIRepository | ||
|
||
Please note that Updatecli doesn't support yet GitRepository update, feel free to open an issue. | ||
|
||
=== Manifests | ||
==== Parameters | ||
|
||
{{< autodiscoveryparameters "flux" >}} | ||
|
||
==== Example | ||
|
||
[source,yaml] | ||
---- | ||
# updatecli.d/default.yaml | ||
{{<include "assets/code_example/docs/plugins/autodiscovery/flux/updatecli.d/updatecli.yaml">}} | ||
---- | ||
|