Skip to content

Commit

Permalink
Fix issues after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
ramperher committed Jan 10, 2024
1 parent e5157a8 commit 934d559
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 13 deletions.
9 changes: 0 additions & 9 deletions cnf-app-mac-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ spec:
image: controller:latest
imagePullPolicy: Always
name: manager
ports:
- containerPort: 8095
resources:
limits:
cpu: 100m
Expand Down Expand Up @@ -53,19 +51,12 @@ spec:
readinessProbe:
httpGet:
path: /readyz
tcpSocket:
port: 8095
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
tcpSocket:
port: 8095
initialDelaySeconds: 5
periodSeconds: 10
startupProbe:
httpGet:
path: /startz
tcpSocket:
port: 8095
initialDelaySeconds: 30
periodSeconds: 10
Expand Down
11 changes: 10 additions & 1 deletion testpmd-lb-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ spec:
- name: ANSIBLE_GATHERING
value: explicit
image: controller:latest
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "echo Hello from the postStart handler"]
preStop:
exec:
command: ["/bin/sh", "-c", "echo Hello from the preStop handler"]
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -43,9 +50,11 @@ 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: /startupz
path: /healthz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ spec:
- name: {{ key }}
value: "{{ value }}"
{% endfor %}
<<<<<<< HEAD
lifecycle:
postStart:
exec:
Expand Down
4 changes: 3 additions & 1 deletion testpmd-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ 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: /startupz
path: /healthz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
Expand Down
20 changes: 20 additions & 0 deletions testpmd-operator/testpmd-allinone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,27 @@ spec:
preStop:
exec:
command: ["/bin/sh", "-c", "echo Hello from the preStop handler"]
livenessProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 15
periodSeconds: 20
name: manager
readinessProbe:
httpGet:
path: /readyz
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
11 changes: 10 additions & 1 deletion trex-operator/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ spec:
- "--max-concurrent-reconciles=1"
image: controller:latest
imagePullPolicy: IfNotPresent
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "echo Hello from the postStart handler"]
preStop:
exec:
command: ["/bin/sh", "-c", "echo Hello from the preStop handler"]
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -36,9 +43,11 @@ 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: /startupz
path: /healthz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
Expand Down

0 comments on commit 934d559

Please sign in to comment.