Add client id of managed identity
This commit is contained in:
		
							
								
								
									
										3
									
								
								.jenkins/Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.jenkins/Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @@ -10,6 +10,7 @@ pipeline { | ||||
|         DEPLOY_FILES   = 'namespace.yaml secret-store.yaml deploy.yaml ingress.yaml' | ||||
|         NAMESPACE      = 'user-microservice' | ||||
|         DEPLOYMENT     = 'api' | ||||
|         CLIENT_ID      = 'c302726f-fafb-4143-94c1-67a70975574a' | ||||
|     } | ||||
|     stages { | ||||
|         stage('Checkout') { | ||||
| @@ -23,7 +24,7 @@ pipeline { | ||||
|             steps { | ||||
|                 container('kubectl') { | ||||
|                     sh ''' | ||||
|                         az login --identity | ||||
|                         az login --identity --client-id ${CLIENT_ID} | ||||
|                         az aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --overwrite-existing | ||||
|                         kubelogin convert-kubeconfig -l azurecli | ||||
|                     ''' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user