Skip to content

Commit 292d84c

Browse files
authored
Merge pull request #4770 from nojnhuh/aso-user-agent
add AZURE_USER_AGENT_SUFFIX to aso-controller-settings
2 parents f5090f8 + 001e545 commit 292d84c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

config/aso/settings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ stringData:
88
AZURE_RESOURCE_MANAGER_ENDPOINT: ${AZURE_RESOURCE_MANAGER_ENDPOINT:=""}
99
AZURE_RESOURCE_MANAGER_AUDIENCE: ${AZURE_RESOURCE_MANAGER_AUDIENCE:=""}
1010
AZURE_SYNC_PERIOD: ${AZURE_SYNC_PERIOD:="1h"}
11+
AZURE_USER_AGENT_SUFFIX: cluster-api-provider-azure/main
1112
# Per-resource Secrets will be created based on a Cluster's AzureClusterIdentity.
1213
AZURE_SUBSCRIPTION_ID: ""
1314
AZURE_TENANT_ID: ""

config/default/kustomization.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,21 @@ resources:
33

44
components:
55
- ../aso
6+
7+
replacements:
8+
- source:
9+
kind: Deployment
10+
name: capz-controller-manager
11+
fieldPath: spec.template.spec.containers.[name=manager].image
12+
options:
13+
delimiter: ':'
14+
index: 1
15+
targets:
16+
- select:
17+
kind: Secret
18+
name: aso-controller-settings
19+
fieldPaths:
20+
- stringData.AZURE_USER_AGENT_SUFFIX
21+
options:
22+
delimiter: '/'
23+
index: 1

0 commit comments

Comments
 (0)