Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Conversation

@mheese
Copy link

@mheese mheese commented Jan 25, 2020

Merging upstream master

k8s-ci-robot and others added 30 commits June 27, 2019 17:11
✨ enable conversion webhook in webhook builder
🐛 fix runnable run twice issue
✨ add GetConfigWithContext to retrieve a config with a specific context
IsConvertible used to use obj.GetObjectKind().GroupVersionKind() to get
GVK which will not work if apiVersion and kind fields are not set. Now
it uses scheme.ObjectKinds(obj).
🐛 IsConvertible should not error on uninitialized struct.
⚠️ metrics are now on by default
🐛 Remove unused disableWebhookConfigInstaller flag
Logging the whole CRD resource is incredibly verbose as it includes every description of every field in the OpenAPI schema.
While the concrete Options struct documents delegating behavior, and the
main overview documents it as well, this adds a note to manager#GetClient
that it may return a non-live client, just to avoid confusion.
📖 Note on Manager#GetClient about delegating clients
- Currently validator interface supports create and update
- Add support for delete as well, which could be a breaking change
- Users need to implement ValidateDelete since interface is updated
When user tries to decode an object, it should always not be empty. This
error gives people hints when they running into this kind of issues. e.g.
kube-apiserver doesn't include the object in the admission review for
deletion events.
✨ decoder now errors out when encountering an empty runtime.RawExtension
We now use https://golang.org/pkg/os/#TempDir to get the os specific
temp dir. Otherwise, it won't work for Windows users.
⚠️ support delete validation in validator interface
These behave more-or-less like functional options, except that a given
option can be applied to more than on option type, so we can deprecate
the 3 different dryrunall variants.

Things with arguments generally become type aliases, with the exception
of MatchingField, which gets deprecated in favor of MatchFields (a type
alias to fields.Set).
For field manager, update and create also support fieldmanager, so we
allow using them there.

For dryrun, it's also supported by delete, so we support setting it
there.
🐛 stop using hardcoded temp dir
…error-message

🐛 fix grammer of error in SetControllerReference
k8s-ci-robot and others added 29 commits January 6, 2020 15:06
🏃 Remove usage of deprecated MatchingField list option
✨ Add Merge patch type and deprecate ConstantPatch in favor of RawPatch
There is currently an unintuitive race condition between starting
a cache, waiting for it to sync, and using it the first time.

The crux of the problem is that WaitForCacheSync can return true
BEFORE the Start function has had a chance to set started to true.

This means that Get and List can return ErrCacheNotStarted even
after WaitForCacheSync has returned true.

This commit adds a channel and a wait function that is called from
WaitForCacheSync to ensure that started has been set to true before
returning.
📖 Rename "object" to "owned" to match godoc comment.
📖 docs: document the expected names of the TLS key and certificate
🐛 wait for cache start before returning from WaitForCacheSync
A user may want to use different names for server key/cert, for
example, if it's using the client-go cert manager util, the
certificate is just a unify pem file with both on it.

Signed-off-by: Quique Llorente <[email protected]>
The log message that used this was removed in this commit 0f2e574#r36915807
 📖 (:book:, docs) Remove references to 'download-binaries.sh'
🏃 Remove unused variable from IsConvertible
⚠ Add testenv support for CRDv1/CRDv1beta1 + update to k8s 1.16.4
🏃 (:running:, other) Fix makefile and docs for running tests
Add 'alenkacz' as reviewer
@mheese mheese merged commit c51adc5 into aporeto-inc:master Jan 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.