Show/hide folder structure
.
├── .github
│ ├── scripts
│ └── workflows
├── Devantler.FluxCLI
│ └── runtimes
│ ├── linux-arm64
│ │ └── native
│ ├── linux-x64
│ │ └── native
│ ├── osx-arm64
│ │ └── native
│ ├── osx-x64
│ │ └── native
│ ├── win-arm64
│ │ └── native
│ └── win-x64
│ └── native
└── Devantler.FluxCLI.Tests
├── FluxTests
└── assets
20 directories
A simple .NET library that embeds the Flux CLI.
To get started, you can install the package from NuGet.
dotnet add package Devantler.FluxCLI
You can execute the Flux CLI commands using the Flux
class.
using Devantler.FluxCLi;
// Install flux
await Flux.InstallAsync(cancellationToken: cancellationToken);
// Create a new OCI source
await Flux.CreateOCISourceAsync("podinfo", new Uri("oci://ghcr.io/stefanprodan/manifests/podinfo"));
// Create a new Kustomization
await Flux.CreateKustomizationAsync("podinfo", "OCIRepository/podinfo", "");
// Reconcile the source and kustomization
await Flux.ReconcileOCISourceAsync("podinfo").ConfigureAwait(false))
await Flux.ReconcileKustomizationAsync("podinfo").ConfigureAwait(false)