You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/architecture.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,8 @@ The **k8s-overcommit Operator** is a Kubernetes-native operator designed to inte
46
46
|-----------|---------|----------|
47
47
|**Overcommit Controller**| Manages main Overcommit resource and deploys OvercommitClass controllers |[`internal/controller/overcommitclass/`](../internal/controller/overcommitclass/)|
48
48
|**OvercommitClass Controller**| Watches OvercommitClass resources and configures webhooks |[`internal/resources/generate_resources_overcommit_class_controller_controller.go`](../internal/resources/generate_resources_overcommit_class_controller_controller.go)|
49
-
|**Pod Mutating Webhook**| Modifies pod resource requests based on overcommit policies |[`api/v1alpha1/overcommitclass_webhook.go`](../internal/webhook/v1alphav1/mutating/pod_webhook.go)|
|**Pod Mutating Webhook**| Modifies pod resource requests based on overcommit policies |[`api/v1alphav1/overcommitclass_webhook.go`](../internal/webhook/v1alphav1/mutating/pod_webhook.go)|
|**Pod Validating Webhook**| Validates Pod With Unexisting Class |[`internal/webhook/v1alphav1/validating/pod_webhook.go`](../internal/webhook/v1alphav1/validating/pod_webhook.go)|
52
52
|**Certificate Manager**| Generates and manages TLS certificates for webhooks |[`internal/resources/generate_issuer.go`](../internal/resources/generate_issuer.go)|
53
53
@@ -112,7 +112,7 @@ flowchart TD
112
112
The main configuration resource that enables the operator:
113
113
114
114
```yaml
115
-
apiVersion: overcommit.inditex.dev/v1alpha1
115
+
apiVersion: overcommit.inditex.dev/v1alphav1
116
116
kind: Overcommit
117
117
metadata:
118
118
name: cluster
@@ -135,7 +135,7 @@ spec:
135
135
Defines overcommit policies for different workload types:
136
136
137
137
```yaml
138
-
apiVersion: overcommit.inditex.dev/v1alpha1
138
+
apiVersion: overcommit.inditex.dev/v1alphav1
139
139
kind: OvercommitClass
140
140
metadata:
141
141
name: high-density
@@ -186,7 +186,7 @@ webhooks:
186
186
187
187
### Webhook Logic Implementation
188
188
189
-
The webhook implementation in [`api/v1alpha1/overcommitclass_webhook.go`](../api/v1alpha1/overcommitclass_webhook.go) follows this logic:
189
+
The webhook implementation in [`api/v1alphav1/overcommitclass_webhook.go`](../api/v1alphav1/overcommitclass_webhook.go) follows this logic:
190
190
191
191
1. **Label Resolution**: Check pod → namespace → default class
192
192
2. **Namespace Exclusion**: Apply regex patterns to exclude critical namespaces
@@ -336,7 +336,7 @@ make run ARGS="--zap-log-level=debug"
0 commit comments