Skip to content

Commit 0974de9

Browse files
committed
codegen
On-behalf-of: @SAP christoph.mewes@sap.com
1 parent 09bf1b9 commit 0974de9

File tree

9 files changed

+204
-69
lines changed

9 files changed

+204
-69
lines changed

config/crd/bases/operator.kcp.io_rootshards.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,10 @@ spec:
259259
API) used by a sharded kcp instance.
260260
properties:
261261
embedded:
262-
description: Embedded configures settings for starting the cache
263-
server embedded in the root shard.
262+
description: |-
263+
Embedded configures settings for starting the cache server embedded in the root shard.
264+
265+
Deprecated: Embedded cache is always enabled unless a reference to an external cache is given.
264266
properties:
265267
enabled:
266268
description: Enabled enables or disables running the cache
@@ -269,6 +271,22 @@ spec:
269271
required:
270272
- enabled
271273
type: object
274+
ref:
275+
description: |-
276+
Reference references a local CacheServer object. If not configured, the embedded cache will be
277+
enabled by default instead.
278+
properties:
279+
name:
280+
default: ""
281+
description: |-
282+
Name of the referent.
283+
This field is effectively required, but due to backwards compatibility is
284+
allowed to be empty. Instances of this type with an empty value here are
285+
almost certainly wrong.
286+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
287+
type: string
288+
type: object
289+
x-kubernetes-map-type: atomic
272290
type: object
273291
certificateTemplates:
274292
additionalProperties:

config/crd/bases/operator.kcp.io_shards.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,26 @@ spec:
254254
type: string
255255
type: object
256256
x-kubernetes-map-type: atomic
257+
cache:
258+
description: |-
259+
Optional: Configure an external cache server for this shard. If not configured, the cache
260+
settings of the RootShard will be used.
261+
properties:
262+
ref:
263+
description: Reference references a local CacheServer object.
264+
properties:
265+
name:
266+
default: ""
267+
description: |-
268+
Name of the referent.
269+
This field is effectively required, but due to backwards compatibility is
270+
allowed to be empty. Instances of this type with an empty value here are
271+
almost certainly wrong.
272+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
273+
type: string
274+
type: object
275+
x-kubernetes-map-type: atomic
276+
type: object
257277
certificateTemplates:
258278
additionalProperties:
259279
properties:

sdk/apis/operator/v1alpha1/zz_generated.deepcopy.go

Lines changed: 50 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/operator/v1alpha1/cacheconfig.go

Lines changed: 0 additions & 39 deletions
This file was deleted.

sdk/applyconfiguration/operator/v1alpha1/rootshardcacheconfig.go

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/operator/v1alpha1/rootshardspec.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/operator/v1alpha1/shardcacheconfig.go

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/operator/v1alpha1/shardspec.go

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/applyconfiguration/utils.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)