forked from project-flotta/osbuild-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OSBuildEnvConfig Controller - Create and Setup Workers
Controller ---------- Create ConfigMaps for Ansible configuration and playbook Create ConfigMap for the osbuild-worker Create Secret with SSH Key-Pair if needed For each VM: - If needed, create the VM and expose its SSH port as a service - Create certificate - Create ConfigMap for the inventory - Create the Setup Job Remove the worker certificate secrets on teardown main.go ------- Add kubevirt v1 to Scheme Create Job and VM repositories Templates --------- Add templates for: - Worker VM - Worker Setup Job - OSBuild-Worker configuration - Ansible Config - Ansible Inventory - Ansible Playbook Repository ---------- Add repositories for Job and CNV VM RBAC ---- Add permissions for Jobs and CNV VMs SSHKey ------ Add package for SSH Key-Pair generation Setup Container image --------------------- Add Dockerfile Add Makefile rules Add ansible requirements.yml file Type ---- Add comment about the required key in the CABundle secret Config ------ Add configuration flags for the worker setup container image name and tag Add configuration flags for the composer api service container image name and tag Add configuration flags for the envoy proxy container image name and tag Add configuration flags for the OSBuild and OSBuild-Composer release tags Unit Tests ---------- Add tests to the new code Sample ------ Rename the worker to avoid conflict with node Add caBundleSecretReference Signed-off-by: Ygal Blum <[email protected]>
- Loading branch information
Showing
171 changed files
with
35,097 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM registry.access.redhat.com/ubi8/python-39 | ||
|
||
USER 0 | ||
|
||
COPY resources/ansible/requirements.yml /tmp/requirements.yml | ||
|
||
RUN dnf install skopeo -y && \ | ||
pip install --upgrade pip && \ | ||
pip install openshift && \ | ||
pip install jmespath && \ | ||
pip install netaddr && \ | ||
pip install ansible==2.9.27 && \ | ||
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz | \ | ||
tar -xvzf - -C /usr/local/bin/ oc && chmod 755 /usr/local/bin/oc && ln -s /usr/local/bin/oc /usr/local/bin/kubectl && \ | ||
ansible-galaxy collection install -r /tmp/requirements.yml | ||
|
||
RUN chgrp -R 0 $HOME && chmod -R g=u $HOME | ||
|
||
USER 1001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.