Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Add config related annotation and label (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiczko authored Nov 30, 2020
1 parent 47eca10 commit 26bec95
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `config-controller.giantswarm.io/version` label.
- Add `config.giantswarm.io/major-version` annotation.

## [3.9.0] - 2020-11-24

### Changed
### Added

- Add `catalog` field to `apps` in `release`.
- Make Release Status fields `Ready` and `InUse` optional.
- Add printer columns for Release `Ready` and `InUse` fields.
- Add printer columns for App, Chart `Version`, `Last Deployed` and `Status`.

### Changed

- Make Release Status fields `Ready` and `InUse` optional.

## [3.8.0] - 2020-11-13

### Added
Expand Down
7 changes: 7 additions & 0 deletions pkg/annotation/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
package annotation

// ConfigMajorVersion is the annotation put on App CRs and consumed by
// config-controller. This indicates what major version of the configuration
// should be used for this application. Major versions are defined as single
// number, e.g. 3, which means that the latest v3.x.x tag of configuration
// should be used to generate ConfigMap and Secret for this App CR.
const ConfigMajorVersion = "config.giantswarm.io/major-version"

// LastDeployedReleaseVersion is the version annotation put into Cluster CR to
// define which Giant Swarm release version was last successfully deployed
// during cluster creation or upgrade. Versions are defined as semver version
Expand Down
6 changes: 6 additions & 0 deletions pkg/label/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ const AppOperatorVersion = "app-operator.giantswarm.io/version"
// that there is a chart-operator release v1.0.0.
const ChartOperatorVersion = "chart-operator.giantswarm.io/version"

// ConfigControllerVersion is the version label put into app CRs to define
// which config-controller version should reconcile the given CR. Versions are
// defined as semver version without the "v" prefix, e.g. 1.0.0, which means
// that there is a config-controller release v1.0.0.
const ConfigControllerVersion = "config-controller.giantswarm.io/version"

// AWSOperatorVersion is the version label put into AWS specific CRs to define
// which aws-operator version should reconcile the given CR. Versions are
// defined as semver version without the "v" prefix, e.g. 8.7.0, which means
Expand Down

0 comments on commit 26bec95

Please sign in to comment.