-
Notifications
You must be signed in to change notification settings - Fork 0
/
execution-environment.yaml
38 lines (33 loc) · 1.3 KB
/
execution-environment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
version: 3
images:
base_image:
name: registry.access.redhat.com/ubi9/python-312:latest
dependencies:
ansible_core:
package_pip: ansible-core
ansible_runner:
package_pip: ansible-runner
galaxy: requirements.yaml
exclude:
system:
- openshift-clients
additional_build_steps:
append_builder:
- ARG HELM_VERSION=release-3.16
- ARG KUSTOMIZE_VERSION=release-kustomize-v5.5.0
- ARG POLICYGENERRATOR_VERSION=v1.15.0
- RUN curl https://raw.githubusercontent.com/helm/helm/${HELM_VERSION}/scripts/get-helm-3 | bash
- RUN curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/${KUSTOMIZE_VERSION}/hack/install_kustomize.sh" | bash
- RUN curl -L -o PolicyGenerator https://github.com/open-cluster-management-io/policy-generator-plugin/releases/download/${POLICYGENERRATOR_VERSION}/linux-amd64-PolicyGenerator && chmod +x PolicyGenerator
append_final:
- COPY --from=builder /usr/local/bin/helm /usr/local/bin/helm
- COPY --from=builder /build/kustomize /usr/local/bin
- COPY --from=builder /build/PolicyGenerator /kustomize-plugins/policy.open-cluster-management.io/v1/policygenerator/
- RUN dnf update -y && dnf clean all
- ENV KUSTOMIZE_PLUGIN_HOME=/kustomize-plugins
- RUN kustomize version
- RUN helm version
options:
tags:
- ee-kube-hub-init-tools:latest