mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-07-01 22:35:49 +02:00
chore: update deps
This commit is contained in:
parent
0bb6900f6b
commit
24c78cbcb2
4 changed files with 482 additions and 248 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.12.4-alpine AS build_deps
|
||||
FROM golang:1.15.6-alpine3.12 AS build_deps
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
|
@ -16,7 +16,7 @@ COPY . .
|
|||
|
||||
RUN CGO_ENABLED=0 go build -o webhook -ldflags '-w -extldflags "-static"' .
|
||||
|
||||
FROM alpine:3.9
|
||||
FROM alpine:3.12.1
|
||||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
|
|
8
go.mod
8
go.mod
|
@ -4,9 +4,9 @@ go 1.13
|
|||
|
||||
require (
|
||||
github.com/dnsimple/dnsimple-go v0.63.0
|
||||
github.com/jetstack/cert-manager v0.13.1
|
||||
k8s.io/apiextensions-apiserver v0.17.0
|
||||
k8s.io/apimachinery v0.17.0
|
||||
k8s.io/client-go v0.17.0
|
||||
github.com/jetstack/cert-manager v1.1.0
|
||||
k8s.io/apiextensions-apiserver v0.20.0
|
||||
k8s.io/apimachinery v0.20.0
|
||||
k8s.io/client-go v0.20.0
|
||||
k8s.io/klog v1.0.0
|
||||
)
|
||||
|
|
2
main.go
2
main.go
|
@ -88,7 +88,7 @@ func (c *dnsimpleDNSProviderSolver) Name() string {
|
|||
func (c *dnsimpleDNSProviderSolver) getClient(cfg *dnsimpleDNSProviderConfig, namespace string) (*dnsimple.Client, error) {
|
||||
secretName := cfg.TokenSecretRef.LocalObjectReference.Name
|
||||
klog.V(6).Infof("Try to load secret `%s` with key `%s`", secretName, cfg.TokenSecretRef.Key)
|
||||
sec, err := c.client.CoreV1().Secrets(namespace).Get(secretName, metav1.GetOptions{})
|
||||
sec, err := c.client.CoreV1().Secrets(namespace).Get(context.Background(), secretName, metav1.GetOptions{})
|
||||
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to get secret `%s`; %v", secretName, err)
|
||||
|
|
Loading…
Reference in a new issue