Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Change label for stack (#169)
Browse files Browse the repository at this point in the history
* Change label for stack

* Add stack label change and canary deployment documentation to change log

* Update change log

* Update link to PR in change log

* Add link to version 0.2.1
  • Loading branch information
leochr authored and navidsh committed Oct 28, 2019
1 parent d77b709 commit 78a6167
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.2.1]

### Added

- Added documentation on how to do canary testing with the standard `Route` resource. ([#143](https://github.com/appsody/appsody-operator/issues/143))

### Changed

- Changed the label corresponding to the Appsody Stack information from `app.appsody.dev/stack` to `stack.appsody.dev/id`. ([#169](https://github.com/appsody/appsody-operator/issues/169))

## [0.2.0]

### Added
Expand All @@ -33,6 +43,7 @@ All notable changes to this project will be documented in this file.

The initial release of the Appsody Operator 🎉🥳

[Unreleased]: https://github.com/appsody/appsody-operator/compare/v0.2.0...HEAD
[Unreleased]: https://github.com/appsody/appsody-operator/compare/v0.2.1...HEAD
[0.2.1]: https://github.com/appsody/appsody-operator/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/appsody/appsody-operator/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/appsody/appsody-operator/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion doc/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ If applications require specific permissions but still want the operator to crea

### Labels

By default, the operator adds the following labels into all resources created for an `AppsodyApplication` CR: `app.kubernetes.io/name`, `app.kubernetes.io/managed-by`, `app.appsody.dev/stack` and `app.kubernetes.io/version` (only when `version` is defined). You can set new labels in addition to the pre-existing ones or overwrite them, excluding the `app.kubernetes.io/name` label. To set labels, specify them in your CR as key/value pairs.
By default, the operator adds the following labels into all resources created for an `AppsodyApplication` CR: `app.kubernetes.io/name`, `app.kubernetes.io/managed-by`, `app.kubernetes.io/version` (when `version` is defined) and `stack.appsody.dev/id` (when `stack` is defined). You can set new labels in addition to the pre-existing ones or overwrite them, excluding the `app.kubernetes.io/name` label. To set labels, specify them in your CR as key/value pairs.

```yaml
apiVersion: appsody.dev/v1beta1
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/appsody/v1beta1/appsodyapplication_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ func (cr *AppsodyApplication) GetLabels() map[string]string {
}

if cr.Spec.Stack != "" {
labels["app.appsody.dev/stack"] = cr.Spec.Stack
labels["stack.appsody.dev/id"] = cr.Spec.Stack
}

if cr.Spec.Version != "" {
Expand Down

0 comments on commit 78a6167

Please sign in to comment.