mirror of https://github.com/fluxcd/flux2.git
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			16 lines
		
	
	
		
			760 B
		
	
	
	
		
			YAML
		
	
			
		
		
	
	
			16 lines
		
	
	
		
			760 B
		
	
	
	
		
			YAML
		
	
---
 | 
						|
apiVersion: v1
 | 
						|
kind: ConfigMap
 | 
						|
metadata:
 | 
						|
  name: credentials-sync-eventhub
 | 
						|
data:
 | 
						|
  KUBE_SECRET: webhook-url # does not yet exist -- will be created in the same Namespace
 | 
						|
  ADDRESS: "fluxv2" # the Azure Event Hub name
 | 
						|
 | 
						|
# Create an identity in Azure and assign it a role to write to Azure Event Hub (note: the identity's resourceGroup should match the Azure Event Hub):
 | 
						|
#     az identity create -n eventhub-write
 | 
						|
#     az role assignment create --role eventhub --assignee-object-id "$(az identity show -n eventhub-write -o tsv --query principalId)"
 | 
						|
# Fetch the clientID and resourceID to configure the AzureIdentity spec below:
 | 
						|
#     az identity show -n eventhub-write -otsv --query clientId
 | 
						|
#     az identity show -n eventhub-write -otsv --query resourceId
 |