Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hub/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewPool(kvFactory func() KV) (*Pool, error) {
// in-flight goroutines release it — but any work it had buffered
// (e.g. recent RegisterGVR calls) is gone, so frequent evictions are
// worth surfacing.
cache, err := lru.NewWithEvict(PoolSize, func(key, _ interface{}) {
cache, err := lru.NewWithEvict(PoolSize, func(key, _ any) {
klog.V(2).InfoS("evicted cluster registry from pool", "uid", key)
})
if err != nil {
Expand Down
13,468 changes: 13,468 additions & 0 deletions hub/resourcedescriptors/archiver.kubedb.com/v1alpha1/clickhousearchivers.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ spec:
- IfReady
- Always
type: string
maxRetries:
default: 1
format: int32
type: integer
timeout:
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ spec:
- IfReady
- Always
type: string
maxRetries:
default: 1
format: int32
type: integer
timeout:
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
apiVersion: meta.k8s.appscode.com/v1alpha1
kind: ResourceDescriptor
metadata:
labels:
k8s.io/group: autoscaling.kubedb.com
k8s.io/kind: DocumentDBAutoscaler
k8s.io/resource: documentdbautoscalers
k8s.io/version: v1alpha1
name: autoscaling.kubedb.com-v1alpha1-documentdbautoscalers
spec:
resource:
group: autoscaling.kubedb.com
kind: DocumentDBAutoscaler
name: documentdbautoscalers
scope: Namespaced
version: v1alpha1
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
properties:
name:
description: 'Name must be unique within a namespace. Is required when
creating resources, although some resources may allow a client to
request the generation of an appropriate name automatically. Name
is primarily intended for creation idempotence and configuration definition.
Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
type: string
namespace:
description: "Namespace defines the space within which each name must
be unique. An empty namespace is equivalent to the \"default\" namespace,
but \"default\" is the canonical representation. Not all objects are
required to be scoped to a namespace - the value of this field for
those objects will be empty. \n Must be a DNS_LABEL. Cannot be updated.
More info: http://kubernetes.io/docs/user-guide/namespaces"
type: string
labels:
additionalProperties:
type: string
description: 'Map of string keys and values that can be used to organize
and categorize (scope and select) objects. May match selectors of
replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels'
type: object
annotations:
additionalProperties:
type: string
description: 'Annotations is an unstructured key value map stored with
a resource that may be set by external tools to store and retrieve
arbitrary metadata. They are not queryable and should be preserved
when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations'
type: object
type: object
spec:
properties:
compute:
properties:
documentdb:
properties:
containerControlledValues:
enum:
- RequestsAndLimits
- RequestsOnly
type: string
controlledResources:
items:
type: string
type: array
inMemoryStorage:
properties:
scalingFactorPercentage:
format: int32
type: integer
usageThresholdPercentage:
format: int32
type: integer
type: object
maxAllowed:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
minAllowed:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
podLifeTimeThreshold:
type: string
resourceDiffPercentage:
format: int32
type: integer
trigger:
type: string
type: object
nodeTopology:
properties:
name:
type: string
scaleDownDiffPercentage:
default: 25
format: int32
type: integer
scaleUpDiffPercentage:
default: 15
format: int32
type: integer
type: object
type: object
databaseRef:
properties:
name:
default: ""
type: string
type: object
x-kubernetes-map-type: atomic
opsRequestOptions:
properties:
apply:
default: IfReady
enum:
- IfReady
- Always
type: string
timeout:
type: string
type: object
storage:
properties:
documentdb:
properties:
expansionMode:
enum:
- Offline
- Online
type: string
scalingRules:
items:
properties:
appliesUpto:
type: string
threshold:
type: string
required:
- appliesUpto
- threshold
type: object
type: array
scalingThreshold:
format: int32
type: integer
trigger:
type: string
upperBound:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
usageThreshold:
format: int32
type: integer
required:
- expansionMode
type: object
type: object
required:
- databaseRef
type: object
type: object
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ spec:
- IfReady
- Always
type: string
maxRetries:
default: 1
format: int32
type: integer
timeout:
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@ spec:
- IfReady
- Always
type: string
maxRetries:
default: 1
format: int32
type: integer
readinessCriteria:
type: object
timeout:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ spec:
- IfReady
- Always
type: string
maxRetries:
default: 1
format: int32
type: integer
timeout:
type: string
type: object
Expand Down
Loading
Loading