项目作者: hmcts

项目描述 :
Automatically adds and removes reply urls to an application in azure ad based on ingress events
高级语言: Go
项目地址: git://github.com/hmcts/auto-reply-urls.git
创建时间: 2019-06-19T19:26:24Z
项目社区:https://github.com/hmcts/auto-reply-urls

开源协议:MIT License

下载


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:

  1. $ export GO111MODULE=on

Run build:

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

Deploying it:

  1. $ az ad sp create-for-rbac --skip-assignment
  2. $ kubectl create secret generic --from-literal azure_client_id= --from-literal azure_client_secret= --from-literal azure_tenant_id= --from-literal object_id=
  3. $ az acr login --name hmctspublic --subscription DCD-DNP-DEV
  4. $ 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:

  1. $ kubectl apply -R -f deploy/