Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aenix-io/cozystack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3e56af7269fc219ce8cff4f3102d5dcb8f188108
Choose a base ref
..
head repository: aenix-io/cozystack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8aa3f8c95a96ef1ce37e66165128c26e01793a3e
Choose a head ref
Showing with 35 additions and 26 deletions.
  1. +8 −8 README.md
  2. +23 −0 hack/pre-checks.sh
  3. +4 −18 packages/core/installer/Makefile
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,25 +6,25 @@
[![Support](https://img.shields.io/badge/$-support-12a0df.svg?style=flat)](https://aenix.io/contact-us/#meet)
[![Active](http://img.shields.io/badge/Status-Active-green.svg)](https://aenix.io/cozystack/)
[![GitHub Release](https://img.shields.io/github/release/aenix-io/cozystack.svg?style=flat)](https://github.com/aenix-io/cozystack)
[![GitHub Commit](https://img.shields.io/github/commit-activity/y/aenix-io/cozystack)](https://github.com/aenix-io/cozystack)
[![GitHub Commit](https://img.shields.io/github/commit-activity/y/aenix-io/cozystack)](https://github.com/aenix-io/cozystack)

# Cozystack

**Cozystack** is a free PaaS platform and framework for building clouds.

With Cozystack, you can transform your bunch of servers into an intelligent system with a simple REST API for spawning Kubernetes clusters, Database-as-a-Service, virtual machines, load balancers, HTTP caching services, and other services with ease.

You can use Cozystack to build your own cloud or to provide a cost-effective development environments.
You can use Cozystack to build your own cloud or to provide a cost-effective development environments.

## Use-Cases

* [**Using Cozystack to build public cloud**](https://cozystack.io/docs/use-cases/public-cloud/)
* [**Using Cozystack to build public cloud**](https://cozystack.io/docs/use-cases/public-cloud/)
You can use Cozystack as backend for a public cloud

* [**Using Cozystack to build private cloud**](https://cozystack.io/docs/use-cases/private-cloud/)
* [**Using Cozystack to build private cloud**](https://cozystack.io/docs/use-cases/private-cloud/)
You can use Cozystack as platform to build a private cloud powered by Infrastructure-as-Code approach

* [**Using Cozystack as Kubernetes distribution**](https://cozystack.io/docs/use-cases/kubernetes-distribution/)
* [**Using Cozystack as Kubernetes distribution**](https://cozystack.io/docs/use-cases/kubernetes-distribution/)
You can use Cozystack as Kubernetes distribution for Bare Metal

## Screenshot
@@ -41,10 +41,10 @@ If you encounter any difficulties, start with the [troubleshooting guide](https:

## Versioning

Versioning adheres to the [Semantic Versioning](http://semver.org/) principles.
Versioning adheres to the [Semantic Versioning](http://semver.org/) principles.
A full list of the available releases is available in the GitHub repository's [Release](https://github.com/aenix-io/cozystack/releases) section.

* [Roadmap](https://github.com/orgs/aenix-io/projects/2)
- [Roadmap](https://github.com/orgs/aenix-io/projects/2)

## Contributions

@@ -62,7 +62,7 @@ You can join our weekly community meetings (just add this events to your [Google

## License

Cozystack is licensed under Apache 2.0.
Cozystack is licensed under Apache 2.0.
The code is provided as-is with no warranties.

## Commercial Support
23 changes: 23 additions & 0 deletions hack/pre-checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

YQ_VERSION="v4.35.1"
RED='\033[31m'
RESET='\033[0m'

check-yq-version() {
current_version=$(yq -V | grep -oP 'v[0-9]+\.[0-9]+\.[0-9]+')
if [ -z "$current_version" ]; then
echo "yq is not installed or version cannot be determined."
exit 1
fi
echo "Current yq version: $current_version"

if [ "$(printf '%s\n' "$YQ_VERSION" "$current_version" | sort -V | head -n1)" = "$YQ_VERSION" ]; then
echo "Greater than or equal to $YQ_VERSION"
else
echo -e "${RED}ERROR: yq version less than $YQ_VERSION${RESET}"
exit 1
fi
}

check-yq-version
22 changes: 4 additions & 18 deletions packages/core/installer/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
NAME=installer
NAMESPACE=cozy-system
YQ_VERSION=v4.35.1
RED = \033[31m
RESET = \033[0m

TALOS_VERSION=$(shell awk '/^version:/ {print $$2}' images/talos/profiles/installer.yaml)

include ../../../scripts/common-envs.mk

pre-checks:
../../../hack/pre-checks.sh

show:
helm template -n $(NAMESPACE) $(NAME) .

@@ -20,21 +20,7 @@ diff:
update:
hack/gen-profiles.sh

image: check-yq-version image-cozystack image-talos image-matchbox

check-yq-version:
@current_version=$$(yq -V | grep -oP 'v[0-9]+\.[0-9]+\.[0-9]+') ; \
if [ -z "$$current_version" ]; then \
echo "yq is not installed or version cannot be determined." ; \
exit 1 ; \
fi ; \
echo "Current yq version: $$current_version" ; \
if [ "$$(printf '%s\n' "$(YQ_VERSION)" "$$current_version" | sort -V | head -n1)" = "$(YQ_VERSION)" ]; then \
echo "Greater than or equal to $(YQ_VERSION)" ; \
else \
echo "$(RED)ERROR: yq version less than $(YQ_VERSION)$(RESET)" ; \
exit 1 ; \
fi
image: pre-checks image-cozystack image-talos image-matchbox

image-cozystack:
make -C ../../.. repos