KubernetesStoreParameters
Class: KubernetesStoreParameters
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:33
Kubernetes store parameters
Extends
StoreParameters
Implements
Constructors
Constructor
new KubernetesStoreParameters():
KubernetesStoreParameters
Returns
KubernetesStoreParameters
Inherited from
StoreParameters.constructor
Properties
aggregationFallback?
optionalaggregationFallback?:"allow"|"warn"|"deny"
Defined in: core/lib/stores/store.d.ts:239
What to do when an aggregation on this store cannot run natively and must stream every matching object through memory
Default
"warn"
Inherited from
StoreParameters.aggregationFallback
config?
optionalconfig?:string|K8sConfiguration
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:40
Kubernetes configuration, the pod's service account or the local kubeconfig when unset
Can be encrypted with webda config encrypt
Secret
users.token,users.password,users.keyData,users.authProvider
Implementation of
context?
optionalcontext?:string
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:44
Kubernetes context to use
Implementation of
group
group:
string
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:53
API group of the custom resources, e.g. myapp.example.com
installCrds?
optionalinstallCrds?:boolean
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:82
Create or update the CustomResourceDefinitions at init, needs the rights on
customresourcedefinitions.apiextensions.k8s.io
Default
false
labelFields?
optionallabelFields?:Record<string,string[]>
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:72
Fields mirrored as labels, by model identifier: queries with = or IN on them are filtered by the API server
maxGroups?
optionalmaxGroups?:number
Defined in: core/lib/stores/store.d.ts:246
Maximum number of groups an aggregation may produce without LIMIT (or in memory)
Minimum
1
Default
10000
Inherited from
StoreParameters.maxGroups
maxRetries?
optionalmaxRetries?:number
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:87
Attempts of a read-modify-write before giving up on conflicts
Default
5
models?
optionalmodels?:string[]
Defined in: core/lib/stores/store.d.ts:204
Models managed by this Store.
Default
["Webda/RegistryEntry"]
Inherited from
StoreParameters.models
namespace?
optionalnamespace?:string
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:63
Namespace of the custom resources, ignored when the scope is Cluster
Default
"default"
noCache?
optionalnoCache?:boolean
Defined in: core/lib/stores/store.d.ts:265
Disable default memory cache
Inherited from
StoreParameters.noCache
scope?
optionalscope?:"Namespaced"|"Cluster"
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:68
Scope of the custom resources
Default
"Namespaced"
slowQueryLogLevel?
optionalslowQueryLogLevel?:WorkerLogLevel
Defined in: core/lib/stores/store.d.ts:226
Log level used for slow queries
Default
"WARN"
Inherited from
StoreParameters.slowQueryLogLevel
slowQueryMaxLength?
optionalslowQueryMaxLength?:number
Defined in: core/lib/stores/store.d.ts:232
Maximum length of the query string written to logs / events (longer queries are truncated)
Default
1024
Inherited from
StoreParameters.slowQueryMaxLength
slowQueryThreshold?
optionalslowQueryThreshold?:number
Defined in: core/lib/stores/store.d.ts:220
Duration in ms above which a query is considered slow. Set to 0 to disable slow query detection.
Default
30000
Inherited from
StoreParameters.slowQueryThreshold
statusFields?
optionalstatusFields?:Record<string,string[]>
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:76
Fields stored in the status, by model identifier: written through the status subresource
strict?
optionalstrict?:boolean
Defined in: core/lib/stores/store.d.ts:213
Allow to load object that does not have the type data
If set to true, then the Store will only managed the defined _model and no model extending this one
Default
false
Inherited from
StoreParameters.strict
timeout?
optionaltimeout?:number
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:49
Milliseconds before a request to the Kubernetes API is aborted
Default
10000
Implementation of
type
type:
string
Defined in: core/lib/services/serviceparameters.d.ts:9
Type of the service
Inherited from
StoreParameters.type
typeCheck?
optionaltypeCheck?:object
Defined in: core/lib/stores/store.d.ts:250
Startup check of the stored types: one WARN listing the legacy, untyped and unknown types found
enabled?
optionalenabled?:boolean
Default
true
maxRows?
optionalmaxRows?:number
Rows scanned at most by stores without a native count; beyond, the counts are "at least"
Default
10000
Inherited from
StoreParameters.typeCheck
version?
optionalversion?:string
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:58
API version of the custom resources
Default
"v1"
watch?
optionalwatch?:boolean
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:93
Watch the resources and emit the repository events (Created, Updated, Deleted) of the changes made by others
than this process: kubectl, GitOps, another replica
Default
false
Methods
load()
load(
params?):this
Defined in: kubernetes/src/stores/kubernetesstore.service.ts:100
Parameters
params?
any = {}
raw parameters
Returns
this
this
Overrides
StoreParameters.load
update()
update(
params,delta):this
Defined in: core/lib/application/parameters.d.ts:21
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
StoreParameters.update
with()
with(
callback):this
Defined in: core/lib/application/parameters.d.ts:27
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining
Inherited from
StoreParameters.with