File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -353,14 +353,14 @@ func TestStackConfigPolicyMultipleWeights(t *testing.T) {
353353
354354 namespace := test .Ctx ().ManagedNamespace (0 )
355355
356- // Policy with weight 10 (lower priority) - sets cluster.name
356+ // Policy with weight 20 (lower priority) - sets cluster.name
357357 lowPriorityPolicy := policyv1alpha1.StackConfigPolicy {
358358 ObjectMeta : metav1.ObjectMeta {
359359 Namespace : namespace ,
360360 Name : fmt .Sprintf ("low-priority-scp-%s" , rand .String (4 )),
361361 },
362362 Spec : policyv1alpha1.StackConfigPolicySpec {
363- Weight : 10 ,
363+ Weight : 20 ,
364364 ResourceSelector : metav1.LabelSelector {
365365 MatchLabels : map [string ]string {"app" : "elasticsearch" },
366366 },
@@ -381,14 +381,14 @@ func TestStackConfigPolicyMultipleWeights(t *testing.T) {
381381 },
382382 }
383383
384- // Policy with weight 20 (higher priority) - should override cluster.name and settings
384+ // Policy with weight 10 (higher priority) - should override cluster.name and settings
385385 highPriorityPolicy := policyv1alpha1.StackConfigPolicy {
386386 ObjectMeta : metav1.ObjectMeta {
387387 Namespace : namespace ,
388388 Name : fmt .Sprintf ("high-priority-scp-%s" , rand .String (4 )),
389389 },
390390 Spec : policyv1alpha1.StackConfigPolicySpec {
391- Weight : 20 ,
391+ Weight : 10 ,
392392 ResourceSelector : metav1.LabelSelector {
393393 MatchLabels : map [string ]string {"app" : "elasticsearch" },
394394 },
Original file line number Diff line number Diff line change @@ -144,14 +144,14 @@ func TestStackConfigPolicyKibanaMultipleWeights(t *testing.T) {
144144
145145 kbPodListOpts := test .KibanaPodListOptions (kbBuilder .Kibana .Namespace , kbBuilder .Kibana .Name )
146146
147- // Policy with weight 10 (lower priority)
147+ // Policy with weight 20 (lower priority)
148148 lowPriorityPolicy := policyv1alpha1.StackConfigPolicy {
149149 ObjectMeta : metav1.ObjectMeta {
150150 Namespace : namespace ,
151151 Name : fmt .Sprintf ("low-priority-kb-scp-%s" , rand .String (4 )),
152152 },
153153 Spec : policyv1alpha1.StackConfigPolicySpec {
154- Weight : 10 ,
154+ Weight : 20 ,
155155 ResourceSelector : metav1.LabelSelector {
156156 MatchLabels : map [string ]string {"app" : "kibana" },
157157 },
@@ -172,14 +172,14 @@ func TestStackConfigPolicyKibanaMultipleWeights(t *testing.T) {
172172 },
173173 }
174174
175- // Policy with weight 20 (higher priority) - should override lower priority settings
175+ // Policy with weight 10 (higher priority) - should override lower priority settings
176176 highPriorityPolicy := policyv1alpha1.StackConfigPolicy {
177177 ObjectMeta : metav1.ObjectMeta {
178178 Namespace : namespace ,
179179 Name : fmt .Sprintf ("high-priority-kb-scp-%s" , rand .String (4 )),
180180 },
181181 Spec : policyv1alpha1.StackConfigPolicySpec {
182- Weight : 20 ,
182+ Weight : 10 ,
183183 ResourceSelector : metav1.LabelSelector {
184184 MatchLabels : map [string ]string {"app" : "kibana" },
185185 },
You can’t perform that action at this time.
0 commit comments