Giter VIP home page Giter VIP logo

tap-namespace-provisioner's Introduction

โ“˜ IMPORTANT

Before you follow any of these procedures, make sure to take a backup copy of the TAP install values secret so that you can reset everything to defaults if something gets misconfigured. You can do this with the following command:

Download Developer and Admin Kubeconfig from TAP Sandbox Portal and ensure they are in Downloads folder

cp ~/Downloads/config ~/.kube/config
kubectx tap-sandbox
./backup-tap-values.sh

Container Repository change from GAR to repo of your choice

There is an issue with image rebase function with GAR. The overlay will change the OOTB to use ACR in my setup. Please adjust the repo settings in overlay file before applying it. Also create a secret and secretExport beforing applying the overlay.

kubectl create secret docker-registry acr-reg-credentials \
    --namespace tap-install \
    --docker-server=server \
    --docker-username=user \
    --docker-password=passwrd
kubectl apply -f secretexport.yaml

Test the Overlay

Before applying, you can review the overlayed values with the following command to make sure everthing looks ok:

kubectl create secret generic tap-tap-install-values -n tap-install --dry-run=client -o yaml --from-file=values.yaml=<(kubectl get secret tap-tap-install-values -n tap-install -o jsonpath='{.data.values\.yaml}' | base64 -d | ytt -f- -f testing-scanning/values-overlay.yaml)

Once you are happy with the results, you can apply the overlay with the following command:

kubectl create secret generic tap-tap-install-values -n tap-install --dry-run=client -o yaml --from-file=values.yaml=<(kubectl get secret tap-tap-install-values -n tap-install -o jsonpath='{.data.values\.yaml}' | base64 -d | ytt -f- -f testing-scanning/values-overlay.yaml) | kubectl apply -f-

Assign Build Service Admin Role

To assign build service admin role to developer scoped service account, follow the steps in this section. The addtional role will allow users to create/edit/delete stacks and builders for both cluster and namespace scope.

Once TAP install is reconciled, run the setup.sh script to create rolebindings, service accounts, secrets and kubeconfigs for attendees. Kubeconfigs are created within the ./kubeconfigs folder.

mkdir kubeconfigs
./setup.sh

Install TBS Full Dependencies

To install TBS Full Dependencies, set environment variables before running ./install-tbs-full-deps.sh. In the values-overlay.yaml, set the exclude_dependencies to true if installing TBS Full dependencies and applying the overlay before running these steps.

export REGISTRY_URL=
export REGISTRY_USER=
export REGISTRY_PASSWORD=
export TBS_FULLDEP_VERSION=1.6.3
./install-tbs-full-deps.sh

tap-namespace-provisioner's People

Contributors

dipalpat avatar jlafata avatar

Watchers

 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.