diff --git a/Earthfile b/Earthfile index 1745bd9..cc14e7f 100644 --- a/Earthfile +++ b/Earthfile @@ -1,6 +1,14 @@ VERSION 0.7 FROM alpine +kustomize-build: + # renovate: datasource=docker depName=registry.k8s.io/kustomize/kustomize versioning=docker + ARG KUSTOMIZE_VERSION=v5.1.1 + FROM registry.k8s.io/kustomize/kustomize:$KUSTOMIZE_VERSION + COPY kustomization kustomization + RUN ls + RUN find kustomization/components/ -mindepth 1 -maxdepth 1 -type d -print | xargs -r -n1 kustomize build > /dev/null + renovate-validate: # renovate: datasource=docker depName=renovate/renovate versioning=docker ARG RENOVATE_VERSION=37 @@ -10,6 +18,7 @@ renovate-validate: RUN renovate-config-validator validate: + BUILD +kustomize-build BUILD +renovate-validate prettier-lint: diff --git a/kustomization/components/operator-lifecycle-manager/README.md b/kustomization/components/operator-lifecycle-manager/README.md new file mode 100644 index 0000000..f0fcfc0 --- /dev/null +++ b/kustomization/components/operator-lifecycle-manager/README.md @@ -0,0 +1,22 @@ +# Operator Lifecycle Manager Component + +This will deploy the +[Operator Lifecycle Manager](https://github.com/operator-framework/operator-lifecycle-manager) +and its CRDs. + +## Example Usage + +```yaml +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +components: + - https://raw.githubusercontent.com/marinatedconcrete/config/main/kustomization/components/operator-lifecycle-manager +patches: + # A number of operators do not work in the baseline pod-security profile, alas. + - target: + kind: Namespace + name: operators + path: patches/downgrade_pod-security.yml +``` diff --git a/kustomization/components/operator-lifecycle-manager/kustomization.yml b/kustomization/components/operator-lifecycle-manager/kustomization.yml new file mode 100644 index 0000000..86a689a --- /dev/null +++ b/kustomization/components/operator-lifecycle-manager/kustomization.yml @@ -0,0 +1,9 @@ +--- +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + +resources: + # renovate: datasource=github-releases + - https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.25.0/crds.yaml + # renovate: datasource=github-releases + - https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.25.0/olm.yaml