-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Split Operator in several packages (#605)
BREAKING CHANGE: This removes several features from the 7.x version. Required / missing features will be added to the v8 again. As for the first pre release, only the simple watcher and reconciliation loop is present. No finalizer, events, leadership, whatsoever is present in the library. The initial pre.0 release is meant to be the base for further implementations. V8 will - hopefully - contain all required features again. BREAKING CHANGE: The operator does not have commands and command line executions packaged into the library. A new dotnet tool is required for CRD generation and other generators. BREAKING CHANGE: All abstractions are extracted into a KubeOps.Abstractions package. BREAKING CHANGE: The operator is not required to have ASP.net as default, it works with a normal console host application as well. BREAKING CHANGE: `master` is renamed to `main` and maintenance and release branches are added.
- Loading branch information
Showing
346 changed files
with
2,628 additions
and
258 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"docfx": { | ||
"version": "2.70.4", | ||
"commands": [ | ||
"docfx" | ||
] | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ name: .NET Release | |
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
- main | ||
- release | ||
|
||
jobs: | ||
semantic-release: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,14 @@ on: | |
branches: | ||
- "**" | ||
|
||
concurrency: | ||
group: testing | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: Execute Test ${{ matrix.project }} | ||
name: Testing | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- project: KubeOps.KubernetesClient.Test | ||
kubernetes: true | ||
- project: KubeOps.Test | ||
kubernetes: false | ||
- project: KubeOps.Templates.Test | ||
kubernetes: false | ||
- project: KubeOps.TestOperator.Test | ||
kubernetes: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -31,21 +23,6 @@ jobs: | |
|
||
- name: Create Kubernetes Cluster | ||
uses: helm/[email protected] | ||
if: ${{ matrix.kubernetes == true }} | ||
|
||
- name: Execute Tests | ||
run: dotnet test --configuration Release tests/${{ matrix.project }} | ||
|
||
result: | ||
if: ${{ always() }} | ||
runs-on: ubuntu-latest | ||
name: Final Results | ||
needs: [test] | ||
steps: | ||
- run: | | ||
result="${{ needs.test.result }}" | ||
if [[ $result == "success" || $result == "skipped" ]]; then | ||
exit 0 | ||
else | ||
exit 1 | ||
fi | ||
run: dotnet test --configuration Release |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,6 @@ bld/ | |
coverage.json | ||
coverage.info | ||
.vs | ||
|
||
# Docs | ||
_site |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<LangVersion>11</LangVersion> | ||
<Authors>Christoph Bühler</Authors> | ||
<Owner>cbuehler</Owner> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<PackageProjectUrl>https://github.com/buehler/dotnet-operator-sdk.git</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/buehler/dotnet-operator-sdk.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageLicense>Apache-2.0</PackageLicense> | ||
<PackageIcon>icon.png</PackageIcon> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<TreatWarningsAsErrors Condition="'$(Configuration)' == 'Release'">true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="README.md" Pack="true" PackagePath="\"/> | ||
<None Include="$(MSBuildThisFileDirectory)\LICENSE" Pack="true" PackagePath="\"/> | ||
<None Include="$(MSBuildThisFileDirectory)\res\icon.png"> | ||
<Pack>true</Pack> | ||
<PackagePath>\</PackagePath> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference | ||
Include="StyleCop.Analyzers" | ||
Version="1.2.0-beta.507" | ||
PrivateAssets="all" | ||
Condition="$(MSBuildProjectExtension) == '.csproj'"/> | ||
<PackageReference | ||
Include="SonarAnalyzer.CSharp" | ||
Version="9.10.0.77988" | ||
PrivateAssets="all" | ||
Condition="$(MSBuildProjectExtension) == '.csproj'"/> | ||
<PackageReference Include="Roslynator.Analyzers" Version="4.5.0" PrivateAssets="All"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<_Parameter1>$(MSBuildProjectName).Test</_Parameter1> | ||
</AssemblyAttribute> | ||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | ||
<!--So that internals are visible to the Moq library--> | ||
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1> | ||
</AssemblyAttribute> | ||
</ItemGroup> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.