fix: deploy registry

This commit is contained in:
2023-07-22 07:23:43 +00:00
parent 5df71af2fe
commit 3768d7f002
3 changed files with 91 additions and 6 deletions

View File

@@ -17,10 +17,6 @@ import (
"go.uber.org/zap"
)
func init() {
rootCmd.AddCommand(deoplyCmd)
}
//go:embed deploy.yaml
var template string
@@ -54,7 +50,7 @@ var deoplyCmd = &cobra.Command{
Type: "CERTIFICATE",
Bytes: cert,
})))
template = strings.ReplaceAll(template, "KEY", base64.StdEncoding.EncodeToString(pem.EncodeToMemory(&pem.Block{
template = strings.ReplaceAll(template, "KEY_PEM", base64.StdEncoding.EncodeToString(pem.EncodeToMemory(&pem.Block{
Type: "RSA PRIVATE KEY",
Bytes: x509.MarshalPKCS1PrivateKey(key),
})))

View File

@@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: APP
image: gitlab.yoshino-s.xyz/yoshino-s/cilium-envoy-hook:latest
image: registry.yoshino-s.xyz/yoshino-s/cilium-envoy-hook:latest
imagePullPolicy: Always
args:
- --tls-cert-file-path=/etc/webhook/certs/cert.pem