YAML File Format
Promise Template
The ske:configure-resource
action works by pushing a generated Resource Request manifest
to a Git repository, and can be used in a Template to make these requests from within
Backstage. The Template allows all Promise API fields to be filled in within Backstage.
An outline of a Template for generating Jenkins Resource Requests is as follows:
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
description: Jenkins as a Service
name: jenkins-promise-template
title: Jenkins
spec:
lifecycle: experimental
owner: kratix-platform
parameters:
- properties:
objname:
description: Name for the request in the platform cluster
title: Name
type: string
objnamespace:
description: Namespace for the request in the platform cluster
title: Namespace
type: string
required:
- objname
- objnamespace
title: Jenkins Instance Metadata
# other properties
steps:
- action: ske:configure-resource
id: ske-configure-resource
input:
manifest: |
apiVersion: marketplace.kratix.io/v1alpha1
kind: jenkins
metadata:
name: ${{ parameters.objname }}
namespace: ${{ parameters.objnamespace}}
spec: ${{ parameters.spec | dump }}
name: Create a Jenkins
type: kratix-resource