浏览代码

add cloud credential identifier (#4166)

d-g-town 2 年之前
父节点
当前提交
1b97469a5d
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      internal/models/registry.go

+ 7 - 0
internal/models/registry.go

@@ -25,6 +25,13 @@ type Registry struct {
 	// The infra id, if registry was provisioned with Porter
 	InfraID uint `json:"infra_id"`
 
+	// CloudProvider is the cloud provider that hosts the registry. Accepted values: [AWS, GCP, AZURE]
+	CloudProvider string `json:"cloud_provider" gorm:"default:''"`
+
+	// CloudProviderCredentialIdentifier is a reference to find the credentials required for access the registry's API.
+	// For AWS EKS clusters, this will be an ARN for the final target role in the assume role chain.
+	CloudProviderCredentialIdentifier string `json:"cloud_provider_credential_identifier" gorm:"default:''"`
+
 	// ------------------------------------------------------------------
 	// All fields below this line are encrypted before storage
 	// ------------------------------------------------------------------