From 576faa6393a3c6aa2ec4dde17658a44e500dc15b Mon Sep 17 00:00:00 2001 From: Meet Rathod Date: Wed, 16 Nov 2022 22:17:26 +0530 Subject: [PATCH] Add azure key vault connector type --- harness/nextgen/model_connector_info.go | 1 + harness/nextgen/model_connector_info_serializer.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/harness/nextgen/model_connector_info.go b/harness/nextgen/model_connector_info.go index 4d1daa20..a6e44e88 100644 --- a/harness/nextgen/model_connector_info.go +++ b/harness/nextgen/model_connector_info.go @@ -38,6 +38,7 @@ type ConnectorInfo struct { AwsSecretManager *AwsSecretManager `json:"-"` AzureCloudCost *CeAzureConnector `json:"-"` Azure *AzureConnector `json:"-"` + AzureKeyVault *AzureKeyVaultConnector `json:"-"` BitBucket *BitbucketConnector `json:"-"` Datadog *DatadogConnectorDto `json:"-"` DockerRegistry *DockerConnector `json:"-"` diff --git a/harness/nextgen/model_connector_info_serializer.go b/harness/nextgen/model_connector_info_serializer.go index 5511a8cc..560b3dee 100644 --- a/harness/nextgen/model_connector_info_serializer.go +++ b/harness/nextgen/model_connector_info_serializer.go @@ -33,6 +33,8 @@ func (a *ConnectorInfo) UnmarshalJSON(data []byte) error { err = json.Unmarshal(aux.Spec, &a.AwsSecretManager) case ConnectorTypes.Azure: err = json.Unmarshal(aux.Spec, &a.Azure) + case ConnectorTypes.AzureKeyVault: + err = json.Unmarshal(aux.Spec, &a.AzureKeyVault) case ConnectorTypes.CEAzure: err = json.Unmarshal(aux.Spec, &a.AzureCloudCost) case ConnectorTypes.CEAws: @@ -143,6 +145,8 @@ func (a *ConnectorInfo) MarshalJSON() ([]byte, error) { spec, err = json.Marshal(a.Splunk) case ConnectorTypes.Azure: spec, err = json.Marshal(a.Azure) + case ConnectorTypes.AzureKeyVault: + spec, err = json.Marshal(a.AzureKeyVault) case ConnectorTypes.CEAzure: spec, err = json.Marshal(a.AzureCloudCost) case ConnectorTypes.CEK8sCluster: