Giter VIP home page Giter VIP logo

namespace-setup's Introduction

Namespace Setup

The SLSA Level 3 badge

Warning This package has been replaced by workspace-provisioner.

This project provides a Carvel package for setting up namespaces with the necessary RBAC and Secrets to work with the Kadras application platform.

Prerequisites

  • Kubernetes 1.24+

  • Carvel kctrl CLI.

  • Carvel kapp-controller deployed in your Kubernetes cluster. You can install it with Carvel kapp (recommended choice) or kubectl.

    kapp deploy -a kapp-controller -y \
      -f https://github.com/vmware-tanzu/carvel-kapp-controller/releases/latest/download/release.yml

Dependencies

Namespace Setup requires the Secretgen Controller package to be already installed in the cluster. You can install it from the Kadras package repository.

Installation

First, add the Kadras package repository to your Kubernetes cluster.

kubectl create namespace kadras-packages
kctrl package repository add -r kadras-repo \
  --url ghcr.io/kadras-io/kadras-packages \
  -n kadras-packages

Then, install the Namespace Setup package.

kctrl package install -i namespace-setup \
  -p namespace-setup.packages.kadras.io \
  -v 0.2.1 \
  -n kadras-packages

Verification

You can verify the list of installed Carvel packages and their status.

kctrl package installed list -n kadras-packages

Version

You can get the list of Namespace Setup versions available in the Kadras package repository.

kctrl package available list -p namespace-setup.packages.kadras.io -n kadras-packages

Configuration

The Namespace Setup package has the following configurable properties.

Config Default Description
namespaces [] Configuration for developer namespaces.
registry.server "" The OCI registry server where the Kadras packages are stored.
registry.username "" The username for the OCI registry server where the Kadras packages are stored.
registry.password "" The password for the OCI registry server where the Kadras packages are stored.
gitops.server https://github.com The Git server hosting the Git repositories used in the GitOps workflows.
gitops.username "" The username for the Git server used in the GitOps workflows.
gitops.password "" The password for the Git server used in the GitOps workflows.

You can define your configuration in a values.yml file.

namespaces:
  - name: ""
    exists: ""

registry:
  server: ""
  username: ""
  password: ""

gitops:
  server: https://github.com
  username: ""
  password: ""

Then, reference it from the kctrl command when installing or upgrading the package.

kctrl package install -i namespace-setup \
  -p namespace-setup.packages.kadras.io \
  -v 0.2.1 \
  -n kadras-packages \
  --values-file values.yml

Upgrading

You can upgrade an existing package to a newer version using kctrl.

kctrl package installed update -i namespace-setup \
  -v <new-version> \
  -n kadras-packages

You can also update an existing package with a newer values.yml file.

kctrl package installed update -i namespace-setup \
  -n kadras-packages \
  --values-file values.yml

Other

The recommended way of installing the Namespace Setup package is via the Kadras package repository. If you prefer not using the repository, you can install the package by creating the necessary Carvel PackageMetadata and Package resources directly using kapp or kubectl.

kubectl create namespace kadras-packages
kapp deploy -a namespace-setup-package -n kadras-packages -y \
  -f https://github.com/kadras-io/namespace-setup/releases/latest/download/metadata.yml \
  -f https://github.com/kadras-io/namespace-setup/releases/latest/download/package.yml

References

This package is inspired by the setup included in an example of Tanzu Application Platform OSS stack.

Supply Chain Security

This project is compliant with level 3 of the SLSA Framework.

The SLSA Level 3 badge

namespace-setup's People

Contributors

thomasvitale avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.