Skip to content

Commit

Permalink
mgmt-cluster: enable audit logging for AKS cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
jfchevrette committed Feb 20, 2025
1 parent 92ddca0 commit 848b27a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ param azureMonitoringWorkspaceId = '__azureMonitoringWorkspaceId__'
param logsNamespace = '{{ .logs.namespace }}'
param logsMSI = '{{ .logs.msiName }}'
param logsServiceAccount = '{{ .logs.serviceAccountName }}'

// Log Analytics Workspace ID will be passed from global pipeline if enabled in config
param logAnalyticsWorkspaceId = '__logAnalyticsWorkspaceId__'
4 changes: 4 additions & 0 deletions dev-infrastructure/mgmt-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ resourceGroups:
input:
step: region-output
name: maestroEventGridNamespaceId
- name: logAnalyticsWorkspaceId
input:
step: global-output
name: logAnalyticsWorkspaceId
dependsOn:
- cx-oncert-public-kv-issuer
- mgmt-oncert-private-kv-issuer
Expand Down
4 changes: 4 additions & 0 deletions dev-infrastructure/templates/mgmt-cluster.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ param logsMSI string
@description('The service account name of the logs managed identity')
param logsServiceAccount string

// Log Analytics Workspace ID will be passed from global pipeline if enabled in config
param logAnalyticsWorkspaceId string = ''

module mgmtCluster '../modules/aks-cluster-base.bicep' = {
name: 'cluster'
scope: resourceGroup()
Expand Down Expand Up @@ -142,6 +145,7 @@ module mgmtCluster '../modules/aks-cluster-base.bicep' = {
}
})
aksKeyVaultName: aksKeyVaultName
logAnalyticsWorkspaceId: logAnalyticsWorkspaceId
pullAcrResourceIds: [ocpAcrResourceId, svcAcrResourceId]
userAgentMinCount: userAgentMinCount
userAgentPoolAZCount: userAgentPoolAZCount
Expand Down

0 comments on commit 848b27a

Please sign in to comment.