kustomization-set-controller

command module
v0.0.0-...-05e5313 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

kustomization-set-controller

This is no longer maintained, go look at kluctl.

Building

export IMG=<insert docker registry>
$ make docker-build docker-push

Installation

This requires the source-controller and kustomize-controller.

$ flux install --components source-controller,kustomize-controller
$ IMG=<insert docker registry> make deploy

You'll need a Flux GitRepository object.

For example:

apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
  name: go-demo-repo
  namespace: default
spec:
  interval: 15m
  url: https://github.com/bigkevmcd/go-demo

And then create a KustomizationSet.

For example:

apiVersion: source.gitops.solutions/v1alpha1
kind: KustomizationSet
metadata:
  name: go-demo-set
  namespace: default
spec:
  generators:
  - list:
      elements:
      - env: dev
      - env: production
      - env: staging
  template:
    metadata:
      name: '{{env}}-demo'
      namespace: default
    spec:
      interval: 5m
      path: "./examples/kustomize/environments/{{ .env }}"
      prune: true
      sourceRef:
        kind: GitRepository
        name: go-demo-repo

This will trigger the deployment of the three environments in the repo above.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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