Evaluation of reclass and possible inventory alternatives #1007
Replies: 4 comments 2 replies
-
Thank you @MatteoVoges, great work. Is there a branch with a working setup that we could test? |
Beta Was this translation helpful? Give feedback.
-
You can test now the new features regarding omegaconf: Installation and setupDockerCreate a new Dockerfile:FROM python:3.10-slim AS python-builder
USER root
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
curl \
build-essential \
git \
ssh-client \
libmagic1 \
gnupg \
ca-certificates \
gosu
RUN git clone \
--recurse-submodules -j8 \
--branch pluggable-inventory \
https://github.com/neXenio/kapitan.git /kapitan
WORKDIR /kapitan
# build kapitan
RUN pip install -e .
# Install Helm
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 \
&& chmod 700 get_helm.sh \
&& HELM_INSTALL_DIR=/usr/local/bin ./get_helm.sh \
&& rm get_helm.sh
RUN apt-get install -y default-jre
# install omegaconf
RUN make pull_oc
ENTRYPOINT ["kapitan"] Build the image with Manual (Dev Mode)
UsageFirst I highly recommend you to backup your inventory or creating a test inventory, in case something works not as expected. So run If you installed the project in dev mode, you are able to experiment with costum resolvers. At the moment there are several resolvers already enabled. Here are some highlights:
You can extend these resolvers or implement your own in If you have problems with setup or questions in general, please leave them here and I'm happy to answer them. |
Beta Was this translation helpful? Give feedback.
-
How much effort would it be to port reclass to python3 and compile it as a package do you think? VS migrating everyone's inventories and semantics. Cause even with OmegaConf it seems like you'll still need a translation later from inventory yaml to omegaconf constructs? |
Beta Was this translation helpful? Give feedback.
-
@uberspot the reasons are not just to do with python3 port, but in general to do with the inability to easily extend and improve on reclass. Plan is to maintain compatibilty with reclass, so this would be an addition for people that want to move to use it. |
Beta Was this translation helpful? Give feedback.
-
Hello, I want to share my thoughts about the current inventory solution with reclass, pro's and con's of it and other inventory alternatives and the introduction of a pluggable inventory system.
Current Solution with reclass
Advantages ✔️
Disadvantages ❌
Your opinion
Now your opinion and ideas are needed:
What do you like about reclass? What features are missing to improve your workflows? What else could be added to my list above?
Inventory alternatives
OmegaConf
Advantages ✔️
Disadvantages ❌
There are several more options, but OmegaConf seems really easy to use, easy to integrate into kapitan and its actively maintained.
All type of feedback is welcome, so ask questions, share your thoughts with us and let us also know, which features you want to have in your inventory in general!
Other
References
Beta Was this translation helpful? Give feedback.
All reactions