mirror of
https://github.com/jlengrand/engine.git
synced 2026-03-10 08:11:21 +00:00
Fix jwt token for ec2
This commit is contained in:
@@ -346,7 +346,7 @@ pub fn ec2_aws_helm_charts(
|
||||
organization_long_id: &chart_config_prerequisites.organization_long_id,
|
||||
cluster_id: &chart_config_prerequisites.cluster_id,
|
||||
cluster_long_id: &chart_config_prerequisites.cluster_long_id,
|
||||
cluster_token: &chart_config_prerequisites.infra_options.jwt_token,
|
||||
cluster_jwt_token: &chart_config_prerequisites.infra_options.jwt_token,
|
||||
grpc_url: &chart_config_prerequisites.infra_options.qovery_grpc_url,
|
||||
};
|
||||
let shell_agent = get_chart_for_shell_agent(shell_context, chart_path)?;
|
||||
|
||||
@@ -1001,7 +1001,7 @@ datasources:
|
||||
organization_long_id: &chart_config_prerequisites.organization_long_id,
|
||||
cluster_id: &chart_config_prerequisites.cluster_id,
|
||||
cluster_long_id: &chart_config_prerequisites.cluster_long_id,
|
||||
cluster_token: &chart_config_prerequisites.infra_options.jwt_token,
|
||||
cluster_jwt_token: &chart_config_prerequisites.infra_options.jwt_token,
|
||||
grpc_url: &chart_config_prerequisites.infra_options.qovery_grpc_url,
|
||||
};
|
||||
let shell_agent = get_chart_for_shell_agent(shell_context, chart_path)?;
|
||||
|
||||
@@ -812,7 +812,7 @@ datasources:
|
||||
organization_long_id: &chart_config_prerequisites.organization_long_id,
|
||||
cluster_id: &chart_config_prerequisites.cluster_id,
|
||||
cluster_long_id: &chart_config_prerequisites.cluster_long_id,
|
||||
cluster_token: &chart_config_prerequisites.infra_options.jwt_token,
|
||||
cluster_jwt_token: &chart_config_prerequisites.infra_options.jwt_token,
|
||||
grpc_url: &chart_config_prerequisites.infra_options.qovery_grpc_url,
|
||||
};
|
||||
let shell_agent = get_chart_for_shell_agent(shell_context, chart_path)?;
|
||||
|
||||
@@ -717,7 +717,7 @@ pub struct ShellAgentContext<'a> {
|
||||
pub organization_long_id: &'a Uuid,
|
||||
pub cluster_id: &'a str,
|
||||
pub cluster_long_id: &'a Uuid,
|
||||
pub cluster_token: &'a str,
|
||||
pub cluster_jwt_token: &'a str,
|
||||
pub grpc_url: &'a str,
|
||||
}
|
||||
|
||||
@@ -759,7 +759,7 @@ pub fn get_chart_for_shell_agent(
|
||||
},
|
||||
ChartSetValue {
|
||||
key: "environmentVariables.CLUSTER_JWT_TOKEN".to_string(),
|
||||
value: context.cluster_token.to_string(),
|
||||
value: context.cluster_jwt_token.to_string(),
|
||||
},
|
||||
ChartSetValue {
|
||||
key: "environmentVariables.CLUSTER_ID".to_string(),
|
||||
|
||||
@@ -685,7 +685,7 @@ datasources:
|
||||
organization_long_id: &chart_config_prerequisites.organization_long_id,
|
||||
cluster_id: &chart_config_prerequisites.cluster_id,
|
||||
cluster_long_id: &chart_config_prerequisites.cluster_long_id,
|
||||
cluster_token: &chart_config_prerequisites.infra_options.jwt_token,
|
||||
cluster_jwt_token: &chart_config_prerequisites.infra_options.jwt_token,
|
||||
grpc_url: &chart_config_prerequisites.infra_options.qovery_grpc_url,
|
||||
};
|
||||
let shell_agent = get_chart_for_shell_agent(shell_context, chart_path)?;
|
||||
|
||||
Reference in New Issue
Block a user