Skip to content

Commit

Permalink
Jaeger Runner
Browse files Browse the repository at this point in the history
  • Loading branch information
afroze9 committed Jan 3, 2024
1 parent b8b5ab0 commit d490c4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Config/ConfigurationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public string GetConfigurationPath()
public string KuberetesPrometheusFile => Path.Combine(KuberetesDirectory, "prometheus.yaml");
public string KubernetesElasticFile => Path.Combine(KuberetesDirectory, "elastic.yaml");
public string KubernetesGrafanaFile => Path.Combine(KuberetesDirectory, "grafana.yaml");
public string KubernetesJaegerFile => Path.Combine(KuberetesDirectory, "jaeger.yaml");

public string GetServiceConsulDirectory(string serviceName, string projectName) =>
Path.Combine(GetBasePath(), "services", serviceName, "src", projectName, "Consul");
Expand Down
7 changes: 7 additions & 0 deletions Runners/InfrastructureRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ protected override RunState OnExecuted(RunState state)
RunPowershellCommand($"kubectl apply -f \"{grafanaYaml}\"");
progressTask.Increment(100);
progressTask.StopTask();

// Jaeger
string jaegerYaml = ConfigurationService.KubernetesJaegerFile;
progressTask = Context.AddTask("Setting up Jaeger");
RunPowershellCommand($"kubectl apply -f \"{jaegerYaml}\"");
progressTask.Increment(100);
progressTask.StopTask();

state.LastStepStatus = StepStatus.Success;
return state;
Expand Down
2 changes: 1 addition & 1 deletion nexus-tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackAsTool>true</PackAsTool>
<ToolCommandName>nexus</ToolCommandName>
<OutputPath>$(SolutionDir)\artifacts\$(Configuration)\</OutputPath>
<Version>0.15.0.0</Version>
<Version>0.16.0.0</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/afroze9/nexus-tool</PackageProjectUrl>
Expand Down

0 comments on commit d490c4b

Please sign in to comment.