Skip to content

Commit 7ae99db

Browse files
committed
add apiVersion and identityHash to pubres CRD
On-behalf-of: @SAP christoph.mewes@sap.com
1 parent 6b75d0a commit 7ae99db

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

deploy/crd/kcp.io/syncagent.kcp.io_publishedresources.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,21 @@ spec:
351351
related:
352352
items:
353353
properties:
354+
apiVersion:
355+
description: APIVersion is the API group and version of the related resource.
356+
type: string
354357
identifier:
355358
description: |-
356359
Identifier is a unique name for this related resource. The name must be unique within one
357360
PublishedResource and is the key by which consumers (end users) can identify and consume the
358361
related resource. Common names are "connection-details" or "credentials".
359362
The identifier must be an alphanumeric string.
360363
type: string
364+
identityHash:
365+
description: |-
366+
IdentityHash is the identity hash of a kcp APIExport, in case the given Kind is
367+
provided by an APIExport and not Kube-native.
368+
type: string
361369
kind:
362370
description: ConfigMap or Secret
363371
type: string
@@ -687,6 +695,7 @@ spec:
687695
- kcp
688696
type: string
689697
required:
698+
- apiVersion
690699
- identifier
691700
- kind
692701
- object

sdk/apis/syncagent/v1alpha1/published_resource.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,16 @@ type RelatedResourceSpec struct {
199199
// +kubebuilder:validation:Enum=service;kcp
200200
Origin RelatedResourceOrigin `json:"origin"`
201201

202+
// APIVersion is the API group and version of the related resource.
203+
APIVersion string `json:"apiVersion"`
204+
202205
// ConfigMap or Secret
203206
Kind string `json:"kind"`
204207

208+
// IdentityHash is the identity hash of a kcp APIExport, in case the given Kind is
209+
// provided by an APIExport and not Kube-native.
210+
IdentityHash string `json:"identityHash,omitempty"`
211+
205212
// Object describes how the related resource can be found on the origin side
206213
// and where it is to supposed to be created on the destination side.
207214
Object RelatedResourceObject `json:"object"`

sdk/applyconfiguration/syncagent/v1alpha1/relatedresourcespec.go

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

0 commit comments

Comments
 (0)