Skip to content

Instantly share code, notes, and snippets.

@kirederik
Last active February 21, 2024 15:26
Show Gist options
  • Save kirederik/6ce20e90f4bc71d02e2958aad14b8c59 to your computer and use it in GitHub Desktop.
Save kirederik/6ce20e90f4bc71d02e2958aad14b8c59 to your computer and use it in GitHub Desktop.
invalid-promise.yaml
apiVersion: platform.kratix.io/v1alpha1
kind: Promise
metadata:
name: namespace
namespace: default
labels:
kratix.io/promise-version: v1.0.0+beta.1
spec:
api:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: namespaces.marketplace.kratix.io
spec:
group: invalid
names:
kind: namespace
plural: namespaces
singular: namespace
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
properties:
spec:
properties:
clusterName:
description: |
The name of the cluster where the namespace should be created
type: string
namespaceName:
description: |
The name of the namespace to be created
type: string
required:
- namespaceName
type: object
type: object
served: true
storage: true
workflows:
resource:
configure:
- apiVersion: platform.kratix.io/v1alpha1
kind: Pipeline
metadata:
name: instance-configure
namespace: default
spec:
containers:
- image: ghcr.io/syntasso/kratix-marketplace/namespace-configure-pipeline:v0.1.0
name: namespace-configure-pipeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment