Skip to content

Commit b120cd7

Browse files
chore: External Name support for CertBasedOIDCLogin and KubeConfigGenerator (not applicable)
1 parent 4853fd8 commit b120cd7

5 files changed

Lines changed: 32 additions & 4 deletions

File tree

apis/oidc/v1alpha1/certbasedoidclogin_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ type CertBasedOIDCLoginStatus struct {
7878
// +kubebuilder:object:root=true
7979

8080
// A CertBasedOIDCLogin is a managed resource that represents a OIDC login flow using a certificate for authentication
81+
//
82+
// External-Name Configuration:
83+
// - Follows Standard: no - This resource does not support external name as it does not represent an external resource. Instead of using external name for importing, you can just create an instance of this resource.
84+
// - Format: Not applicable
85+
//
8186
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
8287
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
8388
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"

apis/oidc/v1alpha1/kubeconfiggenerator_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ type KubeConfigGeneratorStatus struct {
6464
// +kubebuilder:object:root=true
6565

6666
// A KubeConfigGenerator is a managed resource that controls the generation of a kubeconfig file
67+
//
68+
// External-Name Configuration:
69+
// - Follows Standard: no - This resource does not support external name as it does not represent an external resource. Instead of using external name for importing, you can just create an instance of this resource.
70+
// - Format: Not applicable
71+
//
6772
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
6873
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
6974
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"

docs/user/external-name.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ metadata.annotations.crossplane.io/external-name: <resource_uniq_ID>
2323

2424
## Generated Data Below
2525

26+
### CertBasedOIDCLogin
27+
28+
- Follows Standard: no - This resource does not support external name as it does not represent an external resource. Instead of using external name for importing, you can just create an instance of this resource.
29+
- Format: Not applicable
30+
2631
### CloudFoundryEnvironment
2732

2833
- Follows Standard: yes
@@ -41,6 +46,11 @@ metadata.annotations.crossplane.io/external-name: <resource_uniq_ID>
4146
- UI: Global Account → Account Explorer → Directories → [Select Directory] → Directory ID
4247
- CLI: btp list accounts/directory (field: guid)
4348

49+
### KubeConfigGenerator
50+
51+
- Follows Standard: no - This resource does not support external name as it does not represent an external resource. Instead of using external name for importing, you can just create an instance of this resource.
52+
- Format: Not applicable
53+
4454
### Subaccount
4555

4656
- Follows Standard: yes

package/crds/oidc.btp.sap.crossplane.io_certbasedoidclogins.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ spec:
3434
name: v1alpha1
3535
schema:
3636
openAPIV3Schema:
37-
description: A CertBasedOIDCLogin is a managed resource that represents a
38-
OIDC login flow using a certificate for authentication
37+
description: |-
38+
A CertBasedOIDCLogin is a managed resource that represents a OIDC login flow using a certificate for authentication
39+
40+
External-Name Configuration:
41+
- Follows Standard: no - This resource does not support external name as it does not represent an external resource. Instead of using external name for importing, you can just create an instance of this resource.
42+
- Format: Not applicable
3943
properties:
4044
apiVersion:
4145
description: |-

package/crds/oidc.btp.sap.crossplane.io_kubeconfiggenerators.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ spec:
3434
name: v1alpha1
3535
schema:
3636
openAPIV3Schema:
37-
description: A KubeConfigGenerator is a managed resource that controls the
38-
generation of a kubeconfig file
37+
description: |-
38+
A KubeConfigGenerator is a managed resource that controls the generation of a kubeconfig file
39+
40+
External-Name Configuration:
41+
- Follows Standard: no - This resource does not support external name as it does not represent an external resource. Instead of using external name for importing, you can just create an instance of this resource.
42+
- Format: Not applicable
3943
properties:
4044
apiVersion:
4145
description: |-

0 commit comments

Comments
 (0)