Skip to content

Commit

Permalink
Fix: Add amp- prefix to namespace for actor api handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Dec 27, 2023
1 parent fd7d6bb commit a031d24
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 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.6.11"
version = "0.6.12"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/amphitheatre-app/amphitheatre"
Expand Down
4 changes: 2 additions & 2 deletions apiserver/src/services/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct ActorService;

impl ActorService {
pub async fn get(ctx: Arc<Context>, pid: Uuid, name: String) -> Result<ActorResponse> {
let actor = actor::get(&ctx.k8s, &pid.to_string(), &name)
let actor = actor::get(&ctx.k8s, &format!("amp-{}", pid), &name)
.await
.map_err(|err| ApiError::KubernetesError(err.to_string()))?;

Expand Down Expand Up @@ -89,7 +89,7 @@ impl ActorService {
}

pub async fn info(ctx: Arc<Context>, pid: Uuid, name: String) -> Result<HashMap<String, HashMap<String, String>>> {
let actor = actor::get(&ctx.k8s, &pid.to_string(), &name)
let actor = actor::get(&ctx.k8s, &format!("amp-{}", pid), &name)
.await
.map_err(|err| ApiError::KubernetesError(err.to_string()))?;

Expand Down

0 comments on commit a031d24

Please sign in to comment.