Home

Awesome

MrMgr (Azure IAM)

How to deploy service principal

Example

    module "openid" {
      source = "./.."
      github = true
      sp_name = "testing-sp-name"
      repos  = {
        app = {
          repo        = "opszero/app"
          entity_type = "pull_request" # for branch ref:refs/heads/<branch name>
        }
        api = {
          repo        = "opszero/api"
          entity_type = "pull_request" # for branch ref:refs/heads/<branch name>
        }
      }
    }

Need to allow access service principal to Kubernetes

subjects:
  - apiGroup: rbac.authorization.k8s.io
    kind: User
    name: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx