2.0.3 • Published 9 months ago

@janus-idp/backstage-scaffolder-backend-module-kubernetes-dynamic v2.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

Kubernetes actions for Backstage

This module provides Backstage template actions for Kubernetes.

The following actions are currently supported in this module:

  • Create a kubernetes namespace

Installation

Run the following command to install the action package in your Backstage project

yarn workspace backend add @janus-idp/backstage-scaffolder-backend-module-kubernetes

Installing the action on the backend

Add the following to your packages/backend/src/index.ts file:

const backend = createBackend();

// Add the following line
backend.add(
  import('@janus-idp/backstage-scaffolder-backend-module-kubernetes'),
);

backend.start();

Configuration

Add the Kubernetes actions to your templates, see the example file in this repository for complete usage examples

action: kubernetes:create-namespace
id: create-kubernetes-namespace
name: Create kubernetes namespace
input:
  namespace: foo
  clusterRef: bar
  token: TOKEN
  skipTLSVerify: false
  caData: Zm9v
  labels: app.io/type=ns; app.io/managed-by=org;

Usage

Action: kubernetes:create-namespace

Input

Parameter NameTypeRequiredDescriptionExample
namespacestringYesKubernetes namespace namefoo
clusterRefstringNoCluster resource entity reference from the catalogbar
urlstringNoAPI url of the kubernetes clusterhttps://api.foo.redhat.com:6443
tokenstringNoKubernetes API bearer token used for authentication
skipTLSVerifybooleanNoIf true, certificate verification is skippedfalse
caDatastringNoBase64 encoded certificate data
labelstringNoLabels that will be applied to the namespaceapp.io/type=ns; app.io/managed-by=org;

Output

This action doesn't have any outputs.

1.8.2

9 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.8.1

10 months ago

1.7.2

10 months ago

1.8.0

10 months ago

1.7.1

11 months ago

1.7.0

12 months ago

1.5.2

1 year ago

1.6.0

12 months ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.9

1 year ago

1.4.11

1 year ago

1.4.8

1 year ago

1.4.10

1 year ago

1.4.12

1 year ago

1.4.14

1 year ago

1.4.6

1 year ago

1.4.7

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago