diff --git a/.classpath b/.classpath
new file mode 100644
index 0000000000000000000000000000000000000000..77be441ed433d53bd6dcdbbd819c2546c1329c0d
--- /dev/null
+++ b/.classpath
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
+		<attributes>
+			<attribute name="test" value="true"/>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
+		<attributes>
+			<attribute name="test" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000000000000000000000000000000000000..18308defdbd17a8bd5837fef98d92d04e0014ed4
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,6 @@
+eclipse.preferences.version=1
+encoding//src/main/java=utf-8
+encoding//src/main/resources=utf-8
+encoding//src/test/java=utf-8
+encoding//src/test/resources=utf-8
+encoding/<project>=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000000000000000000000000000000000..cf2cd4590a7b37a700141633a3f00c030130be1e
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000000000000000000000000000000000000..f897a7f1cb2389f85fe6381425d29f0a9866fb65
--- /dev/null
+++ b/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..f72841681412bded14103d909ddc67b83d69a956
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,65 @@
+FROM ibm-semeru-runtimes:open-17.0.7_7-jdk
+MAINTAINER osl.etsi.org
+
+# Update the package list and install dependencies for Docker and Python3
+RUN apt-get update && apt-get install -y \
+    apt-transport-https \
+    ca-certificates \
+    curl \
+    gnupg \
+    lsb-release \
+    python3 \
+    git \
+    python3-pip \
+    build-essential
+    
+
+# Create a directory for the Docker GPG key
+RUN mkdir -p /etc/apt/keyrings
+
+# Download the Docker GPG key and save it in the keyrings directory
+RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
+
+# Set up the stable repository for Docker
+RUN echo \
+    "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
+    | tee /etc/apt/sources.list.d/docker.list > /dev/null
+
+# Update the package index and install Docker CLI
+RUN apt-get update && apt-get install -y docker-ce-cli && apt-get install -y yamllint  && apt-get install -y iproute2
+
+# Install PyYAML using pip3
+RUN pip3 install PyYAML
+
+
+# Update the package index and install Docker CLI
+RUN apt-get update && apt-get install -y docker-ce-cli
+#copy the config file so the service can connect to cluster
+RUN mkdir /root/.kube
+COPY src/main/resources/config /root/.kube
+
+# Set the working directory inside the container
+WORKDIR /opt
+
+# Copy the tar.gz file from the build context (where the Dockerfile is located)
+# to the /opt directory in the container
+COPY src/main/resources/sylva-core-deploy.tar.gz /opt/
+
+# Create the /opt/sylva-core directory and extract the tar.gz file into it
+RUN tar -xzf /opt/sylva-core-deploy.tar.gz -C /opt \
+    && mv /opt/sylva-core-deploy /opt/sylva-core
+
+# Optional: remove the tar.gz file after extracting 
+RUN rm /opt/sylva-core-deploy.tar.gz
+
+#copy the management-cluster-kubeconfig
+COPY src/main/resources/management-cluster-kubeconfig /opt/sylva-core/management-cluster-kubeconfig
+
+
+# Set the working directory to the extracted folder (if you want to use it later)
+WORKDIR /opt/sylva-core
+
+RUN git config --global --add safe.directory /opt/sylva-core
+
+COPY target/org.etsi.osl.controllers.sylva-0.0.1-SNAPSHOT-exec.jar /opt/sylva-core
+CMD ["java", "-jar", "/opt/sylva-core/org.etsi.osl.controllers.sylva-0.0.1-SNAPSHOT-exec.jar"]
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,201 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/README.md b/README.md
index 8e7f1b41206a017cec4aa794a1ccc1b725ee488b..b089c9cfb0b0a490965d5723dba55708098d4fd7 100644
--- a/README.md
+++ b/README.md
@@ -1,92 +1,6 @@
 # org.etsi.osl.controllers.sylva
 
-
+An experimental kubernetes operator to manage Sylva Workload clusters
 
 ## Getting started
 
