auto-reply-urls

module
v0.0.0-...-b95789e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2019 License: MIT

README

k8s-operator-auto-reply-urls

This is an operator for automatically adding and removing reply urls to an application in azure ad based on ingress events

It was built on operator-sdk

Building this project

  • Install the operator-sdk CLI

Export this value to your shell:

$ export GO111MODULE=on

Run build:

$ operator-sdk build hmctspublic.azurecr.io/rpe/auto-reply-urls:version

Deploying it:

$ az ad sp create-for-rbac --skip-assignment
$ kubectl create secret generic --from-literal azure_client_id= --from-literal azure_client_secret= --from-literal azure_tenant_id= --from-literal object_id= 
$ az acr login --name hmctspublic --subscription DCD-DNP-DEV
$ docker push hmctspublic.azurecr.io/rpe/auto-reply-urls:version

Note the SP needs permissions as detailed here: https://stackoverflow.com/a/53014616/4951015

Update the version in deploy/operator.yaml and then:

$ kubectl apply -R -f deploy/

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