Skip to content
Snippets Groups Projects
Commit 8bcca6a1 authored by Mingyang Zhu's avatar Mingyang Zhu
Browse files

fix the bean annotation

parent a6f7db64
No related branches found
No related tags found
1 merge request!53customized readiness check to make sure cache layer is ready before serving traffic
......@@ -50,10 +50,6 @@ spec:
httpGet:
path: /api/partition/v1/_ah/readiness_check
port: 80
livenessProbe:
httpGet:
path: /api/partition/v1/_ah/liveness_check
port: 80
volumeMounts:
- name: azure-keyvault
mountPath: "/mnt/azure-keyvault"
......
......@@ -76,10 +76,6 @@ spec:
httpGet:
path: /api/partition/v1/_ah/readiness_check
port: 80
livenessProbe:
httpGet:
path: /api/partition/v1/_ah/liveness_check
port: 80
volumeMounts:
- name: azure-keyvault
mountPath: "/mnt/azure-keyvault"
......
package org.opengroup.osdu.partition.service;
import org.opengroup.osdu.partition.provider.interfaces.IHealthCheckService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;
@Service
@ConditionalOnMissingBean(value = IHealthCheckService.class)
public class DefaultHealthCheckImpl implements IHealthCheckService {
@Override
......
......@@ -7,9 +7,11 @@ import org.opengroup.osdu.partition.provider.interfaces.IPartitionServiceCache;
import org.opengroup.osdu.partition.service.DefaultHealthCheckImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
@Service
@Primary
@RequiredArgsConstructor
public class HealthCheckServiceImpl extends DefaultHealthCheckImpl {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment