Skip to content

Commit 812b844

Browse files
feat: precommit fix
1 parent 3724a82 commit 812b844

File tree

8 files changed

+13
-33
lines changed

8 files changed

+13
-33
lines changed

docs/content/addons/konnector-agent.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The Konnector Agent addon enables automatic registration of Kubernetes clusters
88
## Overview
99

1010
The Konnector Agent addon provides:
11+
1112
- **Automatic cluster registration** with Nutanix Prism Central
1213
- **Lifecycle management** through Cluster API hooks
1314
- **Credential management** for secure Prism Central connectivity
@@ -17,19 +18,22 @@ The Konnector Agent addon provides:
1718
The addon implements the following Cluster API lifecycle hooks:
1819

1920
### AfterControlPlaneInitialized
21+
2022
- **Purpose**: Deploys the Konnector Agent after the control plane is ready
2123
- **Timing**: Executes when the cluster control plane is fully initialized
22-
- **Actions**:
24+
- **Actions**:
2325
- Creates credentials secret on the target cluster
2426
- Deploys the Konnector Agent using the specified strategy
2527
- Configures Prism Central connectivity
2628

2729
### BeforeClusterUpgrade
30+
2831
- **Purpose**: Ensures the agent is properly configured before cluster upgrades
2932
- **Timing**: Executes before cluster upgrade operations
3033
- **Actions**: Re-applies the agent configuration if needed
3134

3235
### BeforeClusterDelete
36+
3337
- **Purpose**: Gracefully removes the Konnector Agent before cluster deletion
3438
- **Timing**: Executes before cluster deletion begins
3539
- **Actions**:
@@ -184,7 +188,7 @@ Monitor the Konnector Agent deployment:
184188
kubectl get helmchartproxy -A
185189
186190
# Check agent logs
187-
kubectl logs hook-preinstall -n ntnx-system
191+
kubectl logs hook-preinstall -n ntnx-system
188192
```
189193

190194
## References

examples/capi-quick-start/nutanix-cluster-calico-crs.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ spec:
9090
strategy: HelmAddon
9191
snapshotController:
9292
strategy: HelmAddon
93-
konnectorAgent:
94-
strategy: HelmAddon
95-
credentials:
96-
secretRef:
97-
name: prism-central-credentials-for-konnector-agent
93+
konnectorAgent: {}
9894
nfd:
9995
strategy: ClusterResourceSet
10096
serviceLoadBalancer:

examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ spec:
8888
strategy: HelmAddon
8989
snapshotController:
9090
strategy: HelmAddon
91-
konnectorAgent:
92-
strategy: HelmAddon
93-
credentials:
94-
secretRef:
95-
name: prism-central-credentials-for-konnector-agent
91+
konnectorAgent: {}
9692
nfd: {}
9793
serviceLoadBalancer:
9894
configuration:

examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ spec:
9090
strategy: HelmAddon
9191
snapshotController:
9292
strategy: HelmAddon
93-
konnectorAgent:
94-
strategy: HelmAddon
95-
credentials:
96-
secretRef:
97-
name: prism-central-credentials-for-konnector-agent
93+
konnectorAgent: {}
9894
nfd:
9995
strategy: ClusterResourceSet
10096
serviceLoadBalancer:

examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ spec:
8888
strategy: HelmAddon
8989
snapshotController:
9090
strategy: HelmAddon
91-
konnectorAgent:
92-
strategy: HelmAddon
93-
credentials:
94-
secretRef:
95-
name: prism-central-credentials-for-konnector-agent
91+
konnectorAgent: {}
9692
nfd: {}
9793
serviceLoadBalancer:
9894
configuration:

examples/capi-quick-start/nutanix-cluster-with-failuredomains-cilium-crs.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,7 @@ spec:
126126
strategy: HelmAddon
127127
snapshotController:
128128
strategy: HelmAddon
129-
konnectorAgent:
130-
strategy: HelmAddon
131-
credentials:
132-
secretRef:
133-
name: prism-central-credentials-for-konnector-agent
129+
konnectorAgent: {}
134130
nfd:
135131
strategy: ClusterResourceSet
136132
serviceLoadBalancer:

examples/capi-quick-start/nutanix-cluster-with-failuredomains-cilium-helm-addon.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ spec:
124124
strategy: HelmAddon
125125
snapshotController:
126126
strategy: HelmAddon
127-
konnectorAgent:
128-
strategy: HelmAddon
129-
credentials:
130-
secretRef:
131-
name: prism-central-credentials-for-konnector-agent
127+
konnectorAgent: {}
132128
nfd: {}
133129
serviceLoadBalancer:
134130
configuration:

pkg/handlers/lifecycle/konnectoragent/variables_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ clusterName: {{ .ClusterName }}
469469
result, err := templateFunc(cluster, valuesTemplate)
470470
require.NoError(t, err)
471471

472-
assert.Contains(t, result, "agentName: nutanix-agent")
472+
assert.Contains(t, result, "agentName: konnector-agent")
473473
assert.Contains(t, result, "prismCentralHost: prism-central.example.com")
474474
assert.Contains(t, result, "prismCentralPort: 9440")
475475
assert.Contains(t, result, "prismCentralInsecure: true")

0 commit comments

Comments
 (0)