Ver código fonte

add support for Yandex Certificate Manager

Docs 4 anos atrás
pai
commit
1a0fbbf4cd

+ 4 - 0
docs/provider-yandex-certificate-manager.md

@@ -83,6 +83,10 @@ spec:
         key: ***** # the certificate ID
         property: privateKey
 ```
+The following property values are possible:
+    * `chain` – to fetch PEM-encoded certificate chain
+    * `privateKey` – to fetch PEM-encoded private key
+    * `chainAndPrivateKey` or missing property – to fetch both chain and private key
 
 The operator will fetch the Yandex Certificate Manager certificate and inject it as a `Kind=Secret`
 ```yaml

+ 4 - 0
pkg/provider/yandex/common/provider.go

@@ -252,5 +252,9 @@ func (p *YandexCloudProvider) CleanUpIamTokenMap() {
 }
 
 func (p *YandexCloudProvider) ValidateStore(store esv1beta1.GenericStore) error {
+	_, err := p.adaptInputFunc(store) // adaptInputFunc validates the input store
+	if err != nil {
+		return err
+	}
 	return nil
 }