File tree Expand file tree Collapse file tree 4 files changed +27
-16
lines changed
Expand file tree Collapse file tree 4 files changed +27
-16
lines changed Original file line number Diff line number Diff line change @@ -68,19 +68,19 @@ steps:
6868 PUBLIC_API_KEY : /helm-chart-test/production/PUBLIC_API_KEY
6969 retry : *retry
7070
71- - label : " :test_tube: values_capabilities_events_test"
72- commands :
73- - cd .buildkite/tests
74- - ./ci/use-new-agent-version.sh
75- - make values_capabilities_events_test
76- agents :
77- builder : " builder-dind-agent"
78- plugins :
79- - zacharymctague/aws-ssm#v1.0.0:
80- parameters :
81- API_KEY : /helm-chart-test/production/API_KEY
82- PUBLIC_API_KEY : /helm-chart-test/production/PUBLIC_API_KEY
83- retry : *retry
71+ # - label: ":test_tube: values_capabilities_events_test"
72+ # commands:
73+ # - cd .buildkite/tests
74+ # - ./ci/use-new-agent-version.sh
75+ # - make values_capabilities_events_test
76+ # agents:
77+ # builder: "builder-dind-agent"
78+ # plugins:
79+ # - zacharymctague/aws-ssm#v1.0.0:
80+ # parameters:
81+ # API_KEY: /helm-chart-test/production/API_KEY
82+ # PUBLIC_API_KEY: /helm-chart-test/production/PUBLIC_API_KEY
83+ # retry: *retry
8484
8585 - label : " :test_tube: values_capabilities_proxy_test"
8686 commands :
Original file line number Diff line number Diff line change @@ -94,7 +94,18 @@ def find_pod_name_by_deployment(deployment_name, namespace):
9494 namespace = namespace ,
9595 label_selector = label_selector
9696 )
97- # If there are any Pods, return the name of the first one
97+ # Filter pods to ensure they belong to the correct deployment
98+ # Pods are named like: deployment-name-<hash>-<random>
99+ # We check that the pod name starts with the deployment name followed by a hyphen
100+ # and does NOT contain "-admission-controller-" to avoid matching admission-controller pods
101+ # that might have overlapping label selectors
102+ for pod in pods .items :
103+ pod_name = pod .metadata .name
104+ if (pod_name .startswith (deployment_name + "-" ) and
105+ "-admission-controller-" not in pod_name ):
106+ return pod_name
107+ # Fallback: if no pod matches the prefix, return the first one
108+ # (this maintains backward compatibility)
98109 if pods .items :
99110 return pods .items [0 ].metadata .name
100111 else :
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ The command removes all the Kubernetes components associated with the chart and
203203| capabilities.tasks.httpRequests | object | See sub-values | Configure HTTP request capabilities |
204204| capabilities.tasks.httpRequests.skipTlsVerify | bool | ` false ` | Skip TLS certificate verification for HTTP requests (sets HTTP_REQUESTS_SKIP_TLS_VERIFY environment variable) |
205205| capabilities.admissionController | object | See sub-values | Configure the komodor admission controller capabilities |
206- | capabilities.admissionController.enabled | bool | ` false ` | Enable the komodor admission controller |
206+ | capabilities.admissionController.enabled | bool | ` true ` | Enable the komodor admission controller |
207207| capabilities.admissionController.pdb | object | ` {"enabled":false} ` | Configure the PodDisruptionBudget for the admission controller |
208208| capabilities.admissionController.pdb.enabled | bool | ` false ` | Enable PodDisruptionBudget for the admission controller |
209209| capabilities.admissionController.logLevel | string | ` "info" ` | Log level for the admission controller |
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ capabilities:
180180 # @default -- See sub-values
181181 admissionController :
182182 # capabilities.admissionController.enabled -- (bool) Enable the komodor admission controller
183- enabled : false
183+ enabled : true
184184 # capabilities.admissionController.pdb -- Configure the PodDisruptionBudget for the admission controller
185185 pdb :
186186 # capabilities.admissionController.pdb.enabled -- (bool) Enable PodDisruptionBudget for the admission controller
You can’t perform that action at this time.
0 commit comments