Skip to content

Commit

Permalink
Add GCP encryption key to cluster model
Browse files Browse the repository at this point in the history
SDA-7070
  • Loading branch information
tbrisker committed Oct 24, 2022
1 parent 7475f34 commit afd5aa2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/clusters_mgmt/v1/cluster_type.model
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ class Cluster {
// GCP Network.
GCPNetwork GCPNetwork

// Key used for encryption of GCP cluster nodes.
GCPEncryptionKey GCPEncryptionKey

// Date and time when the cluster was initially created, using the
// format defined in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt).
CreationTimestamp Date
Expand Down
27 changes: 27 additions & 0 deletions model/clusters_mgmt/v1/gcp_encryption_key_type.model
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
Copyright (c) 2021 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.
*/

// GCP Encryption Key for CCS clusters.
struct GCPEncryptionKey {
// Name of the encryption key
KeyName String
// Name of the key ring the encryption key is located on
KeyRing String
// Location of the encryption key ring
KeyLocation String
// Service account used to access the KMS key
KMSKeyServiceAccount String
}

0 comments on commit afd5aa2

Please sign in to comment.