backstage-edp/examples/k8s-apply/template-manifest-object.yaml
Jesse Sanford 139a3674c0
Include plugin scaffolder actions directly in src (#15)
Signed-off-by: Jesse Sanford <108698+jessesanford@users.noreply.github.com>
Co-authored-by: Manabu McCloskey <manabu.mccloskey@gmail.com>
2024-03-18 10:31:53 -06:00

41 lines
1.1 KiB
YAML

apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: deploy-resources-object
title: Deploy Resources using object
description: Deploy Resource to Kubernetes
spec:
owner: guest
type: service
# these are the steps which are rendered in the frontend with the form input
parameters: []
steps:
- id: template
name: Generating component
action: fetch:template
input:
url: ./skeleton
- id: apply
name: apply-manifest
action: cnoe:kubernetes:apply
input:
namespaced: true
manifestObject:
apiVersion: v1
kind: ConfigMap
metadata:
name: game-demo
data:
# property-like keys; each key maps to a simple value
player_initial_lives: "3"
ui_properties_file_name: "user-interface.properties"
# file-like keys
game.properties: |
enemy.types=aliens,monsters
player.maximum-lives=5
user-interface.properties: |
color.good=purple
color.bad=yellow
allow.textmode=true
clusterName: local