Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCM-6419 | feat: add OidcThumbprint / OidcThumbprintInput to support thumbprints #968

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

This document describes the relevant changes between releases of the API model.

## 0.0.388 Aug 06 2024
- Add 'OidcThumbprint' type model to v1 and v2alpha1
- Add 'OidcThumbprintInput' type model to v1 and v2alpha1
- Add 'OidcThumbprint' resource model to v1 and v2alpha1

## 0.0.387 Aug 05 2024
- Add `ProjectNumber` field to `WifConfig` model

Expand Down
5 changes: 5 additions & 0 deletions model/clusters_mgmt/v1/aws_inquiries_resource.model
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@ resource AWSInquiries {
locator ValidateCredentials {
target AwsValidateCredentials
}

// Reference to the resource that manages OIDC Config Thumbprint fetching.
locator OidcThumbprint {
target OidcThumbprint
}
}
25 changes: 25 additions & 0 deletions model/clusters_mgmt/v1/oidc_thumbprint_input_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
Copyright (c) 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Contains the necessary attributes to fetch an OIDC Configuration thumbprint
struct OidcThumbprintInput {

// OidcConfigId is the ID for the oidc config used, exclusive from ClusterId.
OidcConfigId String

// ClusterId is the for the cluster used, exclusive from OidcConfigId.
ClusterId String
}
24 changes: 24 additions & 0 deletions model/clusters_mgmt/v1/oidc_thumbprint_resource.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
Copyright (c) 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Manages an Oidc Config Thumbprint configuration.
resource OidcThumbprint {
// Fetches/creates an OIDC Config Thumbprint from either a cluster ID, or an oidc config ID.
method Post {
out Body OidcThumbprint
in Body OidcThumbprintInput
}
}
34 changes: 34 additions & 0 deletions model/clusters_mgmt/v1/oidc_thumbprint_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
Copyright (c) 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Contains the necessary attributes to support oidc configuration thumbprint operations such as fetching/creation of a thumbprint
struct OidcThumbprint {

// OidcConfigId is the ID for the oidc config used, filled in response.
OidcConfigId String

// ClusterId is the for the cluster used, filled in response.
ClusterId String

// Thumbprint is the thumbprint itself, filled in response.
Thumbprint String

// HREF for the oidc config thumbprint, filled in response.
HREF String

// Kind is the resource type, filled in response.
Kind String
}
5 changes: 5 additions & 0 deletions model/clusters_mgmt/v2alpha1/aws_inquiries_resource.model
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@ resource AWSInquiries {
locator ValidateCredentials {
target AwsValidateCredentials
}

// Reference to the resource that manages OIDC Config Thumbprint fetching.
locator OidcThumbprint {
target OidcThumbprint
}
}
25 changes: 25 additions & 0 deletions model/clusters_mgmt/v2alpha1/oidc_thumbprint_input_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
Copyright (c) 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Contains the necessary attributes to fetch an OIDC Configuration thumbprint
struct OidcThumbprintInput {

// OidcConfigId is the ID for the oidc config used, exclusive from ClusterId.
OidcConfigId String

// ClusterId is the for the cluster used, exclusive from OidcConfigId.
ClusterId String
}
24 changes: 24 additions & 0 deletions model/clusters_mgmt/v2alpha1/oidc_thumbprint_resource.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
Copyright (c) 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Manages an Oidc Config Thumbprint configuration.
resource OidcThumbprint {
// Fetches/creates an OIDC Config Thumbprint from either a cluster ID, or an oidc config ID.
method Post {
out Body OidcThumbprint
in Body OidcThumbprintInput
}
}
34 changes: 34 additions & 0 deletions model/clusters_mgmt/v2alpha1/oidc_thumbprint_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
Copyright (c) 2024 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Contains the necessary attributes to support oidc configuration thumbprint operations such as fetching/creation of a thumbprint
struct OidcThumbprint {

// OidcConfigId is the ID for the oidc config used, filled in response.
OidcConfigId String

// ClusterId is the for the cluster used, filled in response.
ClusterId String

// Thumbprint is the thumbprint itself, filled in response.
Thumbprint String

// HREF for the oidc config thumbprint, filled in response.
HREF String

// Kind is the resource type, filled in response.
Kind String
}
Loading