Skip to content

Commit

Permalink
feat: add flux autodiscovery (#1338)
Browse files Browse the repository at this point in the history
* 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
olblak committed Mar 7, 2024
1 parent 136957d commit 8451746
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
@@ -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

37 changes: 37 additions & 0 deletions content/en/docs/plugins/autodiscovery/flux.adoc
@@ -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">}}
----

0 comments on commit 8451746

Please sign in to comment.