Skip to content

Commit f082997

Browse files
renaming k8s registration agent to konnector agent
1 parent 91375c1 commit f082997

File tree

29 files changed

+153
-151
lines changed

29 files changed

+153
-151
lines changed

api/v1alpha1/addon_types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ type NutanixAddons struct {
8787
COSI *NutanixCOSI `json:"cosi,omitempty"`
8888

8989
// +kubebuilder:validation:Optional
90-
KonnectorAgent *NutanixKonnectorAgent`json:"konnectorAgent,omitempty"`
90+
KonnectorAgent *NutanixKonnectorAgent `json:"konnectorAgent,omitempty"`
9191
}
9292

9393
type GenericAddons struct {
@@ -366,16 +366,16 @@ type RegistryAddon struct {
366366
type NutanixKonnectorAgent struct {
367367
// A reference to the Secret for credential information for the target Prism Central instance
368368
// +kubebuilder:validation:Optional
369-
Credentials *NutanixK8sAgentCredentials `json:"credentials,omitempty"`
369+
Credentials *NutanixKonnectorAgentCredentials `json:"credentials,omitempty"`
370370

371-
// Addon strategy used to deploy the Nutanix k8s-registration-agent to the k8s cluster.
371+
// Addon strategy used to deploy the Nutanix konnector-agent to the k8s cluster.
372372
// +kubebuilder:default=HelmAddon
373373
// +kubebuilder:validation:Optional
374374
// +kubebuilder:validation:Enum=ClusterResourceSet;HelmAddon
375375
Strategy AddonStrategy `json:"strategy,omitzero"`
376376
}
377377

378-
type NutanixK8sAgentCredentials struct {
378+
type NutanixKonnectorAgentCredentials struct {
379379
// A reference to the Secret containing the credentials used by the Konnector agent.
380380
// +kubebuilder:validation:Required
381381
SecretRef LocalObjectReference `json:"secretRef"`

api/v1alpha1/constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const (
3232
ServiceLoadBalancerVariableName = "serviceLoadBalancer"
3333
// RegistryAddonVariableName is the OCI registry config patch variable name.
3434
RegistryAddonVariableName = "registry"
35-
// K8sRegistrationAgentVariableName is the Nutanix k8s-registration-agent addon config patch variable name.
36-
K8sRegistrationAgentVariableName = "k8sRegistrationAgent"
35+
// KonnectorAgentVariableName is the Nutanix konnector-agent addon config patch variable name.
36+
KonnectorAgentVariableName = "konnectorAgent"
3737

3838
// GlobalMirrorVariableName is the global image registry mirror patch variable name.
3939
GlobalMirrorVariableName = "globalImageRegistryMirror"

api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ spec:
235235
- defaultStorage
236236
- providers
237237
type: object
238-
k8sRegistrationAgent:
238+
konnectorAgent:
239239
properties:
240240
credentials:
241241
description: A reference to the Secret for credential information for the target Prism Central instance
242242
properties:
243243
secretRef:
244-
description: A reference to the Secret containing the credentials used by the CCM provider.
244+
description: A reference to the Secret containing the credentials used by the Konnector agent.
245245
properties:
246246
name:
247247
description: |-
@@ -258,7 +258,7 @@ spec:
258258
type: object
259259
strategy:
260260
default: HelmAddon
261-
description: Addon strategy used to deploy the Nutanix k8s-registration-agent to the k8s cluster.
261+
description: Addon strategy used to deploy the Nutanix konnector-agent to the k8s cluster.
262262
enum:
263263
- ClusterResourceSet
264264
- HelmAddon

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/variables/aggregate_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ type Addons struct {
6767

6868
COSI *COSI `json:"cosi,omitempty"`
6969

70-
NutanixK8sRegistrationAgent *NutanixK8sRegistrationAgent `json:"k8sRegistrationAgent,omitempty"`
70+
NutanixKonnectorAgent *NutanixKonnectorAgent `json:"konnectorAgent,omitempty"`
7171
}
7272

73-
type NutanixK8sRegistrationAgent struct {
74-
carenv1.NutanixK8sRegistrationAgent `json:",inline"`
73+
type NutanixKonnectorAgent struct {
74+
carenv1.NutanixKonnectorAgent `json:",inline"`
7575
}
7676

7777
type CSI struct {

charts/cluster-api-runtime-extensions-nutanix/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
8787
| hooks.csi.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nutanix-csi-helm-values-template"` | |
8888
| hooks.csi.snapshot-controller.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
8989
| hooks.csi.snapshot-controller.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-snapshot-controller-helm-values-template"` | |
90-
| hooks.k8sRegistrationAgent.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
91-
| hooks.k8sRegistrationAgent.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-k8s-registrationagent-helm-values-template"` | |
90+
| hooks.konnectorAgent.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
91+
| hooks.konnectorAgent.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-konnector-agent-helm-values-template"` | |
9292
| hooks.nfd.crsStrategy.defaultInstallationConfigMap.name | string | `"node-feature-discovery"` | |
9393
| hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
9494
| hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nfd-helm-values-template"` | |

charts/cluster-api-runtime-extensions-nutanix/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ spec:
4545
- --csi.snapshot-controller.helm-addon.default-values-template-configmap-name={{ (index .Values.hooks.csi "snapshot-controller").helmAddonStrategy.defaultValueTemplateConfigMap.name }}
4646
- --ccm.aws.helm-addon.default-values-template-configmap-name={{ .Values.hooks.ccm.aws.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
4747
- --cosi.controller.helm-addon.default-values-template-configmap-name={{ .Values.hooks.cosi.controller.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
48-
- --k8s-registration-agent.helm-addon.default-values-template-configmap-name={{ .Values.hooks.k8sRegistrationAgent.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
48+
- --konnector-agent.helm-addon.default-values-template-configmap-name={{ .Values.hooks.konnectorAgent.helmAddonStrategy.defaultValueTemplateConfigMap.name }}
4949
{{- range $k, $v := .Values.hooks.ccm.aws.k8sMinorVersionToCCMVersion }}
5050
- --ccm.aws.aws-ccm-versions={{ $k }}={{ $v }}
5151
{{- end }}

charts/cluster-api-runtime-extensions-nutanix/templates/helm-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data:
3131
ChartName: cosi
3232
ChartVersion: 0.0.1-alpha.5
3333
RepositoryURL: '{{ if .Values.helmRepository.enabled }}oci://helm-repository.{{ .Release.Namespace }}.svc/charts{{ else }}https://mesosphere.github.io/charts/stable/{{ end }}'
34-
k8s-registration-agent: |
34+
konnector-agent: |
3535
ChartName: nutanix-k8s-agent
3636
ChartVersion: 1.3.0-rc.0
3737
RepositoryURL: '{{ if .Values.helmRepository.enabled }}oci://helm-repository.{{ .Release.Namespace }}.svc/charts{{ else }}http://192.168.1.21:8080{{ end }}'

charts/cluster-api-runtime-extensions-nutanix/templates/k8s-registration-agent/helm-addon-installation.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)