uselagoon / lagoon-charts

A collection of Helm charts for Lagoon and associated services.
Apache License 2.0
11 stars 10 forks source link

Logging operator update #574

Closed smlx closed 1 year ago

smlx commented 1 year ago

This PR updates the logging operator, which is the underlying log collection system of the lagoon-logging chart.

Importantly, this update requires some manual CRD updates to be applied after the chart is upgraded, if upgrading from an earlier version of lagoon-logging:

helm repo add kube-logging https://kube-logging.github.io/helm-charts
helm show crds kube-logging/logging-operator --version 4.2.3 | kubectl apply --server-side --force-conflicts -f -

I'll also add the instructions above to the release notes.

tobybellwood commented 1 year ago

worth noting for the record that this is a neater way to install those CRDs

helm show crds kube-logging/logging-operator --version 4.2.3 | kubectl apply -f -
smlx commented 1 year ago

TIL thanks!

smlx commented 1 year ago

hi @tobybellwood any problem with merging this?

tobybellwood commented 9 months ago

Worth noting here that in the upgrade process if you encounter an error with PSP

Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "psp.logging-operator" namespace: "lagoon-logging" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"

You should use the mapkubeapis helm plugin to remove the PSP from the helm cache

helm mapkubeapis lagoon-logging --namespace lagoon-logging