Ver Fonte

add cloud credential identifier (#4166)

d-g-town há 2 anos atrás
pai
commit
1b97469a5d
1 ficheiros alterados com 7 adições e 0 exclusões
  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
 	// ------------------------------------------------------------------