Skip to content

Commit 1981b27

Browse files
committed
use aksAgent.yaml as the default config file name
1 parent dbee46c commit 1981b27

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/aks-preview/azext_aks_preview/_consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,4 +378,4 @@
378378
CONST_AGENT_CONFIG_PATH_DIR_ENV_KEY = "HOLMES_CONFIGPATH_DIR"
379379
CONST_AGENT_NAME = "AKS AGENT"
380380
CONST_AGENT_NAME_ENV_KEY = "AGENT_NAME"
381-
CONST_AGENT_CONFIG_FILE_NAME = "aksAgent.config"
381+
CONST_AGENT_CONFIG_FILE_NAME = "aksAgent.yaml"

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4002,14 +4002,14 @@
40024002
- name: Show detailed tool output during analysis
40034003
text: az aks agent "Why is my service workload unavailable in namespace workload-ns?" --show-tool-output --model azure/my-gpt4.1-deployment
40044004
- name: Use custom configuration file
4005-
text: az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.config --model azure/my-gpt4.1-deployment
4005+
text: az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.yaml --model azure/my-gpt4.1-deployment
40064006
- name: Run agent with no echo of the original question
40074007
text: az aks agent "What is the status of my cluster?" --no-echo-request --model azure/my-gpt4.1-deployment
40084008
- name: Refresh toolsets to get the latest available tools
40094009
text: az aks agent "What is the status of my cluster?" --refresh-toolsets --model azure/my-gpt4.1-deployment
40104010
- name: Run agent with config file
40114011
text: |
4012-
az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.config
4012+
az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.yaml
40134013
Here is an example of config file:
40144014
```json
40154015
model: "gpt-4o"

src/aks-preview/azext_aks_preview/_params.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@
150150
CONST_ADVANCED_NETWORKPOLICIES_FQDN,
151151
CONST_ADVANCED_NETWORKPOLICIES_L7,
152152
CONST_TRANSIT_ENCRYPTION_TYPE_NONE,
153-
CONST_TRANSIT_ENCRYPTION_TYPE_WIREGUARD
153+
CONST_TRANSIT_ENCRYPTION_TYPE_WIREGUARD,
154+
CONST_AGENT_CONFIG_FILE_NAME,
154155
)
155156

156157
from azext_aks_preview._validators import (
@@ -2803,7 +2804,7 @@ def load_arguments(self, _):
28032804
)
28042805
c.argument(
28052806
"config_file",
2806-
default=os.path.join(get_config_dir(), "aksAgent.config"),
2807+
default=os.path.join(get_config_dir(), CONST_AGENT_CONFIG_FILE_NAME),
28072808
validator=validate_agent_config_file,
28082809
required=False,
28092810
help="Path to the config file.",

0 commit comments

Comments
 (0)