1
0
Fork 0

Add ingress status update functionality to support various deployment modes

- Introduced `ingressStatus` configuration in Helm values to enable status updates and customize deployment modes (auto, daemonset, nodeport, clusterip).
- Implemented logic in the processor to detect deployment mode, retrieve ingress addresses, and update ingress status dynamically.
- Updated Kubernetes manifests to grant required permissions for `ingresses/status` operations and pass necessary environment variables for configuration.
- Adjusted Helm templates and associated Kubernetes examples to reflect the new ingress status update capability.
This commit is contained in:
Joao Gilberto Magalhaes 2025-12-15 21:11:02 -05:00
parent c8f8320cfe
commit 542fab1607
8 changed files with 312 additions and 37 deletions

View file

@ -30,7 +30,7 @@ rules:
resources:
# - configmaps
# - endpoints
# - nodes
- nodes
- pods
- services
- namespaces
@ -44,19 +44,18 @@ rules:
- "networking.k8s.io"
resources:
- ingresses
# - ingresses/status
- ingresses/status
- ingressclasses
verbs:
- get
- list
- watch
# - apiGroups:
# - "extensions"
# - "networking.k8s.io"
# resources:
# - ingresses/status
# verbs:
# - update
- apiGroups:
- "networking.k8s.io"
resources:
- ingresses/status
verbs:
- patch
- apiGroups:
- ""
resources:
@ -195,6 +194,16 @@ spec:
value: DEBUG
- name: CERTBOT_LOG_LEVEL
value: DEBUG
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: EASYHAPROXY_UPDATE_INGRESS_STATUS
value: "true"
- name: EASYHAPROXY_DEPLOYMENT_MODE
value: "auto"
- name: EASYHAPROXY_STATUS_UPDATE_INTERVAL
value: "30"
---
# Source: easyhaproxy/templates/ingressclass.yaml
apiVersion: networking.k8s.io/v1