@gin/argocd-v1alpha1@0.4.4Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
This package provides a wrapper for the official ArgoCD Helm chart, exposing a clean API for the most important configuration options and some convenient extras, as well as exposing access to the raw Helm chart values.
Features
- Easily bootstrap ArgoCD and then have it manage itself in your Kubernetes cluster.
- Configure ConfigManagementPlugins with a simple API.
- Templates for ArgoCD
Application
andApplicationSet
resources for various use cases, as well as configuration for Private repositories (WIP).
Note: Unless you want to use this package solely for bootstrapping ArgoCD, you likely want to install the
gin-argocd
CMP, which allows you to invoke Deno scripts to generate Kubernetes resources and thus make use of Gin.
Usage example
For a complete example, see examples/deploy.ts
.
import { Gin } from "jsr:@gin/core"; import { ArgoCDDeployment } from "jsr:@gin/argocd-v1alpha1"; import { hash } from "jsr:@stdext/crypto/hash/bcrypt"; new Gin().run((gin) => { gin.emit<ArgoCDDeployment>({ apiVersion: "argocd.gin.jsr.io/v1alpha1", kind: "ArgoCDDeployment", metadata: { name: "argocd", namespace: "argocd", }, spec: { chart: { version: "8.0.14", }, common: { adminPassword: { bcryptHash: "$2b$12$1ykn5sGxWBPnDs89/pNukOFdRZ2oC86CvoJj1880mmH0GwbnA5Z2q", // "password" }, }, values: { crds: { install: true, keep: true, }, }, }, }); });
Chart compatibility
This package is known to be compatible with the following ArgoCD Helm chart versions. If there have been no groundbreaking changes in the Helm chart, it should also be compatible with newer versions.
- 8.0.14
Dependencies
This package depends on @gin/helm-v1alpha1
, hence it has all the same Deno
permission requirements when executed.
Add Package
deno add jsr:@gin/argocd-v1alpha1
Import symbol
import * as argocd_v_alpha_ from "@gin/argocd-v1alpha1";
Import directly with a jsr specifier
import * as argocd_v_alpha_ from "jsr:@gin/argocd-v1alpha1";
Add Package
pnpm i jsr:@gin/argocd-v1alpha1
pnpm dlx jsr add @gin/argocd-v1alpha1
Import symbol
import * as argocd_v_alpha_ from "@gin/argocd-v1alpha1";
Add Package
yarn add jsr:@gin/argocd-v1alpha1
yarn dlx jsr add @gin/argocd-v1alpha1
Import symbol
import * as argocd_v_alpha_ from "@gin/argocd-v1alpha1";
Add Package
vlt install jsr:@gin/argocd-v1alpha1
Import symbol
import * as argocd_v_alpha_ from "@gin/argocd-v1alpha1";
Add Package
npx jsr add @gin/argocd-v1alpha1
Import symbol
import * as argocd_v_alpha_ from "@gin/argocd-v1alpha1";
Add Package
bunx jsr add @gin/argocd-v1alpha1
Import symbol
import * as argocd_v_alpha_ from "@gin/argocd-v1alpha1";