Skip to content

Commit

Permalink
fix(deps): update module sigs.k8s.io/controller-runtime to v0.15.0 (#665
Browse files Browse the repository at this point in the history
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[sigs.k8s.io/controller-runtime](https://togithub.com/kubernetes-sigs/controller-runtime)
| require | minor | `v0.14.6` -> `v0.15.0` |

---

### Release Notes

<details>
<summary>kubernetes-sigs/controller-runtime</summary>

###
[`v0.15.0`](https://togithub.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0)

[Compare
Source](https://togithub.com/kubernetes-sigs/controller-runtime/compare/v0.14.6...v0.15.0)

### Controller Runtime v0.15

> *A note from the maintainers*
>
> The following release is probably the largest in the history of the
project. Controller Runtime is a foundational piece for almost all
controllers and operators and we're aware that breaking changes are
never an ask for our users, especially while running production
services.
>
> We take breaking changes very seriously and carefully reviewed each
one of these changes to improve the codebase, user experience, and
future maintainability of the project.
>
> The v0.15 release is a stepping stone towards maturity.
>
> As always, please reach out in Slack in #controller-runtime.

## Changes since v0.14.5

#### ⚠️ Breaking Changes

- Make `*http.Client` configurable and use/share the same client by
default
([#&#8203;2122](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2122))
- When using the default Manager configuration, no immediate changes are
needed.
- `client/apiutil.NewDynamicRESTMapper` signature has changed and now
requires an `*http.Client` as parameter.
- `cluster.Cluster` interface requires `GetHTTPClient()` method which
must return an already configured, non-nil, `*http.Client` for the
Cluster. When using `cluster.New` to create Clusters, the client is
created internally if not specified as an `Options` field.
- `cluster.Options.MapperProvider` field now requires a `*rest.Config`
and `*http.Client`.
- Deprecate Component Configuration `config/v1alpha1` types
([#&#8203;2149](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2149),
[#&#8203;2200](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2200))
- The Component Configuration package has been unmaintained for over a
year and is no longer actively developed. There are (currently) no plans
to revive the package, or provide an alternative.
- Users should migrate to a custom implementation that sets
`Manager.Options` directly.
- 👉 Feedback requested: removal of the deprecated types and code is
tracked in
[#&#8203;895](https://togithub.com/kubernetes-sigs/controller-runtime/issues/895).
- Remove dependency injection functions
([#&#8203;2134](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2134),
[#&#8203;2120](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2120))
- The package `pkg/inject` has been removed, this package contained long
deprecated injection functions (like `InjectScheme`, `InjectLogger`,
`InjectConfig`, `InjectClient`, `InjectCache`, etc.).
- The runtime injection functionality has been deprecated since
Controller Runtime 0.10; all of the above fields can be passed from the
`Manager` to structs or interfaces that need them.
- Improve `builder` package capabilities and general UX
([#&#8203;2135](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2135))
- `builder.Builder.Watches` signature has changed, it now takes a
`client.Object` instead of a `source.Source` as first argument.
        -   For `source.Source`, use `WatchesRawSource`.
- `builder.Builder.WatchesMetadata` has been added to simplify watching
`PartialObjectMetadata` objects.
- Refactor cache.Options, deprecate MultiNamespacedCacheBuilder
([#&#8203;2157](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2157),
[#&#8203;2166](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2166))
- `cache.Options.Namespace` has been removed in favor of
`cache.Options.Namespaces`, a slice.
    -   `cache.Options.Resync` has been renamed to `SyncPeriod`.
- `cache.Options.DefaultSelector` has been removed and split in two
fields:
        -   `cache.Options.DefaultLabelSelector`
        -   `cache.Options.DefaultFieldSelector`
- `cache.Options.DefaultTransform` was added to provide a global
transform function.
- `cache.Options.UnsafeDisableDeepCopy` was added to provide a global
toggle to disable DeepCopy of the objects from the cache before
returning them to clients.
    -   The following `[..]ByObject` field have been refactored:
- `cache.Options.SelectorsByObject` has been removed, use
`cache.Options.ByObject[Object].Field` and
`cache.Options.ByObject[Object].Label`
- `cache.Options.UnsafeDisableDeepCopyByObject` has been removed, use
`cache.Options.ByObject[Object].UnsafeDisableDeepCopy`.
- `cache.Options.TransformByObject` has been removed, use
`cache.Options.ByObject[Object].Transform`.
- `cache.ObjectAll` has been removed. This type was previously used to
set selectors or transformation functions for every object, use the
newly introduced default global options instead.
- Add context to EventHandler(s)
([#&#8203;2139](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2139))
- `handler.EventHandler` and `handler.Funcs` interfaces require
`context.Context` as the first parameter for every method.
- `handler.MapFunc` signature has changed and now requires a
`context.Context`.
- Add client.{GroupVersionKindFor, IsObjectNamespaced}
([#&#8203;2136](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2136))
- The `client.Client` interface now requires and exposes these helper
functions:
- `GroupVersionKindFor(Object)` which returns the
`schema.GroupVersionKind` for the object.
- `IsObjectNamespaced(Object)` which returns `true` if the object's
GroupVersionKind is namespaced, or `false` for global ones.
- Remove DelegatedClient, move all related options in `client.New`
([#&#8203;2150](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2150))
- `client.NewDelegatingClient` constructor and
`client.NewDelegatingClientInput` struct have been removed.
- The DelegatingClient created a Client backed by a cache, use
`client.New` and set `client.Options.Cache` to customize the client's
caching behavior.
- `cluster.NewClientFunc` has been moved to `client.NewClientFunc`.
    -   `cluster.ClientOptions` has been removed.
    -   `cluster.DefaultNewClient` has been removed.
    -   `cluster.ClientBuilderWithOptions` has been removed.
- Expose Manager.Cache/Client options, deprecate older options
([#&#8203;2199](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2199),
[#&#8203;2177](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2177))
- `manager.Options.Cache` is now the preferred way to customize the
cache options for the manager.
- Users can also keep using `manager.Options.NewCache`, which has now
been marked as a low level primitive.
- `manager.Options.Client` is now the preferred way to customize the
client options for the manager.
- Users can also keep using `manager.Options.NewClient`, which has now
been marked as a low level primitive.
- `manager.Options.SyncPeriod` has been deprecated in favor of
`manager.Options.Cache.SyncPeriod`.
- `manager.Options.Namespace` has been deprecated in favor of
`manager.Options.Cache.Namespaces`.
- `manager.Options.DryRunClient` has been deprecated in favor of
`manager.Options.Client.DryRun`.
- `manager.Options.ClientDisableCacheFor` has been deprecated in favor
of `manager.Options.Client.Cache.DisableCacheFor`.
- The following webhook server options have been deprecated, use
`manager.WebhookServer` instead.
        -   `manager.Options.Port`
        -   `manager.Options.Host`
        -   `manager.Options.CertDir`
        -   `manager.Options.TLSOpts`
- Remove `cache.BuilderWithOptions`
([#&#8203;2300](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2300))
- Add constructors for `webhook/conversion`, remove
`webhook/admission.GetDecoder()`
([#&#8203;2144](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2144))
- There are two set of changes related to the webhooks and how they're
exposed. For users using the Manager, there should be minimal to no
required changes.
- `webhook/admission/Webhook.GetDecoder()` method has been removed, it
was unused before and relied on runtime dependency injection.
- `webhook/conversion.Webhook` struct has been un-exported. Users should
use `webhook/conversion.NewWebhookHandler` instead.
-   `pkg/webhook/admission`:
- Use `Result.Message` instead of `Result.Reason`
([#&#8203;1539](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1539))
- `Validator` and `CustomValidator` interfaces have been modified to
allow returning warnings
([#&#8203;2014](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2014))
- Testing: Fake client status handling
([#&#8203;2259](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2259))
- Added a new `WithStatusSubresource` option and pre-populating it with
        all in-tree resources that have a status subresource
- `Update` and `Patch` methods now don't change the status for any such
        resource anymore
- The status clients `Update` and `Patch` methods now only change the
status
        for any such resource
- Remove high cardinality metrics
([#&#8203;2217](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2217),
[#&#8203;2298](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2298))
    -   `rest_client_request_latency_seconds`
    -   `rest_client_request_duration_seconds`
    -   `rest_client_request_size_bytes`
    -   `rest_client_response_size_bytes`
- Allow passing a custom webhook server
([#&#8203;2293](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2293),
[#&#8203;2329](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2329))
    -   The `webhook.Server` struct is now an interface
- `webhook.NewServer` can be used to pass in and customize the default
server
- Flatten fields in controller.Options
([#&#8203;2307](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2307))
- Update fake client deletionTimestamp behavior
([#&#8203;2316](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2316))
- The fake client will panic if initialized with an object that has a
DeletionTimestamp and no finalizer
- The fake client will silently ignore a DeletionTimestamp on an object
in a Create request, matching the behavior of the kube-apiserver
- Unexport delegating logger, remove async init
([#&#8203;2317](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2317))
- `log.DelegatingLogSink` has been unexported, this logger should never
be used on its own, and it's only meant to be used within
controller-runtime initialization process.
- Previously, when the `pkg/log` package was imported, there was an
`init` function that spawned a goroutine, which set a null logger after
30 seconds. Now this logic has been removed, and instead incorporated
into the delegating logger private implementation.
- Change webhook request received / response written logs to log level 4
([#&#8203;2334](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2334))
- Use and offer a single dynamic lazy RESTMapper
([#&#8203;2116](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2116),
[#&#8203;2296](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2296))
- The following options have been removed: `WithCustomMapper`,
`WithExperimentalLazyMapper`, `WithLazyDiscovery`, `WithLimiter`.
    -   The `DynamicRESTMapperOption` type has been removed.

#### ✨ New Features

- Add cross-version compatibility with client-go 1.27
([#&#8203;2223](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2223))
- Introduce pprof server to manager
([#&#8203;1943](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1943))
    -   To enable, use `Manager.Options.PprofBindAddress`.
- Added interceptor client to intercept calls to a client
([#&#8203;2248](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2248)
[#&#8203;2306](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2306))
- Add `reconcile.TerminalError(...)`
([#&#8203;2325](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2325))
- By wrapping an error with the above package-level function, the
controller won't retry the request again in an exponential backoff loop.
- The error is logged, and the
`controller_runtime_terminal_reconcile_errors_total` metric is
incremented.

#### 🐛 Bug Fixes

- Use correct context to cancel "list and watch" & wait for all
informers to complete
([#&#8203;2121](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2121))
- Client: use passed in Cache.DisableFor option
([#&#8203;2303](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2303))
- Fix race condition in channel source
([#&#8203;2286](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2286))
- ForceOwnership should work with subresources
([#&#8203;2257](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2257))
- Fix error string in CacheReader.List
([#&#8203;2256](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2256))
- Fix a bug in multinamespaced cache implementation
([#&#8203;2252](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2252))
- Allow lazy restmapper to work with CRDs created at runtime
([#&#8203;2208](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2208))
- Set DeleteStateUnknown in DeleteEvent when obj is
DeletedFinalStateUnknown
([#&#8203;2212](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2212))
- Allow to set GracefulShutdownTimeout to -1, disabling timeouts
([#&#8203;2169](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2169))
- pkg/certwatcher: Start should retry for 10s when adding files
([#&#8203;2160](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2160))
- Don't share error concurrently in test
([#&#8203;2158](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2158))

#### 🌱 Others

- Improve unstructured serialisation
([#&#8203;2147](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2147))
- Handle TLSOpts.GetCertificate in webhook
([#&#8203;2291](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2291))
- Kind source should expose type information on timeout
([#&#8203;2290](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2290))
- Fakeclient: Add support for evictions
([#&#8203;2305](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2305))
- envtest: set default webhook options for polling
([#&#8203;2289](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2289))
- Add client.InNamespace("xyz").AsSelector()
([#&#8203;2282](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2282))
- Update golanci-lint script
([#&#8203;2151](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2151))
- Preserve unstructured object GVKs in cache.Options.ByObject
([#&#8203;2246](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2246))
- Don't call defaultOpts for MultiNamespaceCache twice
([#&#8203;2234](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2234))
- GVKForObject should handle multiple GVKs in Scheme gracefully
([#&#8203;2192](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2192))
- verify.sh: verify generate & modules (in CI)
([#&#8203;2186](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2186))
- code clean for pkg/envtest/server.go
([#&#8203;2180](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2180))
- Return an error if no httpClient is provided for
`NewDynamicRESTMapper`
([#&#8203;2178](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2178))
- Use runtime.Unstructured interface instead of Unstructured struct
([#&#8203;2168](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2168))
- Return an error if no httpClient is provided
([#&#8203;2164](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2164))
- Return the error from rest.HTTPClientFor instead of hiding it
([#&#8203;2161](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2161))
- fix default value for cfg.Burst
([#&#8203;2142](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2142))
- Add more linters
([#&#8203;2133](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2133))
- Remove pkg/patterns
([#&#8203;2132](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2132))
- Further cleanup internal/informers
([#&#8203;2130](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2130))
- Simplify cache.objectTypeForListObject
([#&#8203;2131](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2131))
- Refactor internal cache/informers map impl
([#&#8203;2103](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2103))
- client/cache/client_cache.go should be called resources
([#&#8203;2111](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2111))
- Remove reviewers which are also approvers
([#&#8203;2109](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2109))
- Use HTTPClient to create the API Reader
([#&#8203;2163](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2163))
- Update SECURITY_CONTACTS and maintainer list
([#&#8203;2318](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2318))
- Update builtin webhook paths
([#&#8203;2319](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2319))
- Make metrics and health probe servers be Runnables
([#&#8203;2275](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2275))
- Revert: move health probes to runnable
([#&#8203;2321](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2321))
- Fix comment on MultiNamespaceCache
([#&#8203;2323](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2323))
- Cleanup webhook logging
([#&#8203;2326](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2326))
- Add certwatcher callback
([#&#8203;2301](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2301))
- Fix a bug in multinamespaced cache implementation
([#&#8203;2288](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2288))

#### 🌱 Dependencies

- Bump Go to 1.20
([#&#8203;2279](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2279))
- Bump github.com/go-logr/logr from v1.2.3 to v1.2.4
([#&#8203;2262](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2262))
- Bump github.com/go-logr/zapr from v1.2.3 to v1.2.4
([#&#8203;2320](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2320))
- Bump github.com/onsi/ginkgo/v2 from v2.6.1 to v2.9.5
([#&#8203;2123](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2123)
[#&#8203;2155](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2155)
[#&#8203;2194](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2194)
[#&#8203;2205](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2205)
[#&#8203;2224](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2224)
[#&#8203;2233](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2233)
[#&#8203;2251](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2251)
[#&#8203;2311](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2311)
[#&#8203;2328](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2328))
- Bump github.com/onsi/gomega from v1.24.1 to v1.27.7
([#&#8203;2106](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2106)
[#&#8203;2137](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2137)
[#&#8203;2156](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2156)
[#&#8203;2206](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2206)
[#&#8203;2227](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2227)
[#&#8203;2232](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2232)
[#&#8203;2260](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2260)
[#&#8203;2340](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2340))
- Bump github.com/prometheus/client_golang from v1.14.0 to v1.15.1
([#&#8203;2280](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2280)
[#&#8203;2310](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2310))
- Bump github.com/prometheus/client_model from v0.3.0 to v0.4.0
([#&#8203;2312](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2312))
- Bump go.uber.org/goleak from v1.2.0 to v1.2.1
([#&#8203;2195](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2195))
- Bump golang.org/x/sys from v0.3.0 to v0.8.0
([#&#8203;2124](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2124)
[#&#8203;2225](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2225)
[#&#8203;2270](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2270)
[#&#8203;2309](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2309))
- Bump k8s.io dependencies to 0.27.2
([#&#8203;2145](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2145)
[#&#8203;2330](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2330)
[#&#8203;2333](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2333))
- Bump k8s.io/klog/v2 from v2.80.1 to v2.90.1
([#&#8203;2138](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2138)
[#&#8203;2226](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2226))
- Bump sigs.k8s.io/controller-tools to v0.11.3 and apidiff to v0.5.0
([#&#8203;2187](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2187))
- Use Go 1.19 in golangci-lint action
([#&#8203;2272](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2272))
- Bump golangci-lint to v1.52.1
([#&#8203;2188](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2188)
[#&#8203;2284](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2284))
- Bump kubebuilder-release-tools to v0.3.0
([#&#8203;2126](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2126))

:book: Additionally, there have been 4 contributions to our
documentation and book.
([#&#8203;2203](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2203),
[#&#8203;2201](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2201),
[#&#8203;2162](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2162),
[#&#8203;2170](https://togithub.com/kubernetes-sigs/controller-runtime/issues/2170))

*Thanks to all our contributors!* 😊

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/open-feature/flagd).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45OC40IiwidXBkYXRlZEluVmVyIjoiMzUuOTguNCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored May 24, 2023
1 parent e899435 commit 9490ed6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 11 deletions.
22 changes: 11 additions & 11 deletions core/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ require (
google.golang.org/grpc v1.55.0
google.golang.org/protobuf v1.30.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/apimachinery v0.26.3
k8s.io/client-go v0.26.3
sigs.k8s.io/controller-runtime v0.14.6
k8s.io/apimachinery v0.27.2
k8s.io/client-go v0.27.2
sigs.k8s.io/controller-runtime v0.15.0
)

require (
Expand Down Expand Up @@ -79,7 +79,7 @@ require (
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/common v0.42.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
Expand All @@ -95,17 +95,17 @@ require (
golang.org/x/term v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.7.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
golang.org/x/tools v0.9.1 // indirect
gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
k8s.io/api v0.26.3 // indirect
k8s.io/apiextensions-apiserver v0.26.1 // indirect
k8s.io/component-base v0.26.1 // indirect
k8s.io/klog/v2 v2.90.0 // indirect
k8s.io/kube-openapi v0.0.0-20230217203603-ff9a8e8fa21d // indirect
k8s.io/api v0.27.2 // indirect
k8s.io/apiextensions-apiserver v0.27.2 // indirect
k8s.io/component-base v0.27.2 // indirect
k8s.io/klog/v2 v2.90.1 // indirect
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
Expand Down
21 changes: 21 additions & 0 deletions core/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,8 @@ github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:
github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4=
github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w=
github.com/prometheus/client_model v0.4.0 h1:5lQXD3cAg1OXBf4Wq03gTrXHeaV0TQvGfUooCfx1yqY=
github.com/prometheus/client_model v0.4.0/go.mod h1:oMQmHW1/JoDwqLtg57MGgP/Fb1CJEYF2imWWhWtMkYU=
github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM=
github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc=
github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI=
Expand Down Expand Up @@ -1066,6 +1068,7 @@ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc
golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k=
golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4=
golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s=
golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand All @@ -1076,6 +1079,8 @@ golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNq
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
gomodules.xyz/jsonpatch/v2 v2.2.0 h1:4pT439QV83L+G9FkcCriY6EkpcK6r6bK+A5FBUMI7qY=
gomodules.xyz/jsonpatch/v2 v2.2.0/go.mod h1:WXp+iVDkoLQqPudfQ9GBlwB2eZ5DKOnjQZCYdOS8GPY=
gomodules.xyz/jsonpatch/v2 v2.3.0 h1:8NFhfS6gzxNqjLIYnZxg319wZ5Qjnx4m/CcX+Klzazc=
gomodules.xyz/jsonpatch/v2 v2.3.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY=
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
Expand Down Expand Up @@ -1336,25 +1341,41 @@ honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
k8s.io/api v0.26.3 h1:emf74GIQMTik01Aum9dPP0gAypL8JTLl/lHa4V9RFSU=
k8s.io/api v0.26.3/go.mod h1:PXsqwPMXBSBcL1lJ9CYDKy7kIReUydukS5JiRlxC3qE=
k8s.io/api v0.27.2 h1:+H17AJpUMvl+clT+BPnKf0E3ksMAzoBBg7CntpSuADo=
k8s.io/api v0.27.2/go.mod h1:ENmbocXfBT2ADujUXcBhHV55RIT31IIEvkntP6vZKS4=
k8s.io/apiextensions-apiserver v0.26.1 h1:cB8h1SRk6e/+i3NOrQgSFij1B2S0Y0wDoNl66bn8RMI=
k8s.io/apiextensions-apiserver v0.26.1/go.mod h1:AptjOSXDGuE0JICx/Em15PaoO7buLwTs0dGleIHixSM=
k8s.io/apiextensions-apiserver v0.27.2 h1:iwhyoeS4xj9Y7v8YExhUwbVuBhMr3Q4bd/laClBV6Bo=
k8s.io/apiextensions-apiserver v0.27.2/go.mod h1:Oz9UdvGguL3ULgRdY9QMUzL2RZImotgxvGjdWRq6ZXQ=
k8s.io/apimachinery v0.26.3 h1:dQx6PNETJ7nODU3XPtrwkfuubs6w7sX0M8n61zHIV/k=
k8s.io/apimachinery v0.26.3/go.mod h1:ats7nN1LExKHvJ9TmwootT00Yz05MuYqPXEXaVeOy5I=
k8s.io/apimachinery v0.27.2 h1:vBjGaKKieaIreI+oQwELalVG4d8f3YAMNpWLzDXkxeg=
k8s.io/apimachinery v0.27.2/go.mod h1:XNfZ6xklnMCOGGFNqXG7bUrQCoR04dh/E7FprV6pb+E=
k8s.io/client-go v0.26.3 h1:k1UY+KXfkxV2ScEL3gilKcF7761xkYsSD6BC9szIu8s=
k8s.io/client-go v0.26.3/go.mod h1:ZPNu9lm8/dbRIPAgteN30RSXea6vrCpFvq+MateTUuQ=
k8s.io/client-go v0.27.2 h1:vDLSeuYvCHKeoQRhCXjxXO45nHVv2Ip4Fe0MfioMrhE=
k8s.io/client-go v0.27.2/go.mod h1:tY0gVmUsHrAmjzHX9zs7eCjxcBsf8IiNe7KQ52biTcQ=
k8s.io/component-base v0.26.1 h1:4ahudpeQXHZL5kko+iDHqLj/FSGAEUnSVO0EBbgDd+4=
k8s.io/component-base v0.26.1/go.mod h1:VHrLR0b58oC035w6YQiBSbtsf0ThuSwXP+p5dD/kAWU=
k8s.io/component-base v0.27.2 h1:neju+7s/r5O4x4/txeUONNTS9r1HsPbyoPBAtHsDCpo=
k8s.io/component-base v0.27.2/go.mod h1:5UPk7EjfgrfgRIuDBFtsEFAe4DAvP3U+M8RTzoSJkpo=
k8s.io/klog/v2 v2.90.0 h1:VkTxIV/FjRXn1fgNNcKGM8cfmL1Z33ZjXRTVxKCoF5M=
k8s.io/klog/v2 v2.90.0/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
k8s.io/klog/v2 v2.90.1 h1:m4bYOKall2MmOiRaR1J+We67Do7vm9KiQVlT96lnHUw=
k8s.io/klog/v2 v2.90.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
k8s.io/kube-openapi v0.0.0-20230217203603-ff9a8e8fa21d h1:oFDpQ7FfzinCtrFOl4izwOWsdTprlS2A9IXBENMW0UA=
k8s.io/kube-openapi v0.0.0-20230217203603-ff9a8e8fa21d/go.mod h1:/BYxry62FuDzmI+i9B+X2pqfySRmSOW2ARmj5Zbqhj0=
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f h1:2kWPakN3i/k81b0gvD5C5FJ2kxm1WrQFanWchyKuqGg=
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f/go.mod h1:byini6yhqGC14c3ebc/QwanvYwhuMWF6yz2F8uwW8eg=
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 h1:kmDqav+P+/5e1i9tFfHq1qcF3sOrDp+YEkVDAHu7Jwk=
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/controller-runtime v0.14.6 h1:oxstGVvXGNnMvY7TAESYk+lzr6S3V5VFxQ6d92KcwQA=
sigs.k8s.io/controller-runtime v0.14.6/go.mod h1:WqIdsAY6JBsjfc/CqO0CORmNtoCtE4S6qbPc9s68h+0=
sigs.k8s.io/controller-runtime v0.15.0 h1:ML+5Adt3qZnMSYxZ7gAverBLNPSMQEibtzAgp0UPojU=
sigs.k8s.io/controller-runtime v0.15.0/go.mod h1:7ngYvp1MLT+9GeZ+6lH3LOlcHkp/+tzA/fmHa4iq9kk=
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 h1:PRbqxJClWWYMNV1dhaG4NsibJbArud9kFxnAMREiWFE=
Expand Down

2 comments on commit 9490ed6

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Go Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: 9490ed6 Previous: f932b8f Ratio
BenchmarkResolveBooleanValue/test_staticBoolFlag 3015 ns/op 304 B/op 7 allocs/op 1773 ns/op 304 B/op 7 allocs/op 1.70

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Go Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: 9490ed6 Previous: f932b8f Ratio
BenchmarkResolveBooleanValue/test_staticBoolFlag 3329 ns/op 304 B/op 7 allocs/op 1773 ns/op 304 B/op 7 allocs/op 1.88
BenchmarkResolveBooleanValue/test_targetingBoolFlag 23429 ns/op 5025 B/op 83 allocs/op 14615 ns/op 5025 B/op 83 allocs/op 1.60
BenchmarkResolveBooleanValue/test_staticObjectFlag 2476 ns/op 304 B/op 7 allocs/op 1690 ns/op 304 B/op 7 allocs/op 1.47
BenchmarkResolveBooleanValue/test_missingFlag 2852 ns/op 368 B/op 9 allocs/op 1873 ns/op 368 B/op 9 allocs/op 1.52
BenchmarkResolveBooleanValue/test_disabledFlag 2721 ns/op 368 B/op 9 allocs/op 1841 ns/op 368 B/op 9 allocs/op 1.48
BenchmarkResolveStringValue/test_staticStringFlag 2512 ns/op 336 B/op 9 allocs/op 1832 ns/op 336 B/op 9 allocs/op 1.37
BenchmarkResolveStringValue/test_targetingStringFlag 21326 ns/op 5049 B/op 85 allocs/op 14261 ns/op 5049 B/op 85 allocs/op 1.50
BenchmarkResolveStringValue/test_staticObjectFlag 2168 ns/op 304 B/op 7 allocs/op 1651 ns/op 304 B/op 7 allocs/op 1.31
BenchmarkResolveFloatValue/test:_targetingFloatFlag 18879 ns/op 5049 B/op 85 allocs/op 14245 ns/op 5049 B/op 85 allocs/op 1.33
BenchmarkResolveIntValue/test_targetingNumberFlag 17931 ns/op 5033 B/op 83 allocs/op 13257 ns/op 5033 B/op 83 allocs/op 1.35
BenchmarkResolveIntValue/test_disabledFlag 2378 ns/op 368 B/op 9 allocs/op 1809 ns/op 368 B/op 9 allocs/op 1.31
BenchmarkResolveObjectValue/test_staticObjectFlag 8292 ns/op 1600 B/op 35 allocs/op 5807 ns/op 1600 B/op 35 allocs/op 1.43
BenchmarkResolveObjectValue/test_targetingObjectFlag 27238 ns/op 6314 B/op 107 allocs/op 18658 ns/op 6314 B/op 107 allocs/op 1.46
BenchmarkFlag_Evaluation_ResolveString/happy_path 13457 ns/op 3248 B/op 35 allocs/op 10278 ns/op 3248 B/op 35 allocs/op 1.31
BenchmarkFlag_Evaluation_ResolveInt/happy_path 13751 ns/op 3232 B/op 35 allocs/op 10385 ns/op 3232 B/op 35 allocs/op 1.32
BenchmarkFlag_Evaluation_ResolveObject/happy_path 16707 ns/op 3656 B/op 42 allocs/op 12443 ns/op 3656 B/op 42 allocs/op 1.34

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.