magekubernetes

package module
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 9 Imported by: 0

README

Mage Kubernetes Library

Mage library to support kubernetes related ci

Configuring your repository

You can change settings in the repository by manupilating configuration file in .pallet/gitconfig.yaml

The full definition of the api can be found here

CI of the changes in the repositoryconfig is not configured yet. For now you can use the argocd app status to find the status and potential errors.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgoCDDiff

func ArgoCDDiff() error

ArgoCDDiff runs a diff between local changes and the current running state in ArgoCD

func ArgoCDListApps

func ArgoCDListApps() error

ArgoCDListApps show the apps related to this repository

func KubeConform

func KubeConform() error

KubeConform runs kubeconform on Kubernetes manifests for ArgCD applications related to this repository

func KubeScore

func KubeScore() error

KubeScore runs kube-score on Kubernetes manifests for ArgCD applications related to this repository

func Pallets added in v0.3.0

func Pallets() error

Pallets validates the pallet files in the .pallet directory

func Validate

func Validate() error

Validate Kubernetes manifests for ArgCD applications related to this repository

Types

type ArgoCDApp

type ArgoCDApp struct {
	Spec     ArgoCDAppSpec     `yaml:"spec"`
	Metadata ArgoCDAppMetadata `yaml:"metadata"`
}

ArgoCDApp contains the spec and metadata of an app

type ArgoCDAppHelm

type ArgoCDAppHelm struct {
	ReleaseName string   `yaml:"releaseName"`
	ValueFiles  []string `yaml:"valueFiles"`
}

ArgoCDAppHelm contains the info for rendering a helm file

type ArgoCDAppMetadata

type ArgoCDAppMetadata struct {
	Name string `yaml:"name"`
}

ArgoCDAppMetadata contains the app name

type ArgoCDAppSource

type ArgoCDAppSource struct {
	Helm    ArgoCDAppHelm `yaml:"helm"`
	Path    string        `yaml:"path"`
	RepoRUL string        `yaml:"repoURL"`
}

ArgoCDAppSource contains the info where to find the source for rendering

type ArgoCDAppSpec

type ArgoCDAppSpec struct {
	Source  ArgoCDAppSource   `yaml:"source"`
	Sources []ArgoCDAppSource `yaml:"sources"`
}

ArgoCDAppSpec contains the app source

type HelmChart added in v0.2.0

type HelmChart struct {
	Dependencies []HelmDependency `yaml:"dependencies"`
}

HelmChart contains all metadata of an helm chart

type HelmDependency added in v0.2.0

type HelmDependency struct {
	Name       string `yaml:"name"`
	Version    string `yaml:"version"`
	Repository string `yaml:"repository"`
	Alias      string `yaml:"alias"`
}

HelmDependency contains a dependency of a helmchart

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL