Skip to content

Commit

Permalink
Merge branch 'main' into sean/dropwizard-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis authored Oct 30, 2024
2 parents 08dec47 + 041a8ff commit d177de2
Show file tree
Hide file tree
Showing 35 changed files with 1,736 additions and 464 deletions.
2 changes: 1 addition & 1 deletion .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ github:
features:
wiki: false
issues: true
projects: false
projects: true
ghp_branch: gh-pages
ghp_path: /

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ jobs:
echo "::endgroup::"
done
- name: Run Helm unit tests
if: steps.list-changed.outputs.changed == 'true'
run: |
helm plugin install https://github.com/helm-unittest/helm-unittest.git || true
helm unittest helm/polaris
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --debug --charts ./helm/polaris
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN rm -rf build
# Build the rest catalog
RUN ./gradlew --no-daemon --info ${ECLIPSELINK_DEPS+"-PeclipseLinkDeps=$ECLIPSELINK_DEPS"} -PeclipseLink=$ECLIPSELINK clean prepareDockerDist

FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1726695169
FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1729089285
WORKDIR /app
COPY --from=build /app/polaris-service/build/docker-dist/bin /app/bin
COPY --from=build /app/polaris-service/build/docker-dist/lib /app/lib
Expand Down
1 change: 1 addition & 0 deletions build-logic/src/main/kotlin/polaris-java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ tasks.withType(JavaCompile::class.java).configureEach {
"MissingOverride",
"ModifiedButNotUsed",
"OrphanedFormatString",
"PatternMatchingInstanceof",
"StringCaseLocaleUsage",
)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ javax-inject = { module = "javax.inject:javax.inject", version = "1" }
jetbrains-annotations = { module = "org.jetbrains:annotations", version = "24.1.0" }
junit-bom = { module = "org.junit:junit-bom", version = "5.10.3" }
logback-core = { module = "ch.qos.logback:logback-core", version = "1.4.14" }
micrometer-bom = { module = "io.micrometer:micrometer-bom", version = "1.13.2" }
micrometer-bom = { module = "io.micrometer:micrometer-bom", version = "1.13.6" }
mockito-core = { module = "org.mockito:mockito-core", version = "5.11.0" }
opentelemetry-bom = { module = "io.opentelemetry:opentelemetry-bom", version = "1.38.0" }
opentelemetry-semconv = { module = "io.opentelemetry.semconv:opentelemetry-semconv", version = "1.25.0-alpha" }
Expand Down
14 changes: 10 additions & 4 deletions helm/polaris/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ spec:
{{- include "polaris.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- if .Values.podAnnotations }}
annotations:
{{- if .Values.podAnnotations }}
{{- tpl (toYaml .Values.podAnnotations) . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "polaris.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
Expand All @@ -66,20 +66,24 @@ spec:
{{- end }}
{{- end }}
serviceAccountName: {{ include "polaris.serviceAccountName" . }}
{{- if .Values.podSecurityContext }}
securityContext:
{{- tpl (toYaml .Values.podSecurityContext) . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- if .Values.securityContext}}
securityContext:
{{- tpl (toYaml .Values.securityContext) . | nindent 12 }}
{{- end }}
image: "{{ tpl .Values.image.repository . }}:{{ tpl .Values.image.tag . | default .Chart.Version }}"
imagePullPolicy: {{ tpl .Values.image.pullPolicy . }}
command: ["/app/bin/polaris-service"]
args: ["server", "/app/config/polaris-server.yml"]
{{- if .Values.extraEnv }}
env:
{{- if .Values.extraEnv }}
{{- tpl (toYaml .Values.extraEnv) . | nindent 12 }}
{{- end }}
{{- end }}
volumeMounts:
- name: config-volume
mountPath: /app/config/polaris-server.yml
Expand Down Expand Up @@ -115,8 +119,10 @@ spec:
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
{{- if .Values.resources }}
resources:
{{- tpl (toYaml .Values.resources) . | nindent 12 }}
{{- end }}
volumes:
- name: config-volume
configMap:
Expand Down
Loading

0 comments on commit d177de2

Please sign in to comment.