- At the root of your backstage directory, run:
yarn --cwd packages/backend add @backstage/plugin-scaffolder-node yarn --cwd packages/backend add zod yarn --cwd packages/backend add fs-extra @types/fs-extra yarn install
- Create a
custom.ts
file inpackages/backend/src/plugins/actions/
with the contents of thecustom.ts
file below
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: backstage.io/v1alpha1 | |
kind: Component | |
metadata: | |
name: jenkins | |
title: "my-ci-cd" | |
description: jenkins created via jenkins Promise | |
annotations: | |
backstage.io/kubernetes-label-selector: jenkins-cr=jenkins | |
kratix.io/status: '{"message":"Resource requested"}' | |
kratix.io/group: marketplace.kratix.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
labels: | |
app.kubernetes.io/instance: ingress-nginx | |
app.kubernetes.io/name: ingress-nginx | |
name: ingress-nginx | |
--- | |
apiVersion: v1 | |
automountServiceAccountToken: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: platform.kratix.io/v1alpha1 | |
kind: Promise | |
metadata: | |
name: kafka | |
namespace: default | |
labels: | |
kratix.io/promise-version: v1.2.3 | |
spec: | |
api: | |
apiVersion: apiextensions.k8s.io/v1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: platform.kratix.io/v1alpha1 | |
kind: Promise | |
metadata: | |
name: bash | |
labels: | |
kratix.io/promise-version: v1.0.0 | |
spec: | |
api: | |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minikube start -p kind-platform --ports=31337:31337 | |
minikube start -p kind-worker | |
export PLATFORM="kind-platform" | |
export WORKER="kind-worker" | |
kubectl --context $PLATFORM apply --filename distribution/kratix.yaml | |
# if running minio locally | |
kubectl --context $PLATFORM apply --filename config/samples/minio-install.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Download and install Code server | |
CODE_SERVER_VERSION=4.7.0 | |
curl -fOL https://github.com/coder/code-server/releases/download/v$CODE_SERVER_VERSION/code-server_${CODE_SERVER_VERSION}_amd64.deb | |
dpkg -i code-server_${CODE_SERVER_VERSION}_amd64.deb | |
## Create Code Server startup script | |
### code-server config | |
CODE_SERVER_PATH=/root/.local/share/code-server | |
mkdir -p ${CODE_SERVER_PATH}/User |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
labels: | |
control-plane: controller-manager | |
name: kratix-platform-system | |
--- | |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: |
NewerOlder