Skip to content

Conversation

@addisonj
Copy link

@addisonj addisonj commented Oct 16, 2019

These commits are everything that I have fixed over the last few weeks...

All of these commits have changes open upstream:

Addison Higham added 5 commits October 11, 2019 11:34
Fixes apache#5360

This adds a small cache of the request body to ensure that it can be
re-sent.

TODO: still needs tested
This commit adds a new argument for functions, customRuntimeOptions, which is passed to
funcions (as well as sources/sinks) that enables the ability to
customize the runtime.

This is added primarily to support the `KubernetesManifestCustomizer`
interface. This interface has a default implementation, which allows for
changing the namespace, labels, and annotations per function.

This interface is also pluggable, allowing for more customizable
implementations. For example, the functions for a given tenant could be
mapped to different pools of compute for isolation.
Currently, if a user has TLS enabled and is using a custom CA that isn't
baked into the image, when the functions worker starts, it won't have
the CA in order to validate the cert presented by the broker.

This adds support to have  the `KubernetesSecretsTokenAuthProvider`
also distribute the CA via the same kubernetes secret used for the
token.

a thing
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Addison Higham seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@addisonj addisonj changed the title Functions worker improvements Multiple patches for fixes to pulsar Oct 16, 2019
public KubernetesSecretsTokenAuthProvider(CoreV1Api coreClient, String kubeNamespace, byte[] caBytes) {
this.coreClient = coreClient;
this.kubeNamespace = kubeNamespace;
this.caBytes = caBytes;
Copy link

Choose a reason for hiding this comment

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

This is a nice workaround. Custom baking images with the CA would have been a pain.

@addisonj addisonj merged commit 13b2226 into inst-branch-2.4 Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants