Skip to content

Commit

Permalink
Merge pull request #1 from projectsyn/initial-implementation
Browse files Browse the repository at this point in the history
Initial implementation
  • Loading branch information
megian authored Apr 15, 2021
2 parents edf360c + 4b5893e commit 40fab96
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 10 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v1.0.0]
### Added

-
- Initial open-source implementation ([#1])

[Unreleased]: https://github.com/projectsyn/component-cluster-autoscaler/compare/v0.1.0...HEAD
[Unreleased]: https://github.com/projectsyn/component-cluster-autoscaler/compare/v1.0.0...HEAD
[v1.0.0]: https://github.com/projectsyn/component-cluster-autoscaler/releases/tag/v1.0.0

[#1]: https://github.com/projectsyn/component-cluster-autoscaler/pull/
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# component-cluster-autoscaler
Commodore component to manage the Kubernetes Cluster Autoscaler
=======
# Commodore Component: cluster-autoscaler

This is a [Commodore][commodore] Component for cluster-autoscaler.
This is a [Commodore][commodore] Component for the [Kubernetes Cluster Autoscaler](https://github.com/kubernetes/autoscaler/) provided by the Kubernetes Community.

This repository is part of Project Syn.
For documentation on Project Syn and this component, see https://syn.tools.
Expand Down
15 changes: 14 additions & 1 deletion class/cluster-autoscaler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
parameters:
kapitan:
dependencies:
- type: helm
source: https://kubernetes.github.io/autoscaler
version: ${cluster_autoscaler:charts:cluster_autoscaler}
chart_name: cluster-autoscaler
output_path: dependencies/cluster-autoscaler/helmcharts/cluster-autoscaler/${cluster_autoscaler:charts:cluster_autoscaler}/
compile:
- input_paths:
- cluster-autoscaler/component/app.jsonnet
Expand All @@ -9,4 +15,11 @@ parameters:
- cluster-autoscaler/component/main.jsonnet
input_type: jsonnet
output_path: cluster-autoscaler/

- output_path: cluster-autoscaler/01_helmchart
input_type: helm
input_paths:
- cluster-autoscaler/helmcharts/cluster-autoscaler/${cluster_autoscaler:charts:cluster_autoscaler}/
helm_params:
release_name: ${cluster_autoscaler:release_name}
namespace: ${cluster_autoscaler:namespace}
helm_values: ${cluster_autoscaler:helm_values}
6 changes: 6 additions & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
parameters:
cluster_autoscaler:
namespace: syn-cluster-autoscaler
release_name: syn
charts:
cluster_autoscaler: 9.9.2
helm_values:
autoDiscovery:
clusterName: '${cluster:name}'
1 change: 1 addition & 0 deletions component/main.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ local params = inv.parameters.cluster_autoscaler;

// Define outputs below
{
'00_namespace': kube.Namespace(params.namespace),
}
29 changes: 27 additions & 2 deletions docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,34 @@ default:: `syn-cluster-autoscaler`
The namespace in which to deploy this component.


== Example
== `release_name`

[horizontal]
type:: string
default:: `syn`

The name syn-cluster-autoscaler is deployed.
Usually there is just one deployment and therefore no change is required.


== `charts.cluster_autoscaler`

[horizontal]
type:: string
default:: `9.9.2`

The helm chart version going to be used.


== `helm_values`

[horizontal]
type:: dict
default::
+
[source,yaml]
----
namespace: example-namespace
----

All helm_values are passed to the helm chart.
This allows to configure all https://github.com/kubernetes/autoscaler/tree/master/charts/cluster-autoscaler#values[cluster-autoscaler helm chart values].

0 comments on commit 40fab96

Please sign in to comment.