From f0edfd796a4b4026764a7f88fda208dad4a54c49 Mon Sep 17 00:00:00 2001 From: Abhinav Dahiya Date: Thu, 23 May 2019 11:26:20 -0700 Subject: [PATCH] *: add `azure4` as a known cluster profile --- CONFIGURATION.md | 1 + pkg/api/config.go | 2 +- pkg/api/types.go | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CONFIGURATION.md b/CONFIGURATION.md index 6166cc13..afd4b8b6 100644 --- a/CONFIGURATION.md +++ b/CONFIGURATION.md @@ -373,6 +373,7 @@ field is only valid in tests that provision a cluster (`openshift_ansible`, - `aws` - `aws-atomic` - `aws-centos` +- `azure4` - `gcp` - `gcp-ha` - `gcp-crio` diff --git a/pkg/api/config.go b/pkg/api/config.go index 30e196a1..3f5e3a6a 100644 --- a/pkg/api/config.go +++ b/pkg/api/config.go @@ -180,7 +180,7 @@ func validateReleaseTagConfiguration(fieldRoot string, input ReleaseTagConfigura func validateClusterProfile(fieldRoot string, p ClusterProfile) []error { switch p { - case ClusterProfileAWS, ClusterProfileAWSAtomic, ClusterProfileAWSCentos, ClusterProfileAWSCentos40, ClusterProfileAWSGluster, ClusterProfileGCP, ClusterProfileGCP40, ClusterProfileGCPHA, ClusterProfileGCPCRIO, ClusterProfileGCPLogging, ClusterProfileGCPLoggingJournald, ClusterProfileGCPLoggingJSONFile, ClusterProfileGCPLoggingCRIO, ClusterProfileOpenStack, ClusterProfileVSphere: + case ClusterProfileAWS, ClusterProfileAWSAtomic, ClusterProfileAWSCentos, ClusterProfileAWSCentos40, ClusterProfileAWSGluster, ClusterProfileAzure4, ClusterProfileGCP, ClusterProfileGCP40, ClusterProfileGCPHA, ClusterProfileGCPCRIO, ClusterProfileGCPLogging, ClusterProfileGCPLoggingJournald, ClusterProfileGCPLoggingJSONFile, ClusterProfileGCPLoggingCRIO, ClusterProfileOpenStack, ClusterProfileVSphere: return nil } return []error{fmt.Errorf("%q: invalid cluster profile %q", fieldRoot, p)} diff --git a/pkg/api/types.go b/pkg/api/types.go index 2e3dda46..2b3fc4af 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -346,6 +346,7 @@ const ( ClusterProfileAWSCentos = "aws-centos" ClusterProfileAWSCentos40 = "aws-centos-40" ClusterProfileAWSGluster = "aws-gluster" + ClusterProfileAzure4 = "azure4" ClusterProfileGCP = "gcp" ClusterProfileGCP40 = "gcp-40" ClusterProfileGCPHA = "gcp-ha"