Skip to content

Commit

Permalink
Merge pull request #223 from harness/azure-key-vault
Browse files Browse the repository at this point in the history
Add azure key vault connector type
  • Loading branch information
rathodmeetsatish authored Nov 17, 2022
2 parents 81c17ec + 576faa6 commit 82fd5f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions harness/nextgen/model_connector_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
Expand Down
4 changes: 4 additions & 0 deletions harness/nextgen/model_connector_info_serializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 82fd5f5

Please sign in to comment.