Skip to content

Commit

Permalink
chore: cleanup webhook related stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
aumer-amr committed Dec 14, 2023
1 parent e1e2f3b commit ff66b28
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 207 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ manager
# Helm Chart dependencies
charts/**/charts/

# Test files
certs/
hack/

# Kubernetes Generated files - skip generated files, except for vendored files

!vendor/**/zz_generated.*
4 changes: 0 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/internal",
"args": [
"--tls-cert-dir",
"${workspaceFolder}/certs",
]
},
{
"name": "Launch Tests",
Expand Down
7 changes: 0 additions & 7 deletions internal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/metrics/server"
"sigs.k8s.io/controller-runtime/pkg/webhook"
//+kubebuilder:scaffold:imports
)

Expand All @@ -51,8 +50,6 @@ func init() {
func main() {
var metricsAddr string
var probeAddr string
var certDir string
flag.StringVar(&certDir, "tls-cert-dir", "/tls", "Folder where TLS key and cert are located.")
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
opts := zap.Options{
Expand All @@ -70,10 +67,6 @@ func main() {
Metrics: server.Options{
BindAddress: metricsAddr,
},
WebhookServer: webhook.NewServer(webhook.Options{
Port: 9443,
CertDir: certDir,
}),
})
if err != nil {
setupLog.Error(err, "unable to start manager")
Expand Down
66 changes: 0 additions & 66 deletions test/AdmissionReviewIngress.json

This file was deleted.

83 changes: 0 additions & 83 deletions test/AdmissionReviewPod.json

This file was deleted.

64 changes: 32 additions & 32 deletions hacks/Ingress.yaml → test/Ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cyberchef
namespace: default
annotations:
policy-control.aumer.io/gatus-generate: "false"
policy-control.aumer.io/gatus-dns: "true"
labels:
app: cyberchef
chart: cyberchef-0.1.0
heritage: Helm
release: cyberchef
spec:
ingressClassName: external
rules:
- host: cyberchef.domain.tld
http:
paths:
- backend:
service:
name: cyberchef
port:
number: 8000
path: /
pathType: Prefix
tls:
- hosts:
- cyberchef.domain.tld
status:
loadBalancer:
ingress:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cyberchef
namespace: default
annotations:
policy-control.aumer.io/gatus-generate: "false"
policy-control.aumer.io/gatus-dns: "true"
labels:
app: cyberchef
chart: cyberchef-0.1.0
heritage: Helm
release: cyberchef
spec:
ingressClassName: external
rules:
- host: cyberchef.domain.tld
http:
paths:
- backend:
service:
name: cyberchef
port:
number: 8000
path: /
pathType: Prefix
tls:
- hosts:
- cyberchef.domain.tld
status:
loadBalancer:
ingress:
- ip: 10.1.1.1
11 changes: 0 additions & 11 deletions test/run.sh

This file was deleted.

0 comments on commit ff66b28

Please sign in to comment.