Tekton Pipelines for the 3scale-toolbox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

1.7 KiB

Environment Setup

Pre-requisites

3scale SaaS Environment

  • Go to your 3scale SaaS Admin console
  • Generate a new Access Token that has write access to the Account Management API
  • Save the generated access token for later use:
export SAAS_ACCESS_TOKEN=123...456
  • Save the name of your 3scale tenant (the string before -admin.3scale.net in your Admin Console) for later use
export SAAS_TENANT=nmasse-redhat
  • Navigate to Audience > Accounts > Listing
  • Click on Developer
  • Saver the Developer Account ID that is the last part of the URL (after /buyers/accounts/)
export SAAS_DEVELOPER_ACCOUNT_ID=2445582535751

Install Tekton

Create an OpenShift project to hold all your artefacts:

oc project api-lifecycle

Save the name of the project for later use:

export TEKTON_NAMESPACE=api-lifecycle

Install Tekton:

oc new-project tekton-pipelines
oc adm policy add-scc-to-user anyuid -z tekton-pipelines-controller
oc apply --filename https://storage.googleapis.com/tekton-releases/latest/release.yaml

Generate the 3scale toolbox secret

3scale remote add 3scale-saas "https://$SAAS_ACCESS_TOKEN@$SAAS_TENANT-admin.3scale.net/"
oc create secret generic 3scale-toolbox -n "$TEKTON_NAMESPACE" --from-file="$HOME/.3scalerc.yaml"