Skip to content

Commit 2412284

Browse files
authored
Use k8s 1.34 client libs (#557)
/cherry-pick Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 24799bd commit 2412284

File tree

860 files changed

+88566
-38120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

860 files changed

+88566
-38120
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ issues:
2525
- vendor
2626

2727
run:
28-
timeout: 10m
28+
timeout: 10m

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,6 @@ ct: $(BUILD_DIRS)
382382
ct $(CT_COMMAND) --debug --validate-maintainers=false $(CT_ARGS) \
383383
"
384384

385-
ADDTL_LINTERS := gofmt,goimports,unparam
386-
387385
.PHONY: lint
388386
lint: $(BUILD_DIRS)
389387
@echo "running linter"

apis/installer/fuzzer/fuzzer.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ package fuzzer
1919
import (
2020
"stash.appscode.dev/installer/apis/installer/v1alpha1"
2121

22-
fuzz "github.com/google/gofuzz"
2322
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
23+
"sigs.k8s.io/randfill"
2424
)
2525

2626
// Funcs returns the fuzzer functions for this api group.
2727
var Funcs = func(codecs runtimeserializer.CodecFactory) []any {
2828
return []any{
29-
func(s *v1alpha1.StashCommunity, c fuzz.Continue) {
30-
c.FuzzNoCustom(s) // fuzz self without calling this function again
29+
func(s *v1alpha1.StashCommunity, c randfill.Continue) {
30+
c.Fill(s) // fuzz self without calling this function again
3131
},
32-
func(s *v1alpha1.StashEnterprise, c fuzz.Continue) {
33-
c.FuzzNoCustom(s) // fuzz self without calling this function again
32+
func(s *v1alpha1.StashEnterprise, c randfill.Continue) {
33+
c.Fill(s) // fuzz self without calling this function again
3434
},
35-
func(s *v1alpha1.Stash, c fuzz.Continue) {
36-
c.FuzzNoCustom(s) // fuzz self without calling this function again
35+
func(s *v1alpha1.Stash, c randfill.Continue) {
36+
c.Fill(s) // fuzz self without calling this function again
3737
},
3838
}
3939
}

charts/stash-community/values.openapiv3_schema.yaml

Lines changed: 32 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,7 @@ properties:
367367
and labelSelector.
368368
369369
Also, matchLabelKeys cannot be set when labelSelector isn''t
370-
set.
371-
372-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
373-
feature gate (enabled by default).'
370+
set.'
374371
items:
375372
type: string
376373
type: array
@@ -397,10 +394,7 @@ properties:
397394
and labelSelector.
398395
399396
Also, mismatchLabelKeys cannot be set when labelSelector isn''t
400-
set.
401-
402-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
403-
feature gate (enabled by default).'
397+
set.'
404398
items:
405399
type: string
406400
type: array
@@ -629,10 +623,7 @@ properties:
629623
The same key is forbidden to exist in both matchLabelKeys and
630624
labelSelector.
631625
632-
Also, matchLabelKeys cannot be set when labelSelector isn''t set.
633-
634-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
635-
feature gate (enabled by default).'
626+
Also, matchLabelKeys cannot be set when labelSelector isn''t set.'
636627
items:
637628
type: string
638629
type: array
@@ -659,10 +650,7 @@ properties:
659650
labelSelector.
660651
661652
Also, mismatchLabelKeys cannot be set when labelSelector isn''t
662-
set.
663-
664-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
665-
feature gate (enabled by default).'
653+
set.'
666654
items:
667655
type: string
668656
type: array
@@ -788,9 +776,9 @@ properties:
788776
789777
request, requiredDuringScheduling anti-affinity expressions, etc.),
790778
791-
compute a sum by iterating through the elements of this field and adding
779+
compute a sum by iterating through the elements of this field and subtracting
792780
793-
"weight" to the sum if the node has pods which matches the corresponding
781+
"weight" from the sum if the node has pods which matches the corresponding
794782
podAffinityTerm; the
795783
796784
node(s) with the highest sum are the most preferred.'
@@ -884,10 +872,7 @@ properties:
884872
and labelSelector.
885873
886874
Also, matchLabelKeys cannot be set when labelSelector isn''t
887-
set.
888-
889-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
890-
feature gate (enabled by default).'
875+
set.'
891876
items:
892877
type: string
893878
type: array
@@ -914,10 +899,7 @@ properties:
914899
and labelSelector.
915900
916901
Also, mismatchLabelKeys cannot be set when labelSelector isn''t
917-
set.
918-
919-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
920-
feature gate (enabled by default).'
902+
set.'
921903
items:
922904
type: string
923905
type: array
@@ -1147,10 +1129,7 @@ properties:
11471129
The same key is forbidden to exist in both matchLabelKeys and
11481130
labelSelector.
11491131
1150-
Also, matchLabelKeys cannot be set when labelSelector isn''t set.
1151-
1152-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
1153-
feature gate (enabled by default).'
1132+
Also, matchLabelKeys cannot be set when labelSelector isn''t set.'
11541133
items:
11551134
type: string
11561135
type: array
@@ -1177,10 +1156,7 @@ properties:
11771156
labelSelector.
11781157
11791158
Also, mismatchLabelKeys cannot be set when labelSelector isn''t
1180-
set.
1181-
1182-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
1183-
feature gate (enabled by default).'
1159+
set.'
11841160
items:
11851161
type: string
11861162
type: array
@@ -1731,10 +1707,7 @@ properties:
17311707
and labelSelector.
17321708
17331709
Also, matchLabelKeys cannot be set when labelSelector
1734-
isn''t set.
1735-
1736-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
1737-
feature gate (enabled by default).'
1710+
isn''t set.'
17381711
items:
17391712
type: string
17401713
type: array
@@ -1761,10 +1734,7 @@ properties:
17611734
and labelSelector.
17621735
17631736
Also, mismatchLabelKeys cannot be set when labelSelector
1764-
isn''t set.
1765-
1766-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
1767-
feature gate (enabled by default).'
1737+
isn''t set.'
17681738
items:
17691739
type: string
17701740
type: array
@@ -1995,10 +1965,7 @@ properties:
19951965
and labelSelector.
19961966
19971967
Also, matchLabelKeys cannot be set when labelSelector isn''t
1998-
set.
1999-
2000-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
2001-
feature gate (enabled by default).'
1968+
set.'
20021969
items:
20031970
type: string
20041971
type: array
@@ -2025,10 +1992,7 @@ properties:
20251992
and labelSelector.
20261993
20271994
Also, mismatchLabelKeys cannot be set when labelSelector isn''t
2028-
set.
2029-
2030-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
2031-
feature gate (enabled by default).'
1995+
set.'
20321996
items:
20331997
type: string
20341998
type: array
@@ -2157,9 +2121,9 @@ properties:
21572121
request, requiredDuringScheduling anti-affinity expressions, etc.),
21582122
21592123
compute a sum by iterating through the elements of this field and
2160-
adding
2124+
subtracting
21612125
2162-
"weight" to the sum if the node has pods which matches the corresponding
2126+
"weight" from the sum if the node has pods which matches the corresponding
21632127
podAffinityTerm; the
21642128
21652129
node(s) with the highest sum are the most preferred.'
@@ -2253,10 +2217,7 @@ properties:
22532217
and labelSelector.
22542218
22552219
Also, matchLabelKeys cannot be set when labelSelector
2256-
isn''t set.
2257-
2258-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
2259-
feature gate (enabled by default).'
2220+
isn''t set.'
22602221
items:
22612222
type: string
22622223
type: array
@@ -2283,10 +2244,7 @@ properties:
22832244
and labelSelector.
22842245
22852246
Also, mismatchLabelKeys cannot be set when labelSelector
2286-
isn''t set.
2287-
2288-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
2289-
feature gate (enabled by default).'
2247+
isn''t set.'
22902248
items:
22912249
type: string
22922250
type: array
@@ -2517,10 +2475,7 @@ properties:
25172475
and labelSelector.
25182476
25192477
Also, matchLabelKeys cannot be set when labelSelector isn''t
2520-
set.
2521-
2522-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
2523-
feature gate (enabled by default).'
2478+
set.'
25242479
items:
25252480
type: string
25262481
type: array
@@ -2547,10 +2502,7 @@ properties:
25472502
and labelSelector.
25482503
25492504
Also, mismatchLabelKeys cannot be set when labelSelector isn''t
2550-
set.
2551-
2552-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
2553-
feature gate (enabled by default).'
2505+
set.'
25542506
items:
25552507
type: string
25562508
type: array
@@ -3367,10 +3319,7 @@ properties:
33673319
and labelSelector.
33683320
33693321
Also, matchLabelKeys cannot be set when labelSelector
3370-
isn''t set.
3371-
3372-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
3373-
feature gate (enabled by default).'
3322+
isn''t set.'
33743323
items:
33753324
type: string
33763325
type: array
@@ -3397,10 +3346,7 @@ properties:
33973346
and labelSelector.
33983347
33993348
Also, mismatchLabelKeys cannot be set when labelSelector
3400-
isn''t set.
3401-
3402-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
3403-
feature gate (enabled by default).'
3349+
isn''t set.'
34043350
items:
34053351
type: string
34063352
type: array
@@ -3631,10 +3577,7 @@ properties:
36313577
and labelSelector.
36323578
36333579
Also, matchLabelKeys cannot be set when labelSelector isn''t
3634-
set.
3635-
3636-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
3637-
feature gate (enabled by default).'
3580+
set.'
36383581
items:
36393582
type: string
36403583
type: array
@@ -3661,10 +3604,7 @@ properties:
36613604
and labelSelector.
36623605
36633606
Also, mismatchLabelKeys cannot be set when labelSelector isn''t
3664-
set.
3665-
3666-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
3667-
feature gate (enabled by default).'
3607+
set.'
36683608
items:
36693609
type: string
36703610
type: array
@@ -3793,9 +3733,9 @@ properties:
37933733
request, requiredDuringScheduling anti-affinity expressions, etc.),
37943734
37953735
compute a sum by iterating through the elements of this field and
3796-
adding
3736+
subtracting
37973737
3798-
"weight" to the sum if the node has pods which matches the corresponding
3738+
"weight" from the sum if the node has pods which matches the corresponding
37993739
podAffinityTerm; the
38003740
38013741
node(s) with the highest sum are the most preferred.'
@@ -3889,10 +3829,7 @@ properties:
38893829
and labelSelector.
38903830
38913831
Also, matchLabelKeys cannot be set when labelSelector
3892-
isn''t set.
3893-
3894-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
3895-
feature gate (enabled by default).'
3832+
isn''t set.'
38963833
items:
38973834
type: string
38983835
type: array
@@ -3919,10 +3856,7 @@ properties:
39193856
and labelSelector.
39203857
39213858
Also, mismatchLabelKeys cannot be set when labelSelector
3922-
isn''t set.
3923-
3924-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
3925-
feature gate (enabled by default).'
3859+
isn''t set.'
39263860
items:
39273861
type: string
39283862
type: array
@@ -4153,10 +4087,7 @@ properties:
41534087
and labelSelector.
41544088
41554089
Also, matchLabelKeys cannot be set when labelSelector isn''t
4156-
set.
4157-
4158-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
4159-
feature gate (enabled by default).'
4090+
set.'
41604091
items:
41614092
type: string
41624093
type: array
@@ -4183,10 +4114,7 @@ properties:
41834114
and labelSelector.
41844115
41854116
Also, mismatchLabelKeys cannot be set when labelSelector isn''t
4186-
set.
4187-
4188-
This is a beta field and requires enabling MatchLabelKeysInPodAffinity
4189-
feature gate (enabled by default).'
4117+
set.'
41904118
items:
41914119
type: string
41924120
type: array
@@ -4683,7 +4611,7 @@ properties:
46834611
that are used by this container.
46844612
46854613
4686-
This is an alpha field and requires enabling the
4614+
This field depends on the
46874615
46884616
DynamicResourceAllocation feature gate.
46894617
@@ -5367,7 +5295,7 @@ properties:
53675295
that are used by this container.
53685296
53695297
5370-
This is an alpha field and requires enabling the
5298+
This field depends on the
53715299
53725300
DynamicResourceAllocation feature gate.
53735301

0 commit comments

Comments
 (0)