Before golang kerberos attempt

This commit is contained in:
Chris Stuurman 2024-05-08 15:08:06 +02:00
parent 197f7c37a8
commit 3cd72d6e74
5 changed files with 18 additions and 14 deletions

View File

@ -40,6 +40,8 @@ ENV RUNNING_IN_DOCKER true
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ="Africa/Johannesburg"
ENV WEBROOT=/webroot
ENV ACMEDIR=/acme
ENV WORKDIR=/workdir
COPY --from=build /workspace/webhook /usr/local/bin/webhook

View File

@ -1,5 +1,5 @@
apiVersion: v1
appVersion: v0.0.5-alpha.112
appVersion: v0.0.5-alpha.113
description: Cert-Manager webhook for sthome
name: sthome-webhook
version: 0.0.5-alpha.112
version: 0.0.5-alpha.113

View File

@ -31,7 +31,7 @@ clusterIssuer:
image:
repository: stuurmcp/cert-manager-webhook-sthome
#repository: wstat.sthome.net:5000/cert-manager-webhook-sthome
tag: 0.0.5-alpha.112
tag: 0.0.5-alpha.113
#pullPolicy should be IfNotPresent. Set to Always for testing purposes
pullPolicy: IfNotPresent

View File

@ -16,9 +16,9 @@ import (
const (
bashShell = "/bin/bash"
zshShell = "/bin/zsh"
Workdir = "/workdir"
AcmeDir = "/acme"
Shell = bashShell
//Workdir = "/workdir"
//AcmeDir = "/acme"
Shell = bashShell
AuthScript = "acmeauth.sh"
DnsUpdScript = "updatedns.sh"
@ -31,7 +31,9 @@ const (
)
var (
AcmeAuthCmd = AcmeDir + "/" + AuthScript
Workdir = os.Getenv("WORKDIR")
AcmeDir = os.Getenv("ACMEDIR")
AcmeAuthCmd = Workdir + "/" + AuthScript
mutex sync.Mutex // mutex is used to define a critical section of code.
)
@ -68,8 +70,8 @@ func SetChallenge(ch *v1alpha1.ChallengeRequest) (bool, error) {
ch.DNSName,
ch.ResolvedFQDN,
ch.Key,
"-l",
"\"\"", //localip,
//"-l",
//"\"\"", //localip,
//"-v",
)
}
@ -83,8 +85,8 @@ func UnsetChallenge(ch *v1alpha1.ChallengeRequest) (bool, error) {
ch.DNSName,
ch.ResolvedFQDN,
ch.Key,
"-l",
"\"\"", //localip,
//"-l",
//"\"\"", //localip,
//"-v",
)
}

View File

@ -1,3 +1,3 @@
0.0.5-alpha.112
20240421-2058
112
0.0.5-alpha.113
20240422-0918
113