object_template

command
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Object Template Plugin

The rigdev.object_template patches a YAML spec to a Kubernetes object defined by a Group, Kind and Name.

The config can be templated with standard Go templating and has

.capsule
.current

as its templating context where .current refers to the current version of the object being modified.

Example

Config:

object: | 
  spec:
   externalName: some-name 
group: core
kind: Service
name: {{ .capsule.metadata.name }}

The resulting Service resource of the Capsule, if the Capsule is named my-capsule

kind: Service
metadata:
  name: my-capsule
...
spec:
  externalName: some-name
  ...

Config

Configuration for the object_template plugin

Field Description
object string The yaml to apply to the object. The yaml can be templated.
group string Group to match, for which objects to apply the patch to.
kind string Kind to match, for which objects to apply the patch to.
name string Name of the object to match. Default to Capsule-name.

Documentation

Overview

+groupName=plugins.rig.dev -- Only used for config doc generation

Jump to

Keyboard shortcuts

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