Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusbooyah committed Feb 6, 2024
1 parent 87d5e25 commit f6d8174
Show file tree
Hide file tree
Showing 21 changed files with 164 additions and 41 deletions.
3 changes: 0 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@
<DefineConstants>$(DefineConstants);JUSTMOCK</DefineConstants>
</PropertyGroup>

<ItemGroup Condition="Exists('README.md')">
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<!-- $hack(jefflill):
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Neon.Operator: Potentially useful libraries published as NuGet packages

[![.NET Test](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml)
[![NuGet Version](https://img.shields.io/nuget/v/Neon.Operator?style=flat&logo=nuget&label=NuGet)](https://www.nuget.org/packages/Neon.Operator)

[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://communityinviter.com/apps/neonforge/neonforge)

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<PackageTags>kubernetes operator sdk neonkube k8s</PackageTags>
<PackageReleaseNotes>https://github.com/nforgeio/operator-sdk/releases</PackageReleaseNotes>
<DebugType>full</DebugType>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<!-- NEONFORGE package or project references -->
Expand Down Expand Up @@ -48,6 +49,7 @@
<ItemGroup>
<None Include="..\nuget-icon.png" Pack="true" PackagePath="" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

</Project>
34 changes: 34 additions & 0 deletions src/Neon.Kubernetes.Resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Neon.Kubernetes.Resources

[![.NET Test](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml)
[![NuGet Version](https://img.shields.io/nuget/v/Neon.Kubernetes.Resources?style=flat&logo=nuget&label=NuGet)](https://www.nuget.org/packages/Neon.Kubernetes.Resources)

[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://communityinviter.com/apps/neonforge/neonforge)

---

Contains some useful custom resource definitions (CRDs) and other resources for working with Kubernetes.

## CRD types

Cert Manager:
- `V1Certificate`
- `V1CertificateRequest`
- `V1ClusterIssuer`

Grafana:
- `V1GrafanaDashboard`
- `V1GrafanaDatasource`

Istio:
- `V1AuthorizationPolicy`
- `V1DestinationRule`
- `V1Gateway`
- `V1ServiceEntry`
- `V1Telemetry`
- `V1VirtualService`

Prometheus:
- `V1ServiceMonitor`

Neon.Kubernetes.Resources is an open source project released under the Apache-2.0 license.
2 changes: 2 additions & 0 deletions src/Neon.Kubernetes/Neon.Kubernetes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<RepositoryType>git</RepositoryType>
<PackageTags>kubernetes operator sdk neonkube k8s</PackageTags>
<PackageReleaseNotes>https://github.com/nforgeio/operator-sdk/releases</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -44,6 +45,7 @@
<ItemGroup>
<None Include="..\nuget-icon.png" Pack="true" PackagePath="" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 12 additions & 0 deletions src/Neon.Kubernetes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Neon.Kubernetes

[![.NET Test](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml)
[![NuGet Version](https://img.shields.io/nuget/v/Neon.Kubernetes?style=flat&logo=nuget&label=NuGet)](https://www.nuget.org/packages/Neon.Kubernetes)

[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://communityinviter.com/apps/neonforge/neonforge)

---

Contains some useful extensions and utilities for working with Kubernetes.

Neon.Kubernetes is an open source project released under the Apache-2.0 license.
2 changes: 2 additions & 0 deletions src/Neon.Operator.Analyzers/Neon.Operator.Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<IsRoslynComponent>true</IsRoslynComponent>
<EnforceExtendedAnalyzerRules>false</EnforceExtendedAnalyzerRules>
<NoWarn>$(NoWarn);CS1591;CS8034</NoWarn>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -111,6 +112,7 @@
<None Include="..\nuget-icon.png" Pack="true" PackagePath="" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="build\*" Pack="true" PackagePath="build\" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

</Project>
15 changes: 15 additions & 0 deletions src/Neon.Operator.Analyzers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Neon.Operator.Analyzers: Potentially useful libraries published as NuGet packages

[![.NET Test](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml)
[![NuGet Version](https://img.shields.io/nuget/v/Neon.Operator.Analyzers?style=flat&logo=nuget&label=NuGet)](https://www.nuget.org/packages/Neon.Operator.Analyzers)

[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://communityinviter.com/apps/neonforge/neonforge)

---

A set of Roslyn analyzers for working with Neon.Operator. This package is included as a dependency in the Neon.Operator package.

## Documentation:
- [Docs](https://docs.neonforge.com/docs/operator-sdk)

Neon.Operator.Analyzers is an open source project released under the Apache-2.0 license.
2 changes: 2 additions & 0 deletions src/Neon.Operator.Core/Neon.Operator.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<RepositoryType>git</RepositoryType>
<PackageTags>kubernetes operator sdk neonkube k8s</PackageTags>
<PackageReleaseNotes>https://github.com/nforgeio/operator-sdk/releases</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -44,6 +45,7 @@
<ItemGroup>
<None Include="..\nuget-icon.png" Pack="true" PackagePath="" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

</Project>
15 changes: 15 additions & 0 deletions src/Neon.Operator.Core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Neon.Operator.Core: Potentially useful libraries published as NuGet packages

[![.NET Test](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml)
[![NuGet Version](https://img.shields.io/nuget/v/Neon.Operator.Core?style=flat&logo=nuget&label=NuGet)](https://www.nuget.org/packages/Neon.Operator.Core)

[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://communityinviter.com/apps/neonforge/neonforge)

---

This package contains the core functionality for building Kubernetes operators in .NET. It is included as a dependency in the Neon.Operator package.

## Documentation:
- [Docs](https://docs.neonforge.com/docs/operator-sdk)

Neon.Operator.Core is an open source project released under the Apache-2.0 license.
2 changes: 2 additions & 0 deletions src/Neon.Operator.Templates/Neon.Operator.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
<NoWarn>$(NoWarn);1591;CS2008</NoWarn>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -36,6 +37,7 @@
<ItemGroup>
<None Include="..\nuget-icon.png" Pack="true" PackagePath="" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,14 @@
"classifications": [ "Kubernetes Operator" ],
"name": "Kubernetes Operator",
"description": "Kubernetes operator",
"identity": "Neon.Kube.Operator.Templates.Csharp",
"groupIdentity": "Neon.Kube.Operator.Templates",
"shortName": "k8s operator",
"identity": "Neon.Operator.Templates.Csharp",
"groupIdentity": "Neon.Operator.Templates",
"shortName": "k8s-operator",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "OperatorTemplate",
"defaultName": "Kubernetes Operator",
"preferNameDirectory": true,
"postActions": [
{
"description": "Adding Reference to Neon.Kube.Operator NuGet package",
"actionId": "B17581D1-C5C9-4489-8F0A-004BE667B814",
"continueOnError": false,
"manualInstructions": [
{
"text": "Manually add the reference to Neon.Kube.Operator to your project file"
}
],
"args": {
"referenceType": "package",
"reference": "Neon.Kube.Operator",
"projectFileExtensions": ".csproj"
}
}
]
"preferNameDirectory": true
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

using k8s;
using k8s.Models;

using Microsoft.Extensions.Logging;

using Neon.Operator.Controllers;
using Neon.Operator.Finalizers;
using Neon.Operator.ResourceManager;
using Neon.Tasks;

using k8s;
using k8s.Models;

namespace OperatorTemplate
{
public class ExampleController : ResourceControllerBase<V1ExampleEntity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using System;
using System.Threading.Tasks;

using k8s;
using k8s.Models;

using Microsoft.Extensions.Logging;

using Neon.Operator.Finalizers;
using Neon.Tasks;

using k8s;
using k8s.Models;

namespace OperatorTemplate
{
public class ExampleFinalizer : ResourceFinalizerBase<V1ExampleEntity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>OperatorTemplate</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Neon.Operator" Version="1.0.0-beta.21" />
</ItemGroup>
</Project>
29 changes: 29 additions & 0 deletions src/Neon.Operator.Templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Neon.Operator.Templates: Potentially useful libraries published as NuGet packages

[![.NET Test](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml)
[![NuGet Version](https://img.shields.io/nuget/v/Neon.Operator.Templates?style=flat&logo=nuget&label=NuGet)](https://www.nuget.org/packages/Neon.Operator.Templates)

[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://communityinviter.com/apps/neonforge/neonforge)

---

This package contains a set of project templates for building Kubernetes operators in .NET.

## Installation

To install the template package, run the following command:

```
dotnet new install Neon.Operator.Templates::1.0.0-beta.21
```

Now you can create a new operator project using the following command:

```
dotnet new k8s-operator
```

## Documentation:
- [Docs](https://docs.neonforge.com/docs/operator-sdk)

Neon.Operator.Templates is an open source project released under the Apache-2.0 license.
2 changes: 2 additions & 0 deletions src/Neon.Operator.Xunit/Neon.Operator.Xunit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<IsTestProject>false</IsTestProject>
<NeonOperatorGenerateCrds>false</NeonOperatorGenerateCrds>
<NeonOperatorGenerateRbac>false</NeonOperatorGenerateRbac>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -49,6 +50,7 @@
<ItemGroup>
<None Include="..\nuget-icon.png" Pack="true" PackagePath="" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
Expand Down
17 changes: 14 additions & 3 deletions src/Neon.Operator.Xunit/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
Neon.Kube.Xunit
===============
# Neon.Operator.Xunit

**INTERNAL USE ONLY:** Core library used by neonKUBE related tooling.
[![.NET Test](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml)
[![NuGet Version](https://img.shields.io/nuget/v/Neon.Operator.Xunit?style=flat&logo=nuget&label=NuGet)](https://www.nuget.org/packages/Neon.Operator.Xunit)

[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://communityinviter.com/apps/neonforge/neonforge)

---

A test framework for testing Neon.Operator operators using xUnit.

## Documentation:
- [Docs](https://docs.neonforge.com/docs/operator-sdk)

Neon.Operator.Xunit is an open source project released under the Apache-2.0 license.
2 changes: 2 additions & 0 deletions src/Neon.Operator/Neon.Operator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<PackageTags>kubernetes operator sdk neonkube k8s</PackageTags>
<PackageReleaseNotes>https://github.com/nforgeio/operator-sdk/releases</PackageReleaseNotes>
<DebugType>full</DebugType>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -61,6 +62,7 @@
<None Include="..\nuget-icon.png" Pack="true" PackagePath="" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="build\*" Pack="true" PackagePath="build\" />
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

</Project>
17 changes: 14 additions & 3 deletions src/Neon.Operator/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
Neon.Operator
==================
# Neon.Operator

**INTERNAL USE ONLY:** Common code for neonKUBE operator implementations.
[![.NET Test](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/nforgeio/operator-sdk/actions/workflows/test.yaml)
[![NuGet Version](https://img.shields.io/nuget/v/Neon.Operator?style=flat&logo=nuget&label=NuGet)](https://www.nuget.org/packages/Neon.Operator)

[![Slack](https://img.shields.io/badge/Slack-4A154B?style=for-the-badge&logo=slack&logoColor=white)](https://communityinviter.com/apps/neonforge/neonforge)

---

A Kubernetes operator framework for .NET.

## Documentation:
- [Docs](https://docs.neonforge.com/docs/operator-sdk)

Neon.Operator is an open source project released under the Apache-2.0 license.

0 comments on commit f6d8174

Please sign in to comment.