This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
# the selector from your yml file | |
# selector: | |
# matchLabels: | |
# app: myweb | |
# -Selector app=myweb | |
[Parameter(Mandatory=$true)][string]$Selector | |
) | |
Write-Host '1. searching pod by selector:' $Selector '...'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<PipeLaunchOptions xmlns="http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014" | |
PipePath="powershell" TargetArchitecture="x64" MIMode="clrdbg" | |
PipeArguments=" | |
-ExecutionPolicy Bypass | |
-File C:\kube\kubedbg.ps1 | |
-Selector app=mywebapp"> | |
<LaunchCompleteCommand>None</LaunchCompleteCommand> | |
</PipeLaunchOptions> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "rxjs/add/operator/debounceTime"; | |
import "rxjs/add/operator/throttleTime"; | |
import { TestScheduler } from "jasmine-marbles/src/scheduler"; | |
import { Observable } from "rxjs/Observable"; | |
export class MarbleSchedulerInjector | |
{ | |
static inject(scheduler: TestScheduler, ...methods: (keyof Observable<any> | "all")[]) | |
{ | |
methods = methods || ["all"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<Choose> | |
<When Condition=" '$(Configuration)'=='Test' "> | |
<ItemGroup> | |
<PackageReference Include="Moq" Version="4.8.1" /> | |
<PackageReference Include="xunit" Version="2.3.1" /> | |
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" /> | |
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" /> | |
</ItemGroup> | |
</When> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<Choose> | |
<When Condition=" '$(Configuration)'!='Test' "> | |
<ItemGroup> | |
<Compile Remove="**/*.Spec.cs" /> | |
<Compile Remove="**/*.Stub.cs" /> | |
<Compile Remove="**/*.Stubs.cs" /> | |
<Compile Remove="**/*.Test.cs" /> | |
<Compile Remove="**/*.Tests.cs" /> | |
</ItemGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using Xunit; | |
namespace WebApp.Controllers | |
{ | |
public class ValuesControllerSpec : IClassFixture<ValuesController> | |
{ | |
private readonly ValuesController controller; | |
public ValuesControllerSpec(ValuesController controller) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class Test | |
{ | |
static Test() | |
{ | |
1d.Pipe(TimeSpan.FromDays, AddHours(3), ToString, ToLower); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface CommandErrorPayload { | |
readonly errorMessage: string; | |
readonly originalError?: any; | |
} | |
export class StandardAction<TActionType extends string, TActionPayload> { | |
type: TActionType; | |
constructor(readonly payload: TActionPayload) { } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# echo "processing params" | |
while [ "$1" != "" ]; do | |
case $1 in | |
-n | --namespace) | |
NAMESPACE=$2 | |
shift 2 | |
;; | |
-s | --selector) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Attach to Kubernetes", | |
"type": "coreclr", | |
"request": "attach", // we are going to attach to the existing pod | |
"processName": "dotnet", | |
"sourceFileMap": { | |
// mapping of source code inside a container to the source code on a host machine |
OlderNewer