Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WORKDIR /app
# Create user
RUN useradd -ms /bin/bash akhq
COPY --chown=akhq:akhq docker /
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENV MICRONAUT_CONFIG_FILES=/app/application.yml
# Use the 'akhq' user
USER akhq
Expand Down
2 changes: 1 addition & 1 deletion helm/akhq/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
{{- range $ingressPaths }}
- path: {{ . }}
{{- if eq (include "akhq.ingress.apiVersion" $) "networking.k8s.io/v1" }}
pathType: {{ $.Values.ingress.pathType | default "ImplementationSpecific" }}
pathType: {{ $.Values.ingress.pathType | default "Prefix" }}
{{- end }}
backend:
{{- if eq (include "akhq.ingress.apiVersion" $) "networking.k8s.io/v1" }}
Expand Down
4 changes: 2 additions & 2 deletions helm/akhq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ service:
# cloud.google.com/load-balancer-type: "Internal"

ingress:
enabled: false
enabled: true
ingressClassName: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
labels: {}
paths:
- /
pathType: "ImplementationSpecific"
pathType: "Prefix"
hosts:
- akhq.demo.com
tls: []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package org.akhq.repositories;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


import com.amazonaws.services.schemaregistry.deserializers.GlueSchemaRegistryKafkaDeserializer;
import com.amazonaws.services.schemaregistry.utils.AWSSchemaRegistryConstants;
import com.amazonaws.services.schemaregistry.utils.AvroRecordType;
Expand Down Expand Up @@ -41,6 +45,10 @@
public class SchemaRegistryRepository extends AbstractRepository {
public static final int ERROR_NOT_FOUND = 40401;

private static final Logger log =
LoggerFactory.getLogger(SchemaRegistryRepository.class);


@Inject
private KafkaModule kafkaModule;

Expand All @@ -66,9 +74,12 @@ private List<Schema> toSchemasLatestVersion(List<String> subjectList, String clu
try {
return getLatestVersion(clusterId, s);
} catch (RestClientException | IOException e) {
throw new RuntimeException(e);
log.warn("Unable to fetch latest version for schema {}" , s , e );
return null;
}
})
.filter(Objects::nonNull)

.collect(Collectors.toList());
}

Expand Down