Skip to content

Commit 0d71847

Browse files
committed
ApplicationCredential Additional Documentation
On-behalf-of: SAP nils.gondermann@sap.com
1 parent b99b15d commit 0d71847

5 files changed

Lines changed: 13 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ kubectl delete -f $ORC_RELEASE
7373

7474
| **controller** | **1.x** | **2.x** | **main** |
7575
|:---------------------------:|:-------:|:-------:|:--------:|
76+
| application credential | |||
7677
| addressscope | |||
7778
| domain | |||
7879
| endpoint | |||

api/v1alpha1/applicationcredential_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ type ApplicationCredentialResourceSpec struct {
6565
Description *string `json:"description,omitempty"`
6666

6767
// userRef is a reference to the ORC User which this resource is associated with.
68+
// Note: Due to the nature of the OpenStack API, managing application credentials for a user different than the one ORC is authenticated against can be computationally expensive. In the worst case, all application credentials of all users have to be queried.
6869
// +required
6970
UserRef KubernetesNameRef `json:"userRef,omitempty"`
7071

@@ -105,6 +106,7 @@ type ApplicationCredentialSecretSpec struct {
105106
// +kubebuilder:validation:MinProperties:=2
106107
type ApplicationCredentialFilter struct {
107108
// userRef is a reference to the ORC User which this resource is associated with.
109+
// Note: Due to the nature of the OpenStack API, managing application credentials for a user different than the one ORC is authenticated against can be computationally expensive. In the worst case, all application credentials of all users have to be queried.
108110
// +required
109111
UserRef KubernetesNameRef `json:"userRef,omitempty"`
110112

cmd/models-schema/zz_generated.openapi.go

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

config/crd/bases/openstack.k-orc.cloud_applicationcredentials.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ spec:
102102
pattern: ^[^,]+$
103103
type: string
104104
userRef:
105-
description: userRef is a reference to the ORC User which
106-
this resource is associated with.
105+
description: |-
106+
userRef is a reference to the ORC User which this resource is associated with.
107+
Note: Due to the nature of the OpenStack API, managing application credentials for a user different than the one ORC is authenticated against can be computationally expensive. In the worst case, all application credentials of all users have to be queried.
107108
maxLength: 253
108109
minLength: 1
109110
type: string
@@ -245,8 +246,9 @@ spec:
245246
application credentials or trusts
246247
type: boolean
247248
userRef:
248-
description: userRef is a reference to the ORC User which this
249-
resource is associated with.
249+
description: |-
250+
userRef is a reference to the ORC User which this resource is associated with.
251+
Note: Due to the nature of the OpenStack API, managing application credentials for a user different than the one ORC is authenticated against can be computationally expensive. In the worst case, all application credentials of all users have to be queried.
250252
maxLength: 253
251253
minLength: 1
252254
type: string

website/docs/crd-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ _Appears in:_
328328

329329
| Field | Description | Default | Validation |
330330
| --- | --- | --- | --- |
331-
| `userRef` _[KubernetesNameRef](#kubernetesnameref)_ | userRef is a reference to the ORC User which this resource is associated with. | | MaxLength: 253 <br />MinLength: 1 <br />Required: \{\} <br /> |
331+
| `userRef` _[KubernetesNameRef](#kubernetesnameref)_ | userRef is a reference to the ORC User which this resource is associated with.<br />Note: Due to the nature of the OpenStack API, managing application credentials for a user different than the one ORC is authenticated against can be computationally expensive. In the worst case, all application credentials of all users have to be queried. | | MaxLength: 253 <br />MinLength: 1 <br />Required: \{\} <br /> |
332332
| `name` _[OpenStackName](#openstackname)_ | name of the existing resource | | MaxLength: 255 <br />MinLength: 1 <br />Pattern: `^[^,]+$` <br />Optional: \{\} <br /> |
333333
| `description` _string_ | description of the existing resource | | MaxLength: 1024 <br />Optional: \{\} <br /> |
334334

@@ -368,7 +368,7 @@ _Appears in:_
368368
| --- | --- | --- | --- |
369369
| `name` _[OpenStackName](#openstackname)_ | name will be the name of the created resource. If not specified, the<br />name of the ORC object will be used. | | MaxLength: 255 <br />MinLength: 1 <br />Pattern: `^[^,]+$` <br />Optional: \{\} <br /> |
370370
| `description` _string_ | description is a human-readable description for the resource. | | MaxLength: 255 <br />MinLength: 1 <br />Optional: \{\} <br /> |
371-
| `userRef` _[KubernetesNameRef](#kubernetesnameref)_ | userRef is a reference to the ORC User which this resource is associated with. | | MaxLength: 253 <br />MinLength: 1 <br />Required: \{\} <br /> |
371+
| `userRef` _[KubernetesNameRef](#kubernetesnameref)_ | userRef is a reference to the ORC User which this resource is associated with.<br />Note: Due to the nature of the OpenStack API, managing application credentials for a user different than the one ORC is authenticated against can be computationally expensive. In the worst case, all application credentials of all users have to be queried. | | MaxLength: 253 <br />MinLength: 1 <br />Required: \{\} <br /> |
372372
| `unrestricted` _boolean_ | unrestricted is a flag indicating whether the application credential may be used for creation or destruction of other application credentials or trusts | | Optional: \{\} <br /> |
373373
| `secret` _[ApplicationCredentialSecretSpec](#applicationcredentialsecretspec)_ | secret used to authenticate against the API | | MaxProperties: 1 <br />MinProperties: 1 <br />Required: \{\} <br /> |
374374
| `roleRefs` _[KubernetesNameRef](#kubernetesnameref) array_ | roleRefs may only contain roles that the user has assigned on the project. If not provided, the roles assigned to the application credential will be the same as the roles in the current token. | | MaxItems: 256 <br />MaxLength: 253 <br />MinLength: 1 <br />Optional: \{\} <br /> |

0 commit comments

Comments
 (0)