forked from pragkent/alidns-webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: 更新 go依赖包。k8s api到 v0..24.2。cert-manager依赖到 v1.9.1 。aliyunsdk …
…到 v1.62.37
- Loading branch information
scjtqs
committed
Nov 25, 2022
1 parent
c5e5798
commit d66ce5e
Showing
14 changed files
with
355 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
IMAGE_NAME := pragkent/alidns-webhook | ||
IMAGE_NAME := scjtqs/alidns-webhook | ||
IMAGE_TAG := $(shell cat VERSION) | ||
|
||
test: | ||
go test -v . | ||
|
||
docker: | ||
docker build -t $(IMAGE_NAME):$(IMAGE_TAG) . | ||
docker buildx create --use --name myalidns | ||
docker buildx build --no-cache --tag $(IMAGE_NAME):$(IMAGE_TAG) --platform linux/amd64,linux/arm64 . | ||
docker buildx rm myalidns | ||
|
||
release: | ||
docker build -t $(IMAGE_NAME):$(IMAGE_TAG) . | ||
docker push $(IMAGE_NAME):$(IMAGE_TAG) | ||
docker buildx build --no-cache --tag $(IMAGE_NAME):$(IMAGE_TAG) --platform linux/amd64,linux/arm64 --push . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Cert-manager ACME DNS webhook provider for alidns. | |
### Install cert manager | ||
Please find document here: https://cert-manager.io/docs/installation/kubernetes/ | ||
|
||
### Install webhook (Cert manager v0.11 and above) | ||
### Install webhook (Cert manager v1.7 and above) | ||
1. Install alidns-webhook | ||
|
||
```bash | ||
|
@@ -30,18 +30,18 @@ Please find document here: https://cert-manager.io/docs/installation/kubernetes/ | |
|
||
3. Example Issuer | ||
```yaml | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: letsencrypt-staging | ||
spec: | ||
acme: | ||
# Change to your letsencrypt email | ||
email: [email protected] | ||
server: https://acme-staging-v02.api.letsencrypt.org/directory | ||
privateKeySecretRef: | ||
name: letsencrypt-staging-account-key | ||
solvers: | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: alidns | ||
spec: | ||
acme: | ||
# Change to your letsencrypt email | ||
email: [email protected] | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
privateKeySecretRef: | ||
name: alidns-account-key | ||
solvers: | ||
- dns01: | ||
webhook: | ||
groupName: acme.yourcompany.com | ||
|
@@ -58,7 +58,7 @@ Please find document here: https://cert-manager.io/docs/installation/kubernetes/ | |
|
||
4. Issue a certificate | ||
```yaml | ||
apiVersion: cert-manager.io/v1alpha2 | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: example-tls | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.1 | ||
0.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
docker buildx create --use --name myalidns | ||
docker buildx build --no-cache --tag scjtqs/alidns-webhook:0.1.1 --platform linux/amd64,linux/arm64 --push . | ||
docker buildx build --no-cache --tag scjtqs/alidns-webhook:0.1.2 --platform linux/amd64,linux/arm64 --push . | ||
docker buildx rm myalidns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.