Skip to content

Commit

Permalink
Fix tests related to probe specs for controller-manager pods - except…
Browse files Browse the repository at this point in the history
…ing cnf-app-mac-operator which is already fixed (#32)

* Fix tests related to lifecycle and probe specs for pods under test

* Reorder specs and fix some minor issues

* Eventually remove lifecylc etests

* Try with TCP socket probes

* Fix issues after rebasing

* add missed code
  • Loading branch information
ramperher committed Jan 10, 2024
1 parent 3ae6948 commit e39f0c1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testpmd-lb-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ spec:
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
# operator-sdk is not implementing startup probe up to now, using liveness probe endpoint
# while this feature is developed
startupProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationMessagePolicy: FallbackToLogsOnError
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
8 changes: 8 additions & 0 deletions testpmd-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ spec:
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
# operator-sdk is not implementing startup probe up to now, using liveness probe endpoint
# while this feature is developed
startupProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationMessagePolicy: FallbackToLogsOnError
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10
8 changes: 8 additions & 0 deletions testpmd-operator/testpmd-allinone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@ spec:
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
# operator-sdk is not implementing startup probe up to now, using liveness probe endpoint
# while this feature is developed
startupProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationMessagePolicy: FallbackToLogsOnError
serviceAccountName: testpmd-operator-controller-manager
terminationGracePeriodSeconds: 10
8 changes: 8 additions & 0 deletions trex-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ spec:
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
# operator-sdk is not implementing startup probe up to now, using liveness probe endpoint
# while this feature is developed
startupProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationMessagePolicy: FallbackToLogsOnError
serviceAccountName: controller-manager
terminationGracePeriodSeconds: 10

0 comments on commit e39f0c1

Please sign in to comment.