Skip to content

Commit

Permalink
fix: build job label name to actor.spec.name
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Feb 2, 2024
1 parent ade15fb commit 3c91bfe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.8.10"
version = "0.8.11"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/amphitheatre-app/amphitheatre"
Expand Down
2 changes: 1 addition & 1 deletion resources/src/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn new(actor: &Actor, pod: PodSpec) -> Result<Job> {
let owner_reference = actor.controller_owner_ref(&()).unwrap();
let annotations = BTreeMap::from([(LAST_APPLIED_HASH_KEY.into(), hash(&actor.spec)?)]);
let labels = BTreeMap::from([
("amphitheatre.app/character".into(), name.clone()),
("amphitheatre.app/character".into(), actor.spec.name.clone()),
("app.kubernetes.io/managed-by".into(), "Amphitheatre".into()),
]);

Expand Down

0 comments on commit 3c91bfe

Please sign in to comment.