Skip to content

Commit 5e8d9e2

Browse files
committed
rename ref field from Configuration to Name
On-behalf-of: @SAP [email protected]
1 parent 32a630f commit 5e8d9e2

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

config/crds/tenancy.kcp.io_workspacetypes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ spec:
6464
description: AuthenticationConfigurationReference provides the fields
6565
necessary to resolve a WorkspaceAuthenticationConfiguration.
6666
properties:
67-
configuration:
68-
description: configuration is the name of the WorkspaceAuthenticationConfiguration.
67+
name:
68+
description: name is the name of the WorkspaceAuthenticationConfiguration.
6969
type: string
7070
required:
71-
- configuration
71+
- name
7272
type: object
7373
type: array
7474
defaultAPIBindingLifecycle:

config/root-phase0/apiexport-tenancy.kcp.io.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
crd: {}
2020
- group: tenancy.kcp.io
2121
name: workspacetypes
22-
schema: v250725-9ac3dc4fe.workspacetypes.tenancy.kcp.io
22+
schema: v250806-4c99c4583.workspacetypes.tenancy.kcp.io
2323
storage:
2424
crd: {}
2525
status: {}

config/root-phase0/apiresourceschema-workspacetypes.tenancy.kcp.io.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apis.kcp.io/v1alpha1
22
kind: APIResourceSchema
33
metadata:
44
creationTimestamp: null
5-
name: v250725-9ac3dc4fe.workspacetypes.tenancy.kcp.io
5+
name: v250806-4c99c4583.workspacetypes.tenancy.kcp.io
66
spec:
77
group: tenancy.kcp.io
88
names:
@@ -62,11 +62,11 @@ spec:
6262
description: AuthenticationConfigurationReference provides the fields
6363
necessary to resolve a WorkspaceAuthenticationConfiguration.
6464
properties:
65-
configuration:
66-
description: configuration is the name of the WorkspaceAuthenticationConfiguration.
65+
name:
66+
description: name is the name of the WorkspaceAuthenticationConfiguration.
6767
type: string
6868
required:
69-
- configuration
69+
- name
7070
type: object
7171
type: array
7272
defaultAPIBindingLifecycle:

pkg/authentication/index.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (c *state) UpsertWorkspaceType(shard string, wst *tenancyv1alpha1.Workspace
8181
for _, authConfig := range wst.Spec.AuthenticationConfigurations {
8282
authenticators = append(authenticators, authenticatorKey{
8383
cluster: clusterName,
84-
name: authConfig.Configuration,
84+
name: authConfig.Name,
8585
})
8686
}
8787

pkg/openapi/zz_generated.openapi.go

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

sdk/apis/tenancy/v1alpha1/types_workspacetype.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ type APIExportReference struct {
155155

156156
// AuthenticationConfigurationReference provides the fields necessary to resolve a WorkspaceAuthenticationConfiguration.
157157
type AuthenticationConfigurationReference struct {
158-
// configuration is the name of the WorkspaceAuthenticationConfiguration.
158+
// name is the name of the WorkspaceAuthenticationConfiguration.
159159
//
160160
// +required
161161
// +kubebuilder:validation:Required
162162
// +kube:validation:MinLength=1
163-
Configuration string `json:"configuration"`
163+
Name string `json:"name"`
164164
}
165165

166166
// APIBindingLifecycleMode defines how the lifecycle of an APIBinding is

sdk/client/applyconfiguration/tenancy/v1alpha1/authenticationconfigurationreference.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.

test/e2e/authentication/workspace_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func TestWorkspaceOIDC(t *testing.T) {
8181
},
8282
Spec: tenancyv1alpha1.WorkspaceTypeSpec{
8383
AuthenticationConfigurations: []tenancyv1alpha1.AuthenticationConfigurationReference{{
84-
Configuration: authConfig.Name,
84+
Name: authConfig.Name,
8585
}},
8686
},
8787
}

0 commit comments

Comments
 (0)