Skip to content

codesphere-cloud/csa-managed-service-argo

Repository files navigation

CSA Demo: Managed Service Provider K8s

Requirements

Add Service Account kubeconfig

To be able to access the K8s Cluster, we need a valid kubeconfigto access the Gardener project. Since a regular OIDC Brower Login Flow is not easily possible from within a Workspace, a Service Account should be created instead that use Token-based Auth.

Steps:

  • Create a Service Account with Admin role via Gardener Dashboard
  • Download the kubeconfig of the Service Account

Express API Starter with Typescript

A JavaScript Express v5 starter template with sensible defaults.

How to use this template:

pnpm dlx create-express-api@latest --typescript --directory my-api-name

Includes API Server utilities:

  • morgan
    • HTTP request logger middleware for node.js
  • helmet
    • Helmet helps you secure your Express apps by setting various HTTP headers. It's not a silver bullet, but it can help!
  • cors
    • CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.

Development utilities:

  • typescript
    • TypeScript is a language for application-scale JavaScript.
  • tsx
    • The easiest way to run TypeScript in Node.js
  • eslint
    • ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
  • vitest
    • Next generation testing framework powered by Vite.
  • zod
    • Validated TypeSafe env with zod schema
  • supertest
    • HTTP assertions made easy via superagent.

Setup

pnpm install

Lint

pnpm run lint

Test

pnpm run test

Development

pnpm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published