Skip to content

Commit c96de2d

Browse files
authored
feat: set create-replace policy for crds (#21)
1 parent 60a7c43 commit c96de2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/envoy/deployment.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ import (
1111
fluxmeta "github.com/fluxcd/pkg/apis/meta"
1212
sourcev1 "github.com/fluxcd/source-controller/api/v1"
1313
clustersv1alpha1 "github.com/openmcp-project/openmcp-operator/api/clusters/v1alpha1"
14-
"github.com/openmcp-project/platform-service-gateway/api/gateway/v1alpha1"
1514
corev1 "k8s.io/api/core/v1"
1615
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
1716
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1817
"sigs.k8s.io/controller-runtime/pkg/client"
18+
19+
"github.com/openmcp-project/platform-service-gateway/api/gateway/v1alpha1"
1920
)
2021

2122
var (
@@ -111,11 +112,13 @@ func (g *Gateway) reconcileHelmReleaseFunc(repoName string, obj *helmv2.HelmRele
111112

112113
obj.Spec.Interval = metav1.Duration{Duration: 1 * time.Hour}
113114
obj.Spec.Install = &helmv2.Install{
115+
CRDs: helmv2.CreateReplace,
114116
Remediation: &helmv2.InstallRemediation{
115117
Retries: 3,
116118
},
117119
}
118120
obj.Spec.Upgrade = &helmv2.Upgrade{
121+
CRDs: helmv2.CreateReplace,
119122
Remediation: &helmv2.UpgradeRemediation{
120123
Retries: 3,
121124
},

0 commit comments

Comments
 (0)