Skip to content

Commit 715952b

Browse files
feat: updating chart repo url
1 parent 48747d2 commit 715952b

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data:
3434
konnector-agent: |
3535
ChartName: konnector-agent
3636
ChartVersion: 1.3.0-rc.0
37-
RepositoryURL: '{{ if .Values.helmRepository.enabled }}oci://helm-repository.{{ .Release.Namespace }}.svc/charts{{ else }}http://192.168.1.7:8080{{ end }}'
37+
RepositoryURL: '{{ if .Values.helmRepository.enabled }}oci://helm-repository.{{ .Release.Namespace }}.svc/charts{{ else }}https://mesosphere.github.io/charts/stable/{{ end }}'
3838
local-path-provisioner-csi: |
3939
ChartName: local-path-provisioner
4040
ChartVersion: 0.0.31

common/pkg/server/server.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,10 @@ func (s *Server) Start(ctx context.Context) error {
126126

127127
if t, ok := h.(lifecycle.BeforeClusterDelete); ok {
128128
if err := webhookServer.AddExtensionHandler(runtimeserver.ExtensionHandler{
129-
Hook: runtimehooksv1.BeforeClusterDelete,
130-
Name: strings.ToLower(h.Name()) + "-bcd",
131-
HandlerFunc: t.BeforeClusterDelete,
129+
Hook: runtimehooksv1.BeforeClusterDelete,
130+
Name: strings.ToLower(h.Name()) + "-bcd",
131+
HandlerFunc: t.BeforeClusterDelete,
132+
TimeoutSeconds: intToInt32Ptr(30), // 30 seconds timeout
132133
}); err != nil {
133134
setupLog.Error(err, "error adding handler")
134135
return err
@@ -178,3 +179,9 @@ func (s *Server) Start(ctx context.Context) error {
178179

179180
return nil
180181
}
182+
183+
// intToInt32Ptr converts an int to *int32 for use with TimeoutSeconds
184+
func intToInt32Ptr(value int) *int32 {
185+
t := int32(value)
186+
return &t
187+
}

hack/addons/helm-chart-bundler/repos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repositories:
3737
docker-registry:
3838
- 2.3.5
3939
konnector-agent:
40-
repoURL: http://192.168.1.7:8080
40+
repoURL: https://mesosphere.github.io/charts/stable/
4141
charts:
4242
konnector-agent:
4343
- 1.3.0-rc.0

hack/addons/kustomize/konnector-agent/kustomization.yaml.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ metadata:
1010
helmCharts:
1111
- name: konnector-agent
1212
namespace: ntnx-system
13-
#repo: https://mesosphere.github.io/charts/stable
14-
repo: http://192.168.1.7:8080
13+
repo: https://mesosphere.github.io/charts/stable
1514
releaseName: konnector-agent
1615
version: ${KONNECTOR_AGENT_VERSION}
1716
includeCRDs: true

0 commit comments

Comments
 (0)