-To make it easy for you to get started with GitLab, here's a list of recommended next steps.
-
-Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
-
-## Add your files
-
-- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
-- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
-
-```
-cd existing_repo
-git remote add origin https://labs.etsi.org/rep/osl/code/addons/org.etsi.osl.controllers.sylva.git
-git branch -M main
-git push -uf origin main
-```
-
-## Integrate with your tools
-
-- [ ] [Set up project integrations](https://labs.etsi.org/rep/osl/code/addons/org.etsi.osl.controllers.sylva/-/settings/integrations)
-
-## Collaborate with your team
-
-- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
-- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
-- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
-- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
-- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
-
-## Test and Deploy
-
-Use the built-in continuous integration in GitLab.
-
-- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
-- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
-- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
-- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
-- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
-
-***
-
-# Editing this README
-
-When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
-
-## Suggestions for a good README
-Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
-
-## Name
-Choose a self-explaining name for your project.
-
-## Description
-Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
-
-## Badges
-On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
-
-## Visuals
-Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
-
-## Installation
-Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
-
-## Usage
-Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
-
-## Support
-Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
-
-## Roadmap
-If you have ideas for releases in the future, it is a good idea to list them in the README.
-
-## Contributing
-State if you are open to contributions and what your requirements are for accepting them.
-
-For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
-
-You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
-
-## Authors and acknowledgment
-Show your appreciation to those who have contributed to the project.
-
-## License
-For open source projects, say how it is licensed.
-
-## Project status
-If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2f7e60d2279e9ae92a9ccc75a51d938940b68d08
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,167 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+
+	<groupId>org.etsi.osl</groupId>
+	<artifactId>org.etsi.osl.controllers.sylva</artifactId>
+	<version>0.0.1-SNAPSHOT</version>
+	<name>org.etsi.osl.controllers.sylva</name>
+	<description>Used to allow OSL to manage Sylva workload clusters</description>
+	<organization>
+		<name>osl.etsi.org</name>
+		<url>https://osl.etsi.org</url>
+	</organization>
+
+	<inceptionYear>2024</inceptionYear>
+
+	<properties>
+		<java.version>17</java.version>
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+		<spring.boot-version>3.2.2</spring.boot-version>
+		<spring.boot.fabric8-version>3.1.0</spring.boot.fabric8-version>
+		<fabric8.version>6.10.0</fabric8.version>
+
+		<slf4j-api.version>1.7.5</slf4j-api.version>
+		<slf4j-simple.version>1.7.28</slf4j-simple.version>
+		<maven-license-plugin.version>2.0.0</maven-license-plugin.version>
+		<license.licenseName>apache_v2</license.licenseName>
+	</properties>
+
+	<dependencyManagement>
+		<dependencies>
+			<!-- Spring Boot BOM -->
+			<dependency>
+				<groupId>org.springframework.boot</groupId>
+				<artifactId>spring-boot-dependencies</artifactId>
+				<version>${spring.boot-version}</version>
+				<type>pom</type>
+				<scope>import</scope>
+			</dependency>
+			<dependency>
+				<groupId>org.springframework.cloud</groupId>
+				<artifactId>spring-cloud-starter-kubernetes-fabric8-all</artifactId>
+				<version>${spring.boot.fabric8-version}</version>
+			</dependency>
+
+		</dependencies>
+
+	</dependencyManagement>
+	<dependencies>
+		<!-- Spring Boot and related dependencies -->
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-web</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-actuator</artifactId>
+		</dependency>
+
+		<!-- Add Kubernetes client dependency for Java -->
+		<dependency>
+			<groupId>io.fabric8</groupId>
+			<artifactId>kubernetes-client</artifactId>
+			<version>6.2.0</version>
+		</dependency>
+
+
+		<dependency>
+			<groupId>org.projectlombok</groupId>
+			<artifactId>lombok</artifactId>
+			<scope>provided</scope>
+		</dependency>
+	</dependencies>
+
+
+
+	<build>
+		<pluginManagement>
+			<plugins>
+				<plugin>
+					<groupId>org.springframework.boot</groupId>
+					<artifactId>spring-boot-maven-plugin</artifactId>
+				</plugin>
+				<plugin>
+					<groupId>org.apache.maven.plugins</groupId>
+					<artifactId>maven-compiler-plugin</artifactId>
+					<configuration>
+						<source>17</source>
+						<target>17</target>
+						<annotationProcessorPaths>
+							<path>
+								<groupId>org.projectlombok</groupId>
+								<artifactId>lombok</artifactId>
+								<version>1.18.28</version>
+							</path>
+						</annotationProcessorPaths>
+					</configuration>
+				</plugin>
+				<plugin>
+					<!-- run mvn license:update-file-header to manually update all headers 
+						everywhere -->
+					<groupId>org.codehaus.mojo</groupId>
+					<artifactId>license-maven-plugin</artifactId>
+					<version>${maven-license-plugin.version}</version>
+					<configuration>
+						<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
+						<processStartTag>========================LICENSE_START=================================</processStartTag>
+						<processEndTag>=========================LICENSE_END==================================</processEndTag>
+						<excludes>*.json</excludes>
+					</configuration>
+					<executions>
+						<execution>
+							<id>generate-license-headers</id>
+							<goals>
+								<goal>update-file-header</goal>
+							</goals>
+							<phase>process-sources</phase>
+							<configuration>
+								<licenseName>${license.licenseName}</licenseName>
+
+							</configuration>
+						</execution>
+						<execution>
+							<id>download-licenses</id>
+							<goals>
+								<goal>download-licenses</goal>
+							</goals>
+						</execution>
+					</executions>
+				</plugin>
+			</plugins>
+		</pluginManagement>
+		<plugins>
+			<plugin>
+				<groupId>org.springframework.boot</groupId>
+				<artifactId>spring-boot-maven-plugin</artifactId>
+				<version>${spring.boot-version}</version>
+				<executions>
+					<execution>
+						<goals>
+							<goal>repackage</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.springframework.boot</groupId>
+				<artifactId>spring-boot-maven-plugin</artifactId>
+				<version>${spring.boot-version}</version>
+				<configuration>
+					<classifier>exec</classifier>
+				</configuration>
+			</plugin>
+		</plugins>
+
+	</build>
+
+
+
+
+
+
+
+</project>
\ No newline at end of file
diff --git a/src/main/java/org/etsi/osl/controllers/sylva/KubernetesClientConfig.java b/src/main/java/org/etsi/osl/controllers/sylva/KubernetesClientConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..c1415911f89792494f1881dd5a96d26799c79ec2
--- /dev/null
+++ b/src/main/java/org/etsi/osl/controllers/sylva/KubernetesClientConfig.java
@@ -0,0 +1,45 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.controllers.sylva
+ * %%
+ * Copyright (C) 2024 osl.etsi.org
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * =========================LICENSE_END==================================
+ */
+package org.etsi.osl.controllers.sylva;
+
+import io.fabric8.kubernetes.client.Config;
+import io.fabric8.kubernetes.client.ConfigBuilder;
+import io.fabric8.kubernetes.client.KubernetesClient;
+import io.fabric8.kubernetes.client.KubernetesClientBuilder;
+import io.fabric8.kubernetes.client.utils.HttpClientUtils;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class KubernetesClientConfig {
+
+  @Bean
+  public KubernetesClient kubernetesClient() {
+    // Create a custom configuration that disables SSL verification
+    Config config = new ConfigBuilder()
+        .withRequestTimeout(30000)  // 30 seconds
+        .withConnectionTimeout(30000)  // 30 seconds
+        .withWatchReconnectInterval(5000)  // Reconnect interval for watches
+        .build(); 
+
+    // Build the Kubernetes client with this configuration
+    return new KubernetesClientBuilder().withConfig(config).build();
+  }
+}
diff --git a/src/main/java/org/etsi/osl/controllers/sylva/SylvaControllerApp.java b/src/main/java/org/etsi/osl/controllers/sylva/SylvaControllerApp.java
new file mode 100644
index 0000000000000000000000000000000000000000..d2bc44a5f23eff78056eb02ff364762927bffd71
--- /dev/null
+++ b/src/main/java/org/etsi/osl/controllers/sylva/SylvaControllerApp.java
@@ -0,0 +1,34 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.controllers.sylva
+ * %%
+ * Copyright (C) 2024 osl.etsi.org
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * =========================LICENSE_END==================================
+ */
+package org.etsi.osl.controllers.sylva;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+/**
+ * 
+ */
+@SpringBootApplication
+public class SylvaControllerApp {
+
+  public static void main(String[] args) {
+    SpringApplication.run(SylvaControllerApp.class, args);
+  }
+}
diff --git a/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResource.java b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResource.java
new file mode 100644
index 0000000000000000000000000000000000000000..869eb3d5c220bcae9cf62a0bacf5253fb663e42c
--- /dev/null
+++ b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResource.java
@@ -0,0 +1,32 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.controllers.sylva
+ * %%
+ * Copyright (C) 2024 osl.etsi.org
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * =========================LICENSE_END==================================
+ */
+package org.etsi.osl.controllers.sylva;
+
+import io.fabric8.kubernetes.api.model.Namespaced;
+import io.fabric8.kubernetes.client.CustomResource;
+import io.fabric8.kubernetes.model.annotation.Group;
+import io.fabric8.kubernetes.model.annotation.Version;
+
+@Version("v1alpha1") // -> CRD Version
+@Group("controllers.osl.etsi.org") // -> CRD Group
+public class SylvaMDResource
+		extends CustomResource<SylvaMDResourceSpec, SylvaMDResourceStatus> 
+		implements Namespaced {
+} // -> CRD scope Namespaced
diff --git a/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceOperator.java b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceOperator.java
new file mode 100644
index 0000000000000000000000000000000000000000..91411720523338e30930fc66e946d2932aed80ef
--- /dev/null
+++ b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceOperator.java
@@ -0,0 +1,706 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.controllers.sylva
+ * %%
+ * Copyright (C) 2024 osl.etsi.org
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * =========================LICENSE_END==================================
+ */
+package org.etsi.osl.controllers.sylva;
+
+import io.fabric8.kubernetes.api.model.ConfigMap;
+import io.fabric8.kubernetes.api.model.KubernetesResourceList;
+import io.fabric8.kubernetes.client.KubernetesClient;
+import io.fabric8.kubernetes.client.dsl.MixedOperation;
+import io.fabric8.kubernetes.client.dsl.Resource;
+import io.fabric8.kubernetes.client.informers.ResourceEventHandler;
+import io.fabric8.kubernetes.client.informers.SharedIndexInformer;
+import lombok.Data;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.yaml.snakeyaml.DumperOptions;
+import org.yaml.snakeyaml.Yaml;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+@Service
+public class SylvaMDResourceOperator {
+
+  private static final Logger log = LoggerFactory.getLogger(SylvaMDResourceOperator.class);
+
+  private static final String WORKINGDIR_PATH = "/opt/sylva-core"; // Change working directory to
+                                                                   // /opt/sylva-core
+
+  private static final String SYLVA_BIN_PATH = "/opt/sylva-core/bin/"; // Change working directory to
+                                                                   // /opt/sylva-core
+
+  private static final String WORKLOAD_CLUSTERS_DIR =
+      "/opt/sylva-core/environment-values/workload-clusters/";
+
+  @Autowired
+  private KubernetesClient kubernetesClient;
+
+  @Data
+  private static class ExecResult {
+    public ExecResult(int i, String s) {
+      this.exitCode = i;
+      this.lastLine = s;
+    }
+
+    private String lastLine;
+    private int exitCode;
+  }
+
+
+  @Autowired
+  public SylvaMDResourceOperator(KubernetesClient kubernetesClient) {
+    this.kubernetesClient = kubernetesClient;
+    // Start watching for resource events
+    watchResources();
+  }
+
+  // Watch for events on SylvaMDResource
+  private void watchResources() {
+
+
+    MixedOperation<SylvaMDResource, KubernetesResourceList<SylvaMDResource>, Resource<SylvaMDResource>> resourceClient =
+        kubernetesClient.resources(SylvaMDResource.class);
+
+    SharedIndexInformer<SylvaMDResource> sharedIndexInformer =
+        resourceClient.inAnyNamespace().inform(new ResourceEventHandler<SylvaMDResource>() {
+
+          @Override
+          public void onAdd(SylvaMDResource resource) {
+            log.info("===== onAdd action =====");
+            reconcile(resource, null, kubernetesClient);
+
+          }
+
+          @Override
+          public void onUpdate(SylvaMDResource oldResource, SylvaMDResource resource) {
+            log.info("===== onUpdate action =====");
+            reconcile(resource, oldResource, kubernetesClient);
+
+          }
+
+          @Override
+          public void onDelete(SylvaMDResource resource, boolean deletedFinalStateUnknown) {
+            //deletion is handled by reconcile due to finalizers
+            // handleDelete(resource, kubernetesClient);
+            log.info("===== onDelete action =====");
+            log.info("Removed resource from system SylvaMDResource: {}",
+                resource.getMetadata().getName());
+          }
+
+
+        });
+
+    // try {
+    // Thread.sleep(60 * 1000L);
+    // } catch (InterruptedException e) {
+    // // TODO Auto-generated catch block
+    // e.printStackTrace();
+    // }
+    // log.info("SharedIndexInformer open for 6000 seconds");
+
+    log.info("SharedIndexInformer running");
+    sharedIndexInformer.run();
+
+
+    // resourceClient.inAnyNamespace().watch(new Watcher<SylvaMDResource>() {
+    // @Override
+    // public void eventReceived(Action action, SylvaMDResource resource) {
+    // switch (action) {
+    // case ADDED:
+    //
+    // // here concider to go with a thread
+    // // Thread reconcileThread = new Thread(this::reconcile);
+    // // reconcileThread.start(); // Start the thread
+    // reconcile(action, resource, kubernetesClient);
+    //
+    //
+    // break;
+    // case MODIFIED:
+    //
+    //
+    // reconcile(action, resource, kubernetesClient);
+    // break;
+    // case DELETED:
+    // handleDelete(resource, kubernetesClient);
+    // break;
+    // default:
+    // log.warn("Unknown action: {}", action);
+    // break;
+    // }
+    // }
+    //
+    // @Override
+    // public void onClose(WatcherException cause) {
+    // if (cause != null) {
+    // log.error("Watcher closed due to: {}", cause.getMessage());
+    // restartWatcher();
+    // }
+    // }
+    // });
+
+
+  }
+
+
+  // Handle the deletion of the SylvaMDResource
+  private void handleDelete(SylvaMDResource resource, KubernetesClient client) {
+    log.info("Handling deletion of SylvaMDResource: {}", resource.getMetadata().getName());
+    String deploymentFolder = WORKLOAD_CLUSTERS_DIR + resource.getMetadata().getName();
+    SylvaMDResource resourceClone = performSylvaDeleteWCActions(resource, client);
+    deleteDeploymentFolder(deploymentFolder);
+  }
+
+
+  /**
+   * 
+   * will perform some CLI actions to (hopefully) remove the cluster the actions are from the page
+   * https://sylva-projects.gitlab.io/operations/procedures/lcm/cluster-operations/remove-workload-cluster
+   * 
+   * @param resource
+   * @param client
+   * @return
+   */
+  private SylvaMDResource performSylvaDeleteWCActions(SylvaMDResource resource,
+      KubernetesClient client) {
+
+    String cmd = "";
+    int exitCode = 0;
+    String wcName = resource.getMetadata().getName();
+    log.info("The resource is in {} state. Will proceed to execute commands towards Sylva mgmt cluster.", resource.getStatus().getState());
+
+    SylvaMDResource resourceClone = updateResourceStatus(resource,
+        SylvaMDResourceState.DELETE_IN_PROGRESS, "start deletion", client);
+
+
+    log.info("Suspend all kustomization and helmrealeses for workload cluster namespace");
+
+//    cmd = String.format(
+//        "source bin/env",
+//        wcName);
+//    exitCode += execCLICommand(cmd).getExitCode();
+    
+    
+    cmd = String.format(
+        SYLVA_BIN_PATH+"flux suspend -n %s --all kustomization --kubeconfig management-cluster-kubeconfig",
+        wcName);
+    exitCode += execCLICommand(cmd).getExitCode();
+
+
+    cmd = String.format(
+        SYLVA_BIN_PATH+"flux suspend -n %s --all helmrelease --kubeconfig management-cluster-kubeconfig", wcName);
+    exitCode += execCLICommand(cmd).getExitCode();
+
+
+    log.info("Remove resources (VMs) from cluster");
+    cmd = String.format(
+        SYLVA_BIN_PATH+"kubectl delete -n %s clusters.cluster.x-k8s.io %s --kubeconfig management-cluster-kubeconfig",
+        wcName, wcName);
+    exitCode += execCLICommand(cmd).getExitCode();
+
+    // this is applicable only for rke2-capo deployments - if this is not done before ns deletion,
+    // the ns will remain in terminating mode
+    log.info("Remove the capo heatstack before removing the controller");
+    cmd = String.format(
+        SYLVA_BIN_PATH+"kubectl delete -n %s heatstacks heatstack-capo-cluster-resources --kubeconfig management-cluster-kubeconfig",
+        wcName);
+    exitCode += execCLICommand(cmd).getExitCode();
+
+    log.info("Deletes a job in a different namespace kube-job");
+    cmd = String.format(
+        SYLVA_BIN_PATH+"kubectl delete -n kube-job job create-image-info-%s --kubeconfig management-cluster-kubeconfig",
+        wcName);
+    exitCode += execCLICommand(cmd).getExitCode();
+
+    log.info("Delete namespace and remove all resources in the workload cluster namespace");
+
+    cmd = String.format(SYLVA_BIN_PATH+"kubectl delete namespace %s --kubeconfig management-cluster-kubeconfig",
+        wcName);
+    exitCode += execCLICommand(cmd).getExitCode();
+
+    if (exitCode == 0) {
+      log.info("All delete commands executed successfully in {} for cluster {}", WORKINGDIR_PATH,
+          wcName);
+      resourceClone = updateResourceStatus(resourceClone, SylvaMDResourceState.DELETED,
+          "executing apply-workload-cluster.sh success ", client);
+    } else {
+      log.info("Some delete commands failed execution in {} for cluster {}. Exit code: {}",
+          WORKINGDIR_PATH, wcName, exitCode);
+
+      resourceClone = updateResourceStatus(resourceClone, SylvaMDResourceState.DELETE_FAILED,
+          "executing apply-workload-cluster.sh failed", client);
+
+    }
+
+    return resourceClone;
+
+  }
+
+  // Delete the deployment folder
+  private void deleteDeploymentFolder(String path) {
+
+
+    log.info("Will not delete deployment folder: {}", path);
+
+    // File folder = new File(path);
+    // if (folder.exists()) {
+    // boolean deleted = folder.delete();
+    // boolean deleted = false;
+    // if (deleted) {
+    // log.info("Deleted deployment folder: {}", path);
+    // } else {
+    // log.error("Failed to delete deployment folder: {}", path);
+    // }
+    // }
+
+
+
+  }
+
+  // // Restart the watcher if it closes unexpectedly
+  // private void restartWatcher() {
+  // log.info("Restarting the watcher...");
+  // watchResources();
+  // }
+
+  public SylvaMDResource reconcile(SylvaMDResource resource, SylvaMDResource oldResource,
+      KubernetesClient client) {
+
+    log.info("reconciling");
+
+
+    // Handle resource deletion
+    if (resource.getMetadata().getDeletionTimestamp() != null) {
+      if (resource.getStatus().getState().equals(SylvaMDResourceState.DELETE_IN_PROGRESS) 
+          || resource.getStatus().getState().equals(SylvaMDResourceState.DELETE_FAILED) 
+          || resource.getStatus().getState().equals(SylvaMDResourceState.DELETED) ) {
+        log.info("The resource is in {} state. Reconcile deletion action is ignored.",
+            resource.getStatus().getState());
+        return resource;
+      }
+      // Perform cleanup logic
+      handleDelete(resource, client);
+
+      removeFinalizer(resource, client);
+      return null;
+    }
+    
+    
+
+    if (oldResource == null) {
+      if (resource.getStatus() != null) {
+        log.info(
+            "Old resource is NULL. Current resource is in {} state. Reconcile action is ignored.",
+            resource.getStatus().getState());
+        return resource;
+      }
+    } else {
+
+      log.info("oldResource.spec = {}", oldResource.getSpec().toString());
+      log.info("newresource.spec = {}", resource.getSpec().toString());
+
+      if (resource.getStatus() == null) {
+        log.info("The resource has NULL status.");
+        return resource;
+      }
+      if (!resource.getStatus().getState().equals(SylvaMDResourceState.ACTIVE)
+          && !resource.getStatus().getState().equals(SylvaMDResourceState.FAILED)) {
+        log.info("The resource is in {} state. Reconcile action is ignored.",
+            resource.getStatus().getState());
+        return resource;
+      }
+
+
+      // Compare old and new resource state ( compare spec, status, etc.)
+      if (resource.getSpec().toString().equals(oldResource.getSpec().toString())) {
+        log.info("No significant changes detected, skipping reconciliation.");
+        return resource; // Skip reconciliation if there are no significant changes
+      }
+    }
+    
+
+    //uncomment to short-circuit and put it immediatelly active
+//    SylvaMDResource resourceClone = addFinalizers(resource, client);
+//    return updateResourceStatus(resourceClone, SylvaMDResourceState.ACTIVE,
+//        "executing apply-workload-cluster.sh success ", client);
+    
+    
+    
+
+
+    SylvaMDResource resourceClone =
+        updateResourceStatus(resource, SylvaMDResourceState.IN_PROGRESS, "reconciling", client);
+    resourceClone = addFinalizers(resourceClone, client);
+
+    String resourceName = resource.getMetadata().getName();
+    String namespace = resource.getMetadata().getNamespace();
+    String deploymentFolder = WORKLOAD_CLUSTERS_DIR + resourceName;
+
+
+
+    // Step 1: Create a new deployment folder
+    createDeploymentFolder(deploymentFolder);
+
+    // Step 2: Create empty kustomization.yaml, values.yaml, secrets.yaml files
+    createEmptyFile(deploymentFolder + "/kustomization.yaml");
+    createEmptyFile(deploymentFolder + "/values.yaml");
+    createEmptyFile(deploymentFolder + "/secrets.yaml");
+
+    // Step 3: Modify values.yaml using SylvaMDResourceSpec
+    populateAndModifyValuesYaml(namespace, "values.sylvamd.configmaps.osl.etsi.org",
+        deploymentFolder + "/values.yaml", resourceClone.getSpec());
+
+    // Step 4: Populate kustomization.yaml and secrets.yaml from ConfigMaps
+    populateFileFromConfigMap(namespace, "kustomization.sylvamd.configmaps.osl.etsi.org",
+        deploymentFolder + "/kustomization.yaml");
+    populateFileFromConfigMap(namespace, "secrets.sylvamd.configmaps.osl.etsi.org",
+        deploymentFolder + "/secrets.yaml");
+
+    // Step 5: Execute the shell script
+    resourceClone = executeShellScriptApplyWC(deploymentFolder, resourceClone, client);
+    resourceClone = executeShellScriptGetWCKubeconfig(deploymentFolder, resourceClone, client);
+    return resourceClone;
+  }
+
+
+
+  // Create the deployment folder
+  private void createDeploymentFolder(String path) {
+    File folder = new File(path);
+    if (!folder.exists()) {
+      boolean created = folder.mkdirs();
+      if (created) {
+        log.info("Created deployment folder: {}", path);
+      } else {
+        log.error("Failed to create deployment folder: {}", path);
+      }
+    }
+  }
+
+  // Create empty files (kustomization.yaml, values.yaml, secrets.yaml)
+  private void createEmptyFile(String filePath) {
+    try {
+      File file = new File(filePath);
+      if (!file.exists()) {
+        boolean created = file.createNewFile();
+        if (created) {
+          log.info("Created file: {}", filePath);
+        }
+      }
+    } catch (IOException e) {
+      log.error("Error creating file: {}", filePath, e);
+    }
+  }
+
+  // Populate values.yaml and replace the control_plane_replicas and md0.replicas
+  private void populateAndModifyValuesYaml(String namespace, String configMapName, String filePath,
+      SylvaMDResourceSpec spec) {
+    try {
+      // Retrieve the ConfigMap
+      ConfigMap configMap =
+          kubernetesClient.configMaps().inNamespace(namespace).withName(configMapName).get();
+
+      if (configMap != null && configMap.getData() != null) {
+        // Fetch the content of the file from the ConfigMap
+        String content = configMap.getData().values().stream().findFirst().orElse("");
+
+        // Modify the content using SylvaMDResourceSpec
+        content = replaceYamlValues(content, spec);
+
+        // Write the modified content to the specified file
+        Files.write(Paths.get(filePath), content.getBytes());
+        log.info("Populated and modified values.yaml from ConfigMap {}", configMapName);
+      } else {
+        log.error("Failed to find or read ConfigMap: {}", configMapName);
+      }
+    } catch (IOException e) {
+      log.error("Error writing to file: {}", filePath, e);
+    }
+  }
+
+  // Replace control_plane_replicas and machine_deployments.md0.replicas using SnakeYAML
+  private String replaceYamlValues(String yamlContent, SylvaMDResourceSpec spec) {
+    Yaml yaml = new Yaml();
+    Map<String, Object> yamlData = yaml.load(yamlContent);
+
+    // Update control_plane_replicas
+    Map<String, Object> cluster = (Map<String, Object>) yamlData.get("cluster");
+    cluster.put("control_plane_replicas", spec.getClusterControlPlaneReplicas());
+
+    // Update machine_deployments.md0.replicas
+    Map<String, Object> machineDeployments =
+        (Map<String, Object>) cluster.get("machine_deployments");
+    Map<String, Object> md0 = (Map<String, Object>) machineDeployments.get("md0");
+    md0.put("replicas", spec.getClusterMd0Replicas());
+
+    // Serialize the modified YAML back to a string
+    Yaml yamlOutput = new Yaml(getYamlDumperOptions());
+    return yamlOutput.dump(yamlData);
+  }
+
+  // Configure the YAML DumperOptions to maintain the original formatting as much as possible
+  private DumperOptions getYamlDumperOptions() {
+    DumperOptions options = new DumperOptions();
+    options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
+    options.setPrettyFlow(true);
+    options.setIndent(2);
+    return options;
+  }
+
+  private void populateFileFromConfigMap(String namespace, String configMapName, String filePath) {
+    try {
+      ConfigMap configMap =
+          kubernetesClient.configMaps().inNamespace(namespace).withName(configMapName).get();
+
+      if (configMap != null && configMap.getData() != null) {
+        String content = configMap.getData().values().stream().findFirst().orElse("");
+        Files.write(Paths.get(filePath), content.getBytes());
+        log.info("Populated file {} from ConfigMap {}", filePath, configMapName);
+      } else {
+        log.error("Failed to find or read ConfigMap: {}", configMapName);
+      }
+    } catch (IOException e) {
+      log.error("Error writing to file: {}", filePath, e);
+    }
+  }
+
+  // Execute the shell script to apply the workload with the working directory set to
+  // /opt/sylva-core
+  private SylvaMDResource executeShellScriptApplyWC(String deploymentFolderPath,
+      SylvaMDResource resource, KubernetesClient client) {
+
+    File workingDir = new File(WORKINGDIR_PATH);
+    File scriptFile = new File(workingDir, "apply-workload-cluster.sh");
+
+
+    SylvaMDResource resourceClone = updateResourceStatus(resource, SylvaMDResourceState.IN_PROGRESS,
+        "executing script", client);
+
+    // Check if the script file exists before executing it
+    if (!scriptFile.exists() || !scriptFile.isFile()) {
+      log.error("Shell script {} does not exist in working directory {}", scriptFile.getName(),
+          WORKINGDIR_PATH);
+      return resourceClone;
+    }
+
+    String command = "./apply-workload-cluster.sh " + deploymentFolderPath;
+    int exitCode = execCLICommand(command).getExitCode();
+
+
+    if (exitCode == 0) {
+      log.info("Shell script executed successfully in {} for {}", WORKINGDIR_PATH,
+          deploymentFolderPath);
+      resourceClone = updateResourceStatus(resource, SylvaMDResourceState.ACTIVE,
+          "executing apply-workload-cluster.sh success ", client);
+    } else {
+      log.error("Shell script execution failed in {} for {}. Exit code: {}", WORKINGDIR_PATH,
+          deploymentFolderPath, exitCode);
+
+      resourceClone = updateResourceStatus(resource, SylvaMDResourceState.FAILED,
+          "executing apply-workload-cluster.sh failed", client);
+
+    }
+
+    return resource;
+  }
+
+
+  private SylvaMDResource executeShellScriptGetWCKubeconfig(String deploymentFolderPath,
+      SylvaMDResource resource, KubernetesClient client) {
+
+    String wcName = resource.getMetadata().getName();
+
+    String cmd = String.format(
+        SYLVA_BIN_PATH+"kubectl get secret -n %s %s-kubeconfig --kubeconfig management-cluster-kubeconfig -o template={{.data.value}}",
+        wcName, wcName);
+
+
+
+    ExecResult res = execCLICommand(cmd);
+    String secret = res.getLastLine();
+    int exitCode = res.getExitCode();
+    log.info("Workload cluster name:{} , Secret value(BASE64):{}", wcName, secret);
+
+    if (exitCode == 0) {
+      log.info("Shell script executed successfully in {}:  {}", WORKINGDIR_PATH, cmd);
+
+      try {
+        resource.getStatus().setSecret(secret);
+        resource = client.resource(resource).patch();
+
+        return resource;
+      } catch (Exception e) {
+        return null;
+      }
+
+
+    } else {
+      log.error("Shell script execution failed in {} for {}. Exit code: {}, Command: {}",
+          WORKINGDIR_PATH, deploymentFolderPath, exitCode, cmd);
+
+    }
+
+    return resource;
+  }
+
+
+
+  private ExecResult execCLICommand(String command) {
+
+
+    File workingDir = new File(WORKINGDIR_PATH);
+
+    ExecResult execResult = new ExecResult(-1, null);
+
+    ProcessBuilder processBuilder = new ProcessBuilder(command.split(" "));
+
+    // Set the working directory to WORKINGDIR_PATH /opt/sylva-core
+    processBuilder.directory(workingDir);
+
+    try {
+
+      log.info("Will process command: {}", command);
+
+      Process process = processBuilder.start(); // Start the process
+
+      // Create a separate thread to capture the standard error
+      Thread errorThread = new Thread(() -> {
+        try {
+          BufferedReader errorReader =
+              new BufferedReader(new InputStreamReader(process.getErrorStream()));
+          StringBuilder errors = new StringBuilder();
+          String errorLine;
+          while ((errorLine = errorReader.readLine()) != null) {
+            errors.append(errorLine).append("\n");
+            log.info("==e> {}", errorLine);
+            execResult.setLastLine(errorLine);
+          }
+        } catch (IOException e) {
+          e.printStackTrace();
+        }
+      });
+
+      // Start the error capturing thread
+      errorThread.start();
+
+
+
+      // Capture the standard output
+      BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
+      String line;
+      while ((line = reader.readLine()) != null) {
+        log.info("===> {}", line);
+        execResult.setLastLine(line);
+      }
+
+
+
+      int exitCode = process.waitFor(); // Wait for the process to finish
+      // Wait for the error thread to finish
+      errorThread.join();
+
+
+
+      if (exitCode == 0) {
+        log.info("execCLICommand executed successfully in {}: {}", WORKINGDIR_PATH, command);
+      } else {
+        log.info("execCLICommand execution failed in {} (exitCode= {}): {}", WORKINGDIR_PATH,
+            exitCode, command);
+      }
+
+      execResult.setExitCode(exitCode);
+      return execResult;
+    } catch (IOException | InterruptedException e) {
+      log.error("Error executing command {} in working dir {}", command, WORKINGDIR_PATH, e);
+      log.error("StackTrace {}", e.getLocalizedMessage());
+      e.printStackTrace();
+    }
+
+    return execResult;
+  }
+
+  /**
+   * @param resource
+   * @param i
+   * @param string
+   * @param client
+   * @return
+   */
+  private SylvaMDResource updateResourceStatus(SylvaMDResource resource, SylvaMDResourceState state,
+      String infoText, KubernetesClient client) {
+
+    try {
+      SylvaMDResourceStatus resStatus = resource.getStatus();
+      if (resStatus == null) {
+        resStatus = new SylvaMDResourceStatus();
+      }
+      resStatus.setState(state);
+      resStatus.setStateText(state.getValue());
+      resStatus.setInfoText(infoText);
+      resource.setStatus(resStatus);
+
+      resource = client.resource(resource).patch();
+
+      return resource;
+    } catch (Exception e) {
+      return null;
+    }
+
+
+  }
+
+  private SylvaMDResource addFinalizers(SylvaMDResource resource, KubernetesClient client) {
+
+    List<String> finalizers = resource.getMetadata().getFinalizers();
+    if (finalizers == null) {
+      finalizers = new ArrayList<>();
+    }
+    finalizers.clear();
+    finalizers.add("sylva.osl.etsi.org");
+    resource.getMetadata().setFinalizers(finalizers);
+
+    // resource.getMetadata().getFinalizers().clear();
+    // resource.getMetadata().getFinalizers().add("sylva.osl.etsi.org");
+    resource = client.resource(resource).patch();
+    return resource;
+  }
+
+  // Remove the finalizer after cleanup
+  private SylvaMDResource removeFinalizer(SylvaMDResource resource, KubernetesClient client) {
+    List<String> finalizers = resource.getMetadata().getFinalizers();
+    if (finalizers != null) {
+      finalizers.clear();
+      resource.getMetadata().setFinalizers(finalizers);
+
+      resource = client.resource(resource).patch();
+      log.info("Finalizer removed from resource: " + resource.getMetadata().getName());
+      return resource;
+    }
+    return resource;
+  }
+
+}
diff --git a/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceSpec.java b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceSpec.java
new file mode 100644
index 0000000000000000000000000000000000000000..742740bc34cef9298e74542f89a9342cf79cf534
--- /dev/null
+++ b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceSpec.java
@@ -0,0 +1,31 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.controllers.sylva
+ * %%
+ * Copyright (C) 2024 osl.etsi.org
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * =========================LICENSE_END==================================
+ */
+package org.etsi.osl.controllers.sylva;
+
+import lombok.Data;
+
+@Data
+public class SylvaMDResourceSpec {
+
+  private int clusterControlPlaneReplicas;
+  private int clusterMd0Replicas;
+  
+  
+}
diff --git a/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceState.java b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceState.java
new file mode 100644
index 0000000000000000000000000000000000000000..b65f4052c326077be1a47ca2dcede087c3748da4
--- /dev/null
+++ b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceState.java
@@ -0,0 +1,55 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.controllers.sylva
+ * %%
+ * Copyright (C) 2024 osl.etsi.org
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * =========================LICENSE_END==================================
+ */
+package org.etsi.osl.controllers.sylva;
+
+
+public enum SylvaMDResourceState {
+  NEW("NEW"),
+  IN_PROGRESS("IN_PROGRESS"),
+  ACTIVE("ACTIVE"),
+  FAILED("FAILED"),
+  DELETED("DELETED"),
+  DELETE_IN_PROGRESS("DELETE_IN_PROGRESS"), 
+  DELETE_FAILED("DELETE_FAILED"),
+  REJECTED("REJECTED");
+  
+  
+  private String value;
+  
+  SylvaMDResourceState(String value) {
+      this.value = value;
+  }
+
+  public String getValue() {
+      return value;
+  }
+
+  @Override
+  public String toString() {
+      return this.getValue();
+  }
+
+  public static SylvaMDResourceState getEnum(String value) {
+      for(SylvaMDResourceState v : values())
+          if(v.getValue().equalsIgnoreCase(value)) return v;
+      throw new IllegalArgumentException();
+  }
+
+}
diff --git a/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceStatus.java b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceStatus.java
new file mode 100644
index 0000000000000000000000000000000000000000..eaa4417d8fa5fd144319594c448420040f671c32
--- /dev/null
+++ b/src/main/java/org/etsi/osl/controllers/sylva/SylvaMDResourceStatus.java
@@ -0,0 +1,31 @@
+/*-
+ * ========================LICENSE_START=================================
+ * org.etsi.osl.controllers.sylva
+ * %%
+ * Copyright (C) 2024 osl.etsi.org
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * =========================LICENSE_END==================================
+ */
+package org.etsi.osl.controllers.sylva;
+
+import lombok.Data;
+
+@Data
+public class SylvaMDResourceStatus {
+
+  private SylvaMDResourceState state;
+  private String stateText;
+  private String infoText;
+  private String secret;
+}
diff --git a/src/main/resources/SylvaMDResourceOperator.yaml b/src/main/resources/SylvaMDResourceOperator.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..6d3308b8fa4a4cdde4453e6f06568d0d853b8f05
--- /dev/null
+++ b/src/main/resources/SylvaMDResourceOperator.yaml
@@ -0,0 +1,37 @@
+apiVersion: apiextensions.k8s.io/v1
+kind: CustomResourceDefinition
+metadata:
+  name: sylvamdresources.controllers.osl.etsi.org  # Name of the CRD
+spec:
+  group: controllers.osl.etsi.org          # Custom resource group
+  names:
+    kind: SylvaMDResource      # Name of the resource type
+    plural: sylvamdresources           # Plural form of the resource
+    singular: sylvamdresource          # Singular form of the resource
+  scope: Namespaced            # Namespaced resource
+  versions:
+    - name: v1alpha1                 # Version of the CRD
+      served: true
+      storage: true
+      schema:
+        openAPIV3Schema:
+          type: object
+          properties:
+            spec:
+              type: object
+              properties:
+                clusterControlPlaneReplicas:
+                  type: string
+                clusterMd0Replicas:
+                  type: string
+            status:
+              type: object
+              properties:
+                state:
+                  type: string
+                stateText:
+                  type: string
+                infoText:
+                  type: string
+                secret:
+                  type: string
diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e7bfbb608c3804271359a22be91e8381a3dd463c
--- /dev/null
+++ b/src/main/resources/banner.txt
@@ -0,0 +1,16 @@
+   ___                   ____  _ _          
+  / _ \ _ __   ___ _ __ / ___|| (_) ___ ___ 
+ | | | | '_ \ / _ \ '_ \\___ \| | |/ __/ _ \
+ | |_| | |_) |  __/ | | |___) | | | (_|  __/
+  \___/| .__/ \___|_| |_|____/|_|_|\___\___|
+       |_|
+			   __          __________________
+			  / /  __ __  / __/_  __/ __/  _/
+			 / _ \/ // / / _/  / / _\ \_/ /  
+			/_.__/\_, / /___/ /_/ /___/___/  
+			     /___/                
+  _____   ___ __   ___      ___         _           _ _         
+ / __\ \ / / |\ \ / /_\    / __|___ _ _| |_ _ _ ___| | |___ _ _ 
+ \__ \\ V /| |_\ V / _ \  | (__/ _ \ ' \  _| '_/ _ \ | / -_) '_|
+ |___/ |_| |____\_/_/ \_\  \___\___/_||_\__|_| \___/_|_\___|_|  
+                                                                
\ No newline at end of file
diff --git a/src/main/resources/config b/src/main/resources/config
new file mode 100644
index 0000000000000000000000000000000000000000..9d4fb2255806c20f2e0bdb1e8abcff5ad0965459
--- /dev/null
+++ b/src/main/resources/config
@@ -0,0 +1 @@
+<REPLACE FILE>
\ No newline at end of file
diff --git a/src/main/resources/crorder_example.yaml b/src/main/resources/crorder_example.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..82859facbaf01e9d443c0ad4242bd5ccdee35b2e
--- /dev/null
+++ b/src/main/resources/crorder_example.yaml
@@ -0,0 +1,7 @@
+apiVersion: controllers.osl.etsi.org/v1alpha1
+kind: SylvaMDResource
+metadata:
+  name: wc12345-aaeeff
+spec:
+  clusterControlPlaneReplicas: "1"
+  clusterMd0Replicas: "1"
diff --git a/src/main/resources/kustomization.sylvamd.configmaps.osl.etsi b/src/main/resources/kustomization.sylvamd.configmaps.osl.etsi
new file mode 100644
index 0000000000000000000000000000000000000000..213c4c9810340d9747a4b8f28f9cb231a764062e
--- /dev/null
+++ b/src/main/resources/kustomization.sylvamd.configmaps.osl.etsi
@@ -0,0 +1,36 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: kustomization.sylvamd.configmaps.osl.etsi.org
+  namespace: default
+data:
+  kustomization.yaml: |
+    apiVersion: kustomize.config.k8s.io/v1beta1
+    kind: Kustomization
+
+    resources:
+      - ../base
+
+    components: []
+      # - https://gitlab.my.org/x/y//environment-values/foo?ref=master
+
+    labels:
+    - includeSelectors: true
+      pairs:
+        copy-from-bootstrap-to-management: ""
+
+    configMapGenerator:
+    - name: sylva-units-values
+      behavior: merge
+      options:
+        disableNameSuffixHash: true
+      files:
+      - values=values.yaml
+
+    secretGenerator:
+    - name: sylva-units-secrets
+      behavior: merge
+      options:
+        disableNameSuffixHash: true
+      files:
+      - secrets=secrets.yaml
diff --git a/src/main/resources/management-cluster-kubeconfig b/src/main/resources/management-cluster-kubeconfig
new file mode 100644
index 0000000000000000000000000000000000000000..9d4fb2255806c20f2e0bdb1e8abcff5ad0965459
--- /dev/null
+++ b/src/main/resources/management-cluster-kubeconfig
@@ -0,0 +1 @@
+<REPLACE FILE>
\ No newline at end of file
diff --git a/src/main/resources/secrets.sylvamd.configmaps.osl.etsi.org b/src/main/resources/secrets.sylvamd.configmaps.osl.etsi.org
new file mode 100644
index 0000000000000000000000000000000000000000..af69bbe2484787b7f859cef5249a209980e28274
--- /dev/null
+++ b/src/main/resources/secrets.sylvamd.configmaps.osl.etsi.org
@@ -0,0 +1,21 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: secrets.sylvamd.configmaps.osl.etsi.org
+  namespace: default
+data:
+  secrets.yaml: |
+    cluster:
+      capo:
+        clouds_yaml:
+          clouds:
+            capo_cloud:
+              auth:
+                auth_url: "http://keystone.pnet/v3"
+                user_domain_name: Default <REPLACE >
+                project_domain_name: Default <REPLACE >
+                project_name: "sylva" <REPLACE >
+                username: <REPLACE >
+                password: <REPLACE >
+              region_name: RegionOne
+              verify: false
diff --git a/src/main/resources/sylva-core-deploy.tar.gz b/src/main/resources/sylva-core-deploy.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..114a62e5f2fa0e200ba1b97f8c168e4fbab2f653
Binary files /dev/null and b/src/main/resources/sylva-core-deploy.tar.gz differ
diff --git a/src/main/resources/values.sylvamd.configmaps.osl.etsi.org b/src/main/resources/values.sylvamd.configmaps.osl.etsi.org
new file mode 100644
index 0000000000000000000000000000000000000000..68743f326839754ea9c84c26fdd1d51dab428679
--- /dev/null
+++ b/src/main/resources/values.sylvamd.configmaps.osl.etsi.org
@@ -0,0 +1,94 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+  name: values.sylvamd.configmaps.osl.etsi.org
+  namespace: default
+data:
+  values.yaml: |
+    ---
+    cluster:
+
+      capi_providers:
+        infra_provider: capo
+        bootstrap_provider: cabpr
+
+      capo:
+        image_key: ubuntu-jammy-plain-rke2-1-28-8  # OpenStack Glance image (key of image in sylva_diskimagebuilder_images/os_images)
+        ssh_key_name: sylva # OpenStack Nova SSH keypair is provided by runner context in CI
+        network_id: 7b490a0c-0f5c-4475-a436-e4bcbecc7f5e # OpenStack Neutron network id is provided by runner context in CI
+        flavor_name: cpu8.m16384.d40g
+        control_plane_az:
+          - nova
+
+      machine_deployments:
+        md0:
+          replicas: 2
+          capo:
+            failure_domain: nova
+            flavor_name: cpu8.m16384.d40g
+
+      control_plane_replicas: 1
+
+    openstack:
+      control_plane_affinity_policy: soft-anti-affinity
+      storageClass:
+        name: "rbd1"
+        type: "rbd1"
+
+    proxies:
+      http_proxy: ""
+      https_proxy: ""
+      no_proxy: ""
+
+    ntp:
+      enabled: false
+      servers:
+      # - 1.2.3.4
+      # - 1.2.3.5
+
+    sylva_diskimagebuilder_images:
+     ubuntu-jammy-plain-rke2-1-28-8:
+        enabled: true
+
+     ubuntu-jammy-plain-kubeadm-1-28-9:
+        enabled: true
+
+    units:
+      coredns:
+        kustomization_spec:
+          patches:
+            - target:
+                kind: ConfigMap
+              patch: |
+                - op: replace
+                  path: /data/Corefile
+                  value: |
+                        ${CLUSTER_DOMAIN}:53 {
+                            errors
+                            forward ${CLUSTER_DOMAIN} ${CLUSTER_VIRTUAL_IP}
+                        }
+                        .:53 {
+                            errors
+                            health {
+                               lameduck 5s
+                            }
+                            ready
+                            kubernetes cluster.local in-addr.arpa ip6.arpa {
+                               pods insecure
+                               fallthrough in-addr.arpa ip6.arpa
+                               ttl 30
+                            }
+                            prometheus :9153
+                            forward . /etc/resolv.conf {
+                               max_concurrent 1000
+                            }
+                            cache 60
+                            loop
+                            reload
+                            loadbalance
+                            hosts {
+                              10.1.3.2 glance.pnet nova.pnet neutron.pnet horizon.pnet cinder.pnet novncproxy.pnet keystone.pnet heat-api.pnet
+                              fallthrough
+                              fallthrough
+                            }
+                        }