Skip to content

Commit 74a1468

Browse files
authored
Merge pull request #1601 from gianlucam76/pullmode-delete-checks
(feat) delete checks and pull mode
2 parents 4a84a56 + a7a21bb commit 74a1468

File tree

10 files changed

+110
-76
lines changed

10 files changed

+110
-76
lines changed

controllers/handlers_helm.go

Lines changed: 83 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func undeployHelmChartsInPullMode(ctx context.Context, c client.Client, clusterS
366366
if err != nil {
367367
return err
368368
}
369-
setters := prepareSetters(clusterSummary, libsveltosv1beta1.FeatureHelm, profileRef, nil)
369+
setters := prepareSetters(clusterSummary, libsveltosv1beta1.FeatureHelm, profileRef, nil, true)
370370

371371
// If charts have pre/post delete hooks, those need to be deployed. A ConfigurationGroup to deploy those
372372
// is created. If this does not exist yet assume we still have to deploy those.
@@ -2207,73 +2207,64 @@ func updateChartsInClusterConfiguration(ctx context.Context, c client.Client, cl
22072207
func undeployStaleReleases(ctx context.Context, c client.Client, clusterSummary *configv1beta1.ClusterSummary,
22082208
kubeconfig string, logger logr.Logger) ([]configv1beta1.ReleaseReport, error) {
22092209

2210-
chartManager, err := chartmanager.GetChartManagerInstance(ctx, c)
2210+
staleReleases, err := getStaleReleases(ctx, c, clusterSummary, logger)
22112211
if err != nil {
2212+
logger.V(logs.LogInfo).Error(err, "failed to get list of stale helm releases")
22122213
return nil, err
22132214
}
22142215

2215-
managedHelmReleases := chartManager.GetManagedHelmReleases(clusterSummary)
2216-
2217-
// Build map of current referenced helm charts
2218-
currentlyReferencedReleases := make(map[string]bool)
2219-
for i := range clusterSummary.Spec.ClusterProfileSpec.HelmCharts {
2220-
currentChart := &clusterSummary.Spec.ClusterProfileSpec.HelmCharts[i]
2221-
currentlyReferencedReleases[chartManager.GetReleaseKey(currentChart.ReleaseNamespace, currentChart.ReleaseName)] = true
2216+
chartManager, err := chartmanager.GetChartManagerInstance(ctx, c)
2217+
if err != nil {
2218+
return nil, err
22222219
}
22232220

22242221
reports := make([]configv1beta1.ReleaseReport, 0)
22252222

2226-
for i := range managedHelmReleases {
2227-
releaseKey := chartManager.GetReleaseKey(managedHelmReleases[i].Namespace, managedHelmReleases[i].Name)
2228-
if _, ok := currentlyReferencedReleases[releaseKey]; !ok {
2229-
logger.V(logs.LogInfo).Info(fmt.Sprintf("helm release %s (namespace %s) used to be managed but not referenced anymore",
2230-
managedHelmReleases[i].Name, managedHelmReleases[i].Namespace))
2231-
2232-
_, err := getReleaseInfo(managedHelmReleases[i].Name,
2233-
managedHelmReleases[i].Namespace, kubeconfig, &registryClientOptions{}, false)
2234-
if err != nil {
2235-
if errors.Is(err, driver.ErrReleaseNotFound) {
2236-
continue
2237-
}
2238-
return nil, err
2223+
for i := range staleReleases {
2224+
_, err := getReleaseInfo(staleReleases[i].Name,
2225+
staleReleases[i].Namespace, kubeconfig, &registryClientOptions{}, false)
2226+
if err != nil {
2227+
if errors.Is(err, driver.ErrReleaseNotFound) {
2228+
continue
22392229
}
2230+
return nil, err
2231+
}
22402232

2241-
if clusterSummary.Spec.ClusterProfileSpec.SyncMode != configv1beta1.SyncModeDryRun {
2242-
// If another ClusterSummary is queued to manage this chart in this cluster, do not uninstall.
2243-
// Let the other ClusterSummary take it over.
2244-
2245-
currentChart := &configv1beta1.HelmChart{
2246-
ReleaseNamespace: managedHelmReleases[i].Namespace,
2247-
ReleaseName: managedHelmReleases[i].Name,
2248-
}
2249-
otherRegisteredClusterSummaries := chartManager.GetRegisteredClusterSummariesForChart(
2250-
clusterSummary.Spec.ClusterNamespace, clusterSummary.Spec.ClusterName,
2251-
clusterSummary.Spec.ClusterType, currentChart)
2252-
if len(otherRegisteredClusterSummaries) > 1 {
2253-
// Immediately unregister so next inline ClusterSummary can take this over
2254-
chartManager.UnregisterClusterSummaryForChart(clusterSummary, currentChart)
2255-
err = requeueAllOtherClusterSummaries(ctx, c, clusterSummary.Spec.ClusterNamespace,
2256-
otherRegisteredClusterSummaries, logger)
2257-
if err != nil {
2258-
// TODO: Handle errors to prevent bad state. ClusterSummary no longer manage the chart,
2259-
// but no other ClusterSummary instance has been requeued.
2260-
return nil, err
2261-
}
2233+
if clusterSummary.Spec.ClusterProfileSpec.SyncMode != configv1beta1.SyncModeDryRun {
2234+
// If another ClusterSummary is queued to manage this chart in this cluster, do not uninstall.
2235+
// Let the other ClusterSummary take it over.
22622236

2263-
continue
2264-
}
2237+
currentChart := &configv1beta1.HelmChart{
2238+
ReleaseNamespace: staleReleases[i].Namespace,
2239+
ReleaseName: staleReleases[i].Name,
22652240
}
2241+
otherRegisteredClusterSummaries := chartManager.GetRegisteredClusterSummariesForChart(
2242+
clusterSummary.Spec.ClusterNamespace, clusterSummary.Spec.ClusterName,
2243+
clusterSummary.Spec.ClusterType, currentChart)
2244+
if len(otherRegisteredClusterSummaries) > 1 {
2245+
// Immediately unregister so next inline ClusterSummary can take this over
2246+
chartManager.UnregisterClusterSummaryForChart(clusterSummary, currentChart)
2247+
err = requeueAllOtherClusterSummaries(ctx, c, clusterSummary.Spec.ClusterNamespace,
2248+
otherRegisteredClusterSummaries, logger)
2249+
if err != nil {
2250+
// TODO: Handle errors to prevent bad state. ClusterSummary no longer manage the chart,
2251+
// but no other ClusterSummary instance has been requeued.
2252+
return nil, err
2253+
}
22662254

2267-
if err := uninstallRelease(ctx, clusterSummary, managedHelmReleases[i].Name,
2268-
managedHelmReleases[i].Namespace, kubeconfig, &registryClientOptions{}, nil, logger); err != nil {
2269-
return nil, err
2255+
continue
22702256
}
2257+
}
22712258

2272-
reports = append(reports, configv1beta1.ReleaseReport{
2273-
ReleaseNamespace: managedHelmReleases[i].Namespace, ReleaseName: managedHelmReleases[i].Name,
2274-
Action: string(configv1beta1.UninstallHelmAction),
2275-
})
2259+
if err := uninstallRelease(ctx, clusterSummary, staleReleases[i].Name,
2260+
staleReleases[i].Namespace, kubeconfig, &registryClientOptions{}, nil, logger); err != nil {
2261+
return nil, err
22762262
}
2263+
2264+
reports = append(reports, configv1beta1.ReleaseReport{
2265+
ReleaseNamespace: staleReleases[i].Namespace, ReleaseName: staleReleases[i].Name,
2266+
Action: string(configv1beta1.UninstallHelmAction),
2267+
})
22772268
}
22782269

22792270
return reports, nil
@@ -4445,7 +4436,14 @@ func commitStagedResourcesForDeployment(ctx context.Context, clusterSummary *con
44454436
return err
44464437
}
44474438

4448-
setters := prepareSetters(clusterSummary, libsveltosv1beta1.FeatureHelm, profileRef, configurationHash)
4439+
staleReleases, err := getStaleReleases(ctx, getManagementClusterClient(), clusterSummary, logger)
4440+
if err != nil {
4441+
logger.V(logs.LogInfo).Error(err, "failed to get list of stale helm releases")
4442+
return err
4443+
}
4444+
4445+
// if a stale helm release is being deleted, run the pre/post delete checks
4446+
setters := prepareSetters(clusterSummary, libsveltosv1beta1.FeatureHelm, profileRef, configurationHash, len(staleReleases) != 0)
44494447
// Commit deployment
44504448
return pullmode.CommitStagedResourcesForDeployment(ctx, getManagementClusterClient(),
44514449
clusterSummary.Spec.ClusterNamespace, clusterSummary.Spec.ClusterName, configv1beta1.ClusterSummaryKind,
@@ -4569,3 +4567,35 @@ func removeCachedData(settings *cli.EnvSettings, name, repoURL string, registryO
45694567

45704568
_ = repoAddOrUpdate(settings, name, repoURL, registryOptions, logger)
45714569
}
4570+
4571+
// getStaleReleases returns releases which used to be managed by the ClusterSummary but are not referenced anymore
4572+
func getStaleReleases(ctx context.Context, c client.Client, clusterSummary *configv1beta1.ClusterSummary,
4573+
logger logr.Logger) ([]chartmanager.HelmReleaseInfo, error) {
4574+
4575+
chartManager, err := chartmanager.GetChartManagerInstance(ctx, c)
4576+
if err != nil {
4577+
return nil, err
4578+
}
4579+
4580+
managedHelmReleases := chartManager.GetManagedHelmReleases(clusterSummary)
4581+
4582+
// Build map of current referenced helm charts
4583+
currentlyReferencedReleases := make(map[string]bool)
4584+
for i := range clusterSummary.Spec.ClusterProfileSpec.HelmCharts {
4585+
currentChart := &clusterSummary.Spec.ClusterProfileSpec.HelmCharts[i]
4586+
currentlyReferencedReleases[chartManager.GetReleaseKey(currentChart.ReleaseNamespace, currentChart.ReleaseName)] = true
4587+
}
4588+
4589+
staleReleases := make([]chartmanager.HelmReleaseInfo, 0)
4590+
4591+
for i := range managedHelmReleases {
4592+
releaseKey := chartManager.GetReleaseKey(managedHelmReleases[i].Namespace, managedHelmReleases[i].Name)
4593+
if _, ok := currentlyReferencedReleases[releaseKey]; !ok {
4594+
logger.V(logs.LogInfo).Info(fmt.Sprintf("helm release %s (namespace %s) used to be managed but not referenced anymore",
4595+
managedHelmReleases[i].Name, managedHelmReleases[i].Namespace))
4596+
staleReleases = append(staleReleases, managedHelmReleases[i])
4597+
}
4598+
}
4599+
4600+
return staleReleases, nil
4601+
}

controllers/handlers_kustomize.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ func processKustomizeDeployment(ctx context.Context, remoteRestConfig *rest.Conf
219219
}
220220

221221
if isPullMode {
222-
setters := prepareSetters(clusterSummary, libsveltosv1beta1.FeatureKustomize, profileRef, configurationHash)
223-
222+
setters := prepareSetters(clusterSummary, libsveltosv1beta1.FeatureKustomize, profileRef,
223+
configurationHash, false)
224224
err = pullmode.CommitStagedResourcesForDeployment(ctx, c,
225225
clusterSummary.Spec.ClusterNamespace, clusterSummary.Spec.ClusterName, configv1beta1.ClusterSummaryKind,
226226
clusterSummary.Name, string(libsveltosv1beta1.FeatureKustomize),

controllers/handlers_resources.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ func postProcessDeployedResources(ctx context.Context, remoteRestConfig *rest.Co
174174
}
175175

176176
if isPullMode {
177-
setters := prepareSetters(clusterSummary, libsveltosv1beta1.FeatureResources, profileRef, configurationHash)
178-
177+
setters := prepareSetters(clusterSummary, libsveltosv1beta1.FeatureResources, profileRef,
178+
configurationHash, false)
179179
err = pullmode.CommitStagedResourcesForDeployment(ctx, c,
180180
clusterSummary.Spec.ClusterNamespace, clusterSummary.Spec.ClusterName, configv1beta1.ClusterSummaryKind,
181181
clusterSummary.Name, string(libsveltosv1beta1.FeatureResources),
@@ -486,7 +486,7 @@ func pullModeUndeployResources(ctx context.Context, c client.Client, clusterSumm
486486
return err
487487
}
488488

489-
setters := prepareSetters(clusterSummary, fID, profileRef, nil)
489+
setters := prepareSetters(clusterSummary, fID, profileRef, nil, true)
490490

491491
// discard all previous staged resources. This will instruct agent to undeploy
492492
err = pullmode.RemoveDeployedResources(ctx, c, clusterSummary.Spec.ClusterNamespace,

controllers/handlers_utils.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ func getPatchesHash(ctx context.Context, clusterSummary *configv1beta1.ClusterSu
14561456
}
14571457

14581458
func prepareSetters(clusterSummary *configv1beta1.ClusterSummary, featureID libsveltosv1beta1.FeatureID,
1459-
profileRef *corev1.ObjectReference, configurationHash []byte) []pullmode.Option {
1459+
profileRef *corev1.ObjectReference, configurationHash []byte, includeDeleteChecks bool) []pullmode.Option {
14601460

14611461
setters := make([]pullmode.Option, 0)
14621462
if clusterSummary.Spec.ClusterProfileSpec.SyncMode == configv1beta1.SyncModeContinuousWithDriftDetection {
@@ -1495,10 +1495,15 @@ func prepareSetters(clusterSummary *configv1beta1.ClusterSummary, featureID libs
14951495
pullmode.WithContinueOnConflict(clusterSummary.Spec.ClusterProfileSpec.ContinueOnConflict),
14961496
pullmode.WithContinueOnError(clusterSummary.Spec.ClusterProfileSpec.ContinueOnError),
14971497
pullmode.WithValidateHealths(clusterSummary.Spec.ClusterProfileSpec.ValidateHealths),
1498-
pullmode.WithPreDeleteChecks(clusterSummary.Spec.ClusterProfileSpec.PreDeleteChecks),
1499-
pullmode.WithPostDeleteChecks(clusterSummary.Spec.ClusterProfileSpec.PostDeleteChecks),
15001498
pullmode.WithDeployedGVKs(gvks))
15011499

1500+
if includeDeleteChecks {
1501+
setters = append(setters,
1502+
pullmode.WithPreDeleteChecks(clusterSummary.Spec.ClusterProfileSpec.PreDeleteChecks),
1503+
pullmode.WithPostDeleteChecks(clusterSummary.Spec.ClusterProfileSpec.PostDeleteChecks),
1504+
)
1505+
}
1506+
15021507
// Do not check on profileOwnerRef being not nil. It must always be passed
15031508
sourceRef := corev1.ObjectReference{
15041509
APIVersion: profileRef.APIVersion,

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/Masterminds/semver/v3 v3.4.0
88
github.com/TwiN/go-color v1.4.1
99
github.com/dariubs/percent v1.0.0
10-
github.com/docker/cli v29.1.5+incompatible
10+
github.com/docker/cli v29.2.1+incompatible
1111
github.com/fluxcd/pkg/apis/meta v1.25.0
1212
github.com/fluxcd/pkg/http/fetch v0.22.0
1313
github.com/fluxcd/pkg/tar v0.17.0
@@ -183,4 +183,4 @@ require (
183183

184184
// Replace digest lib to master to gather access to BLAKE3.
185185
// xref: https://github.com/opencontainers/go-digest/pull/66
186-
replace github.com/opencontainers/go-digest => github.com/opencontainers/go-digest v1.0.1-0.20250813155314-89707e38ad1a
186+
replace github.com/opencontainers/go-digest => github.com/opencontainers/go-digest v1.0.1-0.20250813155314-89707e38ad1a

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5Qvfr
7474
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
7575
github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI=
7676
github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
77-
github.com/docker/cli v29.1.5+incompatible h1:GckbANUt3j+lsnQ6eCcQd70mNSOismSHWt8vk2AX8ao=
78-
github.com/docker/cli v29.1.5+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
77+
github.com/docker/cli v29.2.1+incompatible h1:n3Jt0QVCN65eiVBoUTZQM9mcQICCJt3akW4pKAbKdJg=
78+
github.com/docker/cli v29.2.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
7979
github.com/docker/docker-credential-helpers v0.8.2 h1:bX3YxiGzFP5sOXWc3bTPEXdEaZSeVMrFgOr3T+zrFAo=
8080
github.com/docker/docker-credential-helpers v0.8.2/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M=
8181
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c h1:+pKlWGMw7gf6bQ+oDZB4KHQFypsfjYlq/C4rfL7D3g8=

hack/tools/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.25.6
44

55
require (
66
github.com/a8m/envsubst v1.4.3
7-
github.com/onsi/ginkgo/v2 v2.27.5
7+
github.com/onsi/ginkgo/v2 v2.28.1
88
golang.org/x/oauth2 v0.34.0
99
golang.org/x/tools v0.41.0
1010
k8s.io/client-go v0.35.0
@@ -28,7 +28,7 @@ require (
2828
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
2929
github.com/gobuffalo/flect v1.0.3 // indirect
3030
github.com/google/gnostic-models v0.7.0 // indirect
31-
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
31+
github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83 // indirect
3232
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3333
github.com/josharian/intern v1.0.0 // indirect
3434
github.com/json-iterator/go v1.1.12 // indirect

hack/tools/go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ github.com/google/gnostic-models v0.7.0/go.mod h1:whL5G0m6dmc5cPxKc5bdKdEN3UjI7O
6969
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
7070
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
7171
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
72-
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 h1:BHT72Gu3keYf3ZEu2J0b1vyeLSOYI8bm5wbJM/8yDe8=
73-
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
72+
github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83 h1:z2ogiKUYzX5Is6zr/vP9vJGqPwcdqsWjOt+V8J7+bTc=
73+
github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83/go.mod h1:MxpfABSjhmINe3F1It9d+8exIHFvUqtLIRCdOGNXqiI=
7474
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
7575
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
7676
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
@@ -115,10 +115,10 @@ github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
115115
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
116116
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
117117
github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU=
118-
github.com/onsi/ginkgo/v2 v2.27.5 h1:ZeVgZMx2PDMdJm/+w5fE/OyG6ILo1Y3e+QX4zSR0zTE=
119-
github.com/onsi/ginkgo/v2 v2.27.5/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=
120-
github.com/onsi/gomega v1.38.3 h1:eTX+W6dobAYfFeGC2PV6RwXRu/MyT+cQguijutvkpSM=
121-
github.com/onsi/gomega v1.38.3/go.mod h1:ZCU1pkQcXDO5Sl9/VVEGlDyp+zm0m1cmeG5TOzLgdh4=
118+
github.com/onsi/ginkgo/v2 v2.28.1 h1:S4hj+HbZp40fNKuLUQOYLDgZLwNUVn19N3Atb98NCyI=
119+
github.com/onsi/ginkgo/v2 v2.28.1/go.mod h1:CLtbVInNckU3/+gC8LzkGUb9oF+e8W8TdUsxPwvdOgE=
120+
github.com/onsi/gomega v1.39.0 h1:y2ROC3hKFmQZJNFeGAMeHZKkjBL65mIZcvrLQBF9k6Q=
121+
github.com/onsi/gomega v1.39.0/go.mod h1:ZCU1pkQcXDO5Sl9/VVEGlDyp+zm0m1cmeG5TOzLgdh4=
122122
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
123123
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
124124
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=

test/fv/delete_check_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ spec:
7979
- "gh-pages.github.com"`
8080
)
8181

82-
// TODO: Add to NEW-PULLMODE as well once sveltos-applier is taken care of
83-
It("Pre Delete checks blocks an uninstall", Label("NEW-FV", "EXTENDED"), func() {
82+
It("Pre Delete checks blocks an uninstall", Label("NEW-FV", "NEW-FV-PULLMODE", "EXTENDED"), func() {
8483
Byf("Create a ClusterProfile matching Cluster %s/%s",
8584
kindWorkloadCluster.GetNamespace(), kindWorkloadCluster.GetName())
8685
clusterProfile := getClusterProfile(namePrefix, map[string]string{key: value})

test/pullmode-sveltosapplier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ spec:
9999
valueFrom:
100100
fieldRef:
101101
fieldPath: metadata.namespace
102-
image: docker.io/projectsveltos/sveltos-applier@sha256:63f1b91a85a285d07e220fd083d10eb38aff976516a486becd9842a34fbef50a
102+
image: docker.io/projectsveltos/sveltos-applier@sha256:767293046d16faaa307598ad2013543d2f8cf533cf5f5399e74298b258580495
103103
livenessProbe:
104104
failureThreshold: 3
105105
httpGet:

0 commit comments

Comments
 (0)