Skip to content

Commit

Permalink
Prepare for ace v2024.12.9 release
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Nov 25, 2024
1 parent 1b0e230 commit 8b500a8
Show file tree
Hide file tree
Showing 721 changed files with 1,059 additions and 1,045 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ require (
k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0
kmodules.xyz/apiversion v0.2.0
kmodules.xyz/authorizer v0.29.1
kmodules.xyz/client-go v0.30.39
kmodules.xyz/client-go v0.30.40
kmodules.xyz/custom-resources v0.30.0
kmodules.xyz/go-containerregistry v0.0.12
kmodules.xyz/monitoring-agent-api v0.30.4
kmodules.xyz/offshoot-api v0.30.1
kmodules.xyz/resource-metadata v0.22.6
kmodules.xyz/resource-metadata v0.23.0
kmodules.xyz/resource-metrics v0.30.5
kmodules.xyz/resource-metrics/utils v0.30.4
kmodules.xyz/sets v0.29.0
Expand Down Expand Up @@ -91,7 +91,7 @@ require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cert-manager/cert-manager v1.15.2 // indirect
github.com/cert-manager/cert-manager v1.15.4 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect
github.com/coreos/go-semver v0.3.1 // indirect
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ github.com/bytecodealliance/wasmtime-go/v3 v3.0.2/go.mod h1:RnUjnIXxEJcL6BgCvNyz
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cert-manager/cert-manager v1.15.2 h1:Mjbvc+FjYeg2928xy7bcS+c+ARxyqBcXM9QypOg1/Uo=
github.com/cert-manager/cert-manager v1.15.2/go.mod h1:stBge/DTvrhfQMB/93+Y62s+gQgZBsfL1o0C/4AL/mI=
github.com/cert-manager/cert-manager v1.15.4 h1:FtH6BOTmkNBNRjoYSW2b80MYpUq4Zw1zbEB6flYzkiM=
github.com/cert-manager/cert-manager v1.15.4/go.mod h1:stBge/DTvrhfQMB/93+Y62s+gQgZBsfL1o0C/4AL/mI=
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
Expand Down Expand Up @@ -927,8 +927,8 @@ kmodules.xyz/apiversion v0.2.0 h1:vAQYqZFm4xu4pbB1cAdHbFEPES6EQkcR4wc06xdTOWk=
kmodules.xyz/apiversion v0.2.0/go.mod h1:oPX8g8LvlPdPX3Yc5YvCzJHQnw3YF/X4/jdW0b1am80=
kmodules.xyz/authorizer v0.29.1 h1:uByGGoryKbZcfiEAhjcK/Y345I9mygNQP7DVpkMbNQQ=
kmodules.xyz/authorizer v0.29.1/go.mod h1:kZRhclL8twzyt2bQuJQJbpYww2sc+qFr8I5PPoq/sWY=
kmodules.xyz/client-go v0.30.39 h1:/GjcgKLY1WdsHRK+956FXQdqDkJg/voJASo+IFyH0xA=
kmodules.xyz/client-go v0.30.39/go.mod h1:CAu+JlA8RVGtj6LQHu0Q1w2mnFUajuti49c7T1AvGdM=
kmodules.xyz/client-go v0.30.40 h1:X9Ic8D19D5Gy4C5UvQWSU/kyIObULFHG0B2HHx8ZW+E=
kmodules.xyz/client-go v0.30.40/go.mod h1:CAu+JlA8RVGtj6LQHu0Q1w2mnFUajuti49c7T1AvGdM=
kmodules.xyz/crd-schema-fuzz v0.29.1 h1:zJTlWYOrT5dsVVHW8HGcnR/vaWfxQfNh11QwTtkYpcs=
kmodules.xyz/crd-schema-fuzz v0.29.1/go.mod h1:n708z9YQqLMP2KNLQVgBcRJw1QpSWLvpNCEi+KJDOYE=
kmodules.xyz/custom-resources v0.30.0 h1:vR3CbseHMLwR4GvtcJJuRuwIV8voKqFqNii27rMcm1o=
Expand All @@ -939,8 +939,8 @@ kmodules.xyz/monitoring-agent-api v0.30.4 h1:6CTKxYJKpWDsDYb0WRBHGFoW3xQof05d+W8
kmodules.xyz/monitoring-agent-api v0.30.4/go.mod h1:ZuTQ5uGi6H80QLsOTuuC7m58dfXDGUv0YB+s059gnr4=
kmodules.xyz/offshoot-api v0.30.1 h1:TrulAYO+oBsXe9sZZGTmNWIuI8qD2izMpgcTSPvgAmI=
kmodules.xyz/offshoot-api v0.30.1/go.mod h1:T3mpjR6fui0QzOcmQvIuANytW48fe9ytmy/1cgx6D4g=
kmodules.xyz/resource-metadata v0.22.6 h1:3AbZi7n5rC565nXKq3e7G9DA+PDntRWlWvexoAZ1gHI=
kmodules.xyz/resource-metadata v0.22.6/go.mod h1:zq27dG0YA8WEdOOoyfsLn4TQK5Xxox13dwJKtr66eqU=
kmodules.xyz/resource-metadata v0.23.0 h1:X3/Yk1YGProD2Tzy0p5OLXBZQDiYitzkX6gmtcZoz0A=
kmodules.xyz/resource-metadata v0.23.0/go.mod h1:fnT2UJke3zXWJy8Vz+SnB8RKnilB6szX0v5nudD+oPg=
kmodules.xyz/resource-metrics v0.30.5 h1:ZhpGeR9DCz1HTrKUg/mWhr95wlFzCPRdgVAqwaggy1o=
kmodules.xyz/resource-metrics v0.30.5/go.mod h1:w9+rz7/s/kGP1GWzYSuRdCn+l7EwpesmESSEHkLBnIQ=
kmodules.xyz/resource-metrics/utils v0.30.4 h1:bJS/x0Qr7N1FFdxugFbzZ/Es6HVs4ptsFlhkmgj3jac=
Expand Down
22 changes: 18 additions & 4 deletions vendor/kmodules.xyz/client-go/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ func NewUncachedClient(cfg *rest.Config, funcs ...func(*runtime.Scheme) error) (

type (
TransformFunc func(obj client.Object, createOp bool) client.Object
TransformFuncE func(obj client.Object, createOp bool) (client.Object, error)
TransformStatusFunc func(obj client.Object) client.Object
)

func CreateOrPatch(ctx context.Context, c client.Client, obj client.Object, transform TransformFunc, opts ...client.PatchOption) (kutil.VerbType, error) {
func CreateOrPatchE(ctx context.Context, c client.Client, obj client.Object, transform TransformFuncE, opts ...client.PatchOption) (kutil.VerbType, error) {
gvk, err := apiutil.GVKForObject(obj, c.Scheme())
if err != nil {
return kutil.VerbUnchanged, errors.Wrapf(err, "failed to get GVK for object %T", obj)
Expand All @@ -91,8 +92,11 @@ func CreateOrPatch(ctx context.Context, c client.Client, obj client.Object, tran
createOpts = append(createOpts, opt)
}
}
mod := transform(obj.DeepCopyObject().(client.Object), true)
err := c.Create(ctx, mod, createOpts...)
mod, err := transform(obj.DeepCopyObject().(client.Object), true)
if err != nil {
return kutil.VerbUnchanged, err
}
err = c.Create(ctx, mod, createOpts...)
if err != nil {
return kutil.VerbUnchanged, err
}
Expand All @@ -111,7 +115,10 @@ func CreateOrPatch(ctx context.Context, c client.Client, obj client.Object, tran
} else {
patch = client.MergeFrom(cur)
}
mod := transform(cur.DeepCopyObject().(client.Object), false)
mod, err := transform(cur.DeepCopyObject().(client.Object), false)
if err != nil {
return kutil.VerbUnchanged, err
}
err = c.Patch(ctx, mod, patch, opts...)
if err != nil {
return kutil.VerbUnchanged, err
Expand All @@ -132,6 +139,13 @@ func CreateOrPatch(ctx context.Context, c client.Client, obj client.Object, tran
return vt, nil
}

func CreateOrPatch(ctx context.Context, c client.Client, obj client.Object, transform TransformFunc, opts ...client.PatchOption) (kutil.VerbType, error) {
return CreateOrPatchE(ctx, c, obj, func(obj client.Object, createOp bool) (client.Object, error) {
transform(obj, createOp)
return obj, nil
}, opts...)
}

func assign(target, src any) {
srcValue := reflect.ValueOf(src)
if srcValue.Kind() == reflect.Pointer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ spec:
x-kubernetes-map-type: atomic
alertmanagersConfig:
description: Define configuration for connecting to alertmanager. Only
available with thanos v0.10.0 and higher. Maps to the `alertmanagers.config`
available with thanos v0.11.0 and higher. Maps to the `alertmanagers.config`
arg.
properties:
key:
Expand All @@ -952,7 +952,7 @@ spec:
x-kubernetes-map-type: atomic
alertmanagersUrl:
description: 'Define URLs to send alerts to Alertmanager. For Thanos
v0.10.0 and higher, AlertManagersConfig should be used instead. Note:
v0.11.0 and higher, AlertManagersConfig should be used instead. Note:
this field will be ignored if AlertManagersConfig is specified. Maps
to the `alertmanagers.url` arg.'
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
instanceLabelPaths:
- spec.selector.matchLabels
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ spec:
apiGroup: source.toolkit.fluxcd.io
kind: HelmRepository
name: appscode-charts-oci
version: v0.10.0
version: v0.11.0
enforceQuota: false
Loading

0 comments on commit 8b500a8

Please sign in to comment.