diff --git a/README.md b/README.md index e76073f..3f95d4e 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@ Cert-manager ACME DNS webhook provider for Selectel. ## Installing -To install with helm, run: +To install with helm in namespace: cert-manager, run: ```bash $ helm repo add selectel https://selectel.github.io/cert-manager-webhook-selectel $ helm repo update -$ helm install --name cert-manager-webhook-selectel selectel/cert-manager-webhook-selectel +$ helm install cert-manager-webhook-selectel selectel/cert-manager-webhook-selectel -n cert-manager ``` OR @@ -19,15 +19,15 @@ OR ```bash $ git clone https://github.com/selectel/cert-manager-webhook-selectel.git $ cd cert-manager-webhook-selectel/deploy/cert-manager-webhook-selectel -$ helm install --name cert-manager-webhook-selectel . +$ helm install cert-manager-webhook-selectel . -n cert-manager ``` -Without helm, run: + -```bash + ### Issuer/ClusterIssuer @@ -38,6 +38,7 @@ apiVersion: v1 kind: Secret metadata: name: selectel-api-key + namespace: cert-manager type: Opaque stringData: token: APITOKEN_FROM_MY_SELECTEL_RU @@ -46,7 +47,7 @@ apiVersion: cert-manager.io/v1 kind: Issuer metadata: name: letsencrypt-staging - namespace: default + namespace: cert-manager spec: acme: server: https://acme-staging-v02.api.letsencrypt.org/directory @@ -78,7 +79,7 @@ apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: sel-letsencrypt-crt - namespace: default + namespace: cert-manager spec: secretName: example-com-tls commonName: example.com @@ -96,8 +97,11 @@ spec: You can run the test suite with: -1. Go to `https://my.selectel.ru/profile/apikeys`, get one or create new api token -2. Fill in the appropriate values in `testdata/selectel/apikey.yml` and `testdata/selectel/config.json` +1. Go to `https://my.selectel.ru/profile/apikeys`, get one or create new api token. +2. Fill in the appropriate values in `testdata/selectel/apikey.yml` and `testdata/selectel/config.json`. + - Insert token `testdata/selectel/apikey.yml`. + - Check that `metadata.name` in `testdata/selectel/apikey.yml` equals value in `testdata/selectel/config.json` for key `apiKeySecretRef.name`. + - Check that key name in `testdata/selectel/apikey.yml` equals value in `testdata/selectel/config.json` for key `apiKeySecretRef.key`. ```bash $ TEST_ZONE_NAME=example.com. make test