public class BasicKubernetesManifestCustomizer extends Object implements KubernetesManifestCustomizer
KubernetesManifestCustomizer that allows
for some basic customization of namespace, labels, annotations, node selectors,
and tolerations.
With the right RBAC permissions for the functions worker, these should be safe to
modify (for example, a service account must have permissions in the specified jobNamespace)| Modifier and Type | Class and Description |
|---|---|
static class |
BasicKubernetesManifestCustomizer.RuntimeOpts |
| Constructor and Description |
|---|
BasicKubernetesManifestCustomizer() |
| Modifier and Type | Method and Description |
|---|---|
String |
customizeName(org.apache.pulsar.functions.proto.Function.FunctionDetails funcDetails,
String currentName) |
String |
customizeNamespace(org.apache.pulsar.functions.proto.Function.FunctionDetails funcDetails,
String currentNamespace) |
io.kubernetes.client.openapi.models.V1Service |
customizeService(org.apache.pulsar.functions.proto.Function.FunctionDetails funcDetails,
io.kubernetes.client.openapi.models.V1Service service) |
io.kubernetes.client.openapi.models.V1StatefulSet |
customizeStatefulSet(org.apache.pulsar.functions.proto.Function.FunctionDetails funcDetails,
io.kubernetes.client.openapi.models.V1StatefulSet statefulSet) |
void |
initialize(Map<String,Object> config) |
static BasicKubernetesManifestCustomizer.RuntimeOpts |
mergeRuntimeOpts(BasicKubernetesManifestCustomizer.RuntimeOpts oriOpts,
BasicKubernetesManifestCustomizer.RuntimeOpts newOpts) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRuntimeCustomizerpublic void initialize(Map<String,Object> config)
initialize in interface RuntimeCustomizerpublic String customizeNamespace(org.apache.pulsar.functions.proto.Function.FunctionDetails funcDetails, String currentNamespace)
customizeNamespace in interface KubernetesManifestCustomizerpublic String customizeName(org.apache.pulsar.functions.proto.Function.FunctionDetails funcDetails, String currentName)
customizeName in interface KubernetesManifestCustomizerpublic io.kubernetes.client.openapi.models.V1Service customizeService(org.apache.pulsar.functions.proto.Function.FunctionDetails funcDetails, io.kubernetes.client.openapi.models.V1Service service)
customizeService in interface KubernetesManifestCustomizerpublic io.kubernetes.client.openapi.models.V1StatefulSet customizeStatefulSet(org.apache.pulsar.functions.proto.Function.FunctionDetails funcDetails, io.kubernetes.client.openapi.models.V1StatefulSet statefulSet)
customizeStatefulSet in interface KubernetesManifestCustomizerpublic static BasicKubernetesManifestCustomizer.RuntimeOpts mergeRuntimeOpts(BasicKubernetesManifestCustomizer.RuntimeOpts oriOpts, BasicKubernetesManifestCustomizer.RuntimeOpts newOpts)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.