Skip to content

Commit

Permalink
Hotfix: Cleanup of commented code and pipelines. No functional changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
winromulus committed Oct 23, 2021
1 parent 69b30dc commit 4af0526
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 115 deletions.
1 change: 0 additions & 1 deletion azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ trigger:
paths:
include:
- src/*
- .devops/*
- azure-pipelines.yaml

stages:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,117 +46,4 @@ public static ReflectorProperties GetReflectionProperties(this V1ObjectMeta meta
: string.Empty
};
}


//public static bool FortiReflectionEnabled(this V1ObjectMeta metadata)
//{
// if (Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.FortiEnabled, out var raw) &&
// bool.TryParse(raw, out var value))
// return value;
// return false;
//}

//public static string[] FortiReflectionHosts(this V1ObjectMeta metadata)
//{
// return Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.FortiHosts, out var raw)
// ? string.IsNullOrWhiteSpace(raw) ? Array.Empty<string>() :
// raw.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries)
// .Where(s => !string.IsNullOrWhiteSpace(s))
// .Select(s => s.Trim()).Distinct().ToArray()
// : Array.Empty<string>();
//}

//public static string FortiCertificate(this V1ObjectMeta metadata)
//{
// return Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.FortiCertificate, out var raw)
// ? string.IsNullOrWhiteSpace(raw) ? null : raw
// : null;
//}

//#region Ubiquiti

//public static bool UbiquitiReflectionEnabled(this V1ObjectMeta metadata)
//{
// if (Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.UbiquitiEnabled, out var raw) &&
// bool.TryParse(raw, out var value))
// return value;
// return false;
//}

//public static string[] UbiquitiReflectionHosts(this V1ObjectMeta metadata)
//{
// return Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.UbiquitiHosts, out var raw)
// ? string.IsNullOrWhiteSpace(raw) ? Array.Empty<string>() :
// raw.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries)
// .Where(s => !string.IsNullOrWhiteSpace(s))
// .Select(s => s.Trim()).Distinct().ToArray()
// : Array.Empty<string>();
//}

//public static string UbiquitiCertificate(this V1ObjectMeta metadata)
//{
// return Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.UbiquitiCertificate, out var raw)
// ? string.IsNullOrWhiteSpace(raw) ? null : raw
// : null;
//}

//#endregion

//#region VMware

//public static bool VMwareReflectionEnabled(this V1ObjectMeta metadata)
//{
// if (Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.VMwareEnabled, out var raw) &&
// bool.TryParse(raw, out var value))
// return value;
// return false;
//}

//public static string[] VMwareReflectionHosts(this V1ObjectMeta metadata)
//{
// return Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.VMwareHosts, out var raw)
// ? string.IsNullOrWhiteSpace(raw) ? Array.Empty<string>() :
// raw.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries)
// .Where(s => !string.IsNullOrWhiteSpace(s))
// .Select(s => s.Trim()).Distinct().ToArray()
// : Array.Empty<string>();
//}

//public static string VMwareCertificate(this V1ObjectMeta metadata)
//{
// return Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.VMwareCertificate, out var raw)
// ? string.IsNullOrWhiteSpace(raw) ? null : raw
// : null;
//}

//#endregion

//#region FreeNAS

//public static bool FreeNasReflectionEnabled(this V1ObjectMeta metadata)
//{
// if (Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.FreeNasEnabled, out var raw) &&
// bool.TryParse(raw, out var value))
// return value;
// return false;
//}

//public static string[] FreeNasReflectionHosts(this V1ObjectMeta metadata)
//{
// return Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.FreeNasHosts, out var raw)
// ? string.IsNullOrWhiteSpace(raw) ? Array.Empty<string>() :
// raw.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries)
// .Where(s => !string.IsNullOrWhiteSpace(s))
// .Select(s => s.Trim()).Distinct().ToArray()
// : Array.Empty<string>();
//}

//public static string FreeNasCertificate(this V1ObjectMeta metadata)
//{
// return Common.Extensions.MetadataExtensions.EnsureAnnotations(metadata).TryGetValue(Annotations.Reflection.FreeNasCertificate, out var raw)
// ? string.IsNullOrWhiteSpace(raw) ? null : raw
// : null;
//}

//#endregion
}
2 changes: 1 addition & 1 deletion src/ES.Kubernetes.Reflector/ES.Kubernetes.Reflector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<ServerGarbageCollection>fakse</ServerGarbageCollection>
<ServerGarbageCollection>false</ServerGarbageCollection>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 4af0526

Please sign in to comment.