Skip to content

Commit f90b61c

Browse files
committed
ApplicationCredential Additional Documentation
On-behalf-of: SAP nils.gondermann@sap.com
1 parent 4dc44b6 commit f90b61c

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

@@ -97,6 +98,7 @@ type ApplicationCredentialResourceSpec struct {
9798
// +kubebuilder:validation:MinProperties:=2
9899
type ApplicationCredentialFilter struct {
99100
// userRef is a reference to the ORC User which this resource is associated with.
101+
// 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.
100102
// +required
101103
UserRef KubernetesNameRef `json:"userRef,omitempty"`
102104

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
@@ -237,8 +238,9 @@ spec:
237238
application credentials or trusts
238239
type: boolean
239240
userRef:
240-
description: userRef is a reference to the ORC User which this
241-
resource is associated with.
241+
description: |-
242+
userRef is a reference to the ORC User which this resource is associated with.
243+
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.
242244
maxLength: 253
243245
minLength: 1
244246
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
| `secretRef` _[KubernetesNameRef](#kubernetesnameref)_ | secretRef is a reference to a Secret containing the application credential secret | | MaxLength: 253 <br />MinLength: 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)