forked from kubeflow/spark-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use controller-runtime to reconsturct spark operator (kubeflow#2072)
* Use controller-runtime to reconstruct spark operator Signed-off-by: Yi Chen <[email protected]> * Update helm charts Signed-off-by: Yi Chen <[email protected]> * Update examples Signed-off-by: Yi Chen <[email protected]> --------- Signed-off-by: Yi Chen <[email protected]>
- Loading branch information
1 parent
10b110b
commit bd713ea
Showing
291 changed files
with
20,893 additions
and
19,112 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,39 @@ | ||
run: | ||
deadline: 5m | ||
|
||
linters: | ||
enable: | ||
- revive | ||
- gci | ||
- depguard | ||
- godot | ||
- testifylint | ||
- unconvert | ||
|
||
issues: | ||
exclude-rules: | ||
# Disable errcheck linter for test files. | ||
- path: _test.go | ||
linters: | ||
- errcheck | ||
|
||
linters-settings: | ||
gci: | ||
sections: | ||
- standard | ||
- default | ||
- prefix(github.com/kubeflow/spark-operator) | ||
depguard: | ||
Main: | ||
files: | ||
- $all | ||
- "!$test" | ||
listMode: Lax | ||
deny: | ||
reflect: Please don't use reflect package | ||
Test: | ||
files: | ||
- $test | ||
listMode: Lax | ||
deny: | ||
reflect: Please don't use reflect package |
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
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,47 @@ | ||
# Code generated by tool. DO NOT EDIT. | ||
# This file is used to track the info used to scaffold your project | ||
# and allow the plugins properly work. | ||
# More info: https://book.kubebuilder.io/reference/project-config.html | ||
domain: sparkoperator.k8s.io | ||
layout: | ||
- go.kubebuilder.io/v4 | ||
projectName: spark-operator | ||
repo: github.com/kubeflow/spark-operator | ||
resources: | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: sparkoperator.k8s.io | ||
kind: SparkApplication | ||
path: github.com/kubeflow/spark-operator/api/v1beta1 | ||
version: v1beta1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: sparkoperator.k8s.io | ||
kind: ScheduledSparkApplication | ||
path: github.com/kubeflow/spark-operator/api/v1beta1 | ||
version: v1beta1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: sparkoperator.k8s.io | ||
kind: SparkApplication | ||
path: github.com/kubeflow/spark-operator/api/v1beta2 | ||
version: v1beta2 | ||
webhooks: | ||
defaulting: true | ||
validation: true | ||
webhookVersion: v1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: sparkoperator.k8s.io | ||
kind: ScheduledSparkApplication | ||
path: github.com/kubeflow/spark-operator/api/v1beta2 | ||
version: v1beta2 | ||
version: "3" |
File renamed without changes.
File renamed without changes.
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,36 @@ | ||
/* | ||
Copyright 2024 The Kubeflow authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// Package v1beta1 contains API Schema definitions for the v1beta1 API group | ||
// +kubebuilder:object:generate=true | ||
// +groupName=sparkoperator.k8s.io | ||
package v1beta1 | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/runtime/schema" | ||
"sigs.k8s.io/controller-runtime/pkg/scheme" | ||
) | ||
|
||
var ( | ||
// GroupVersion is group version used to register these objects. | ||
GroupVersion = schema.GroupVersion{Group: "sparkoperator.k8s.io", Version: "v1beta1"} | ||
|
||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme. | ||
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} | ||
|
||
// AddToScheme adds the types in this group-version to the given scheme. | ||
AddToScheme = SchemeBuilder.AddToScheme | ||
) |
Oops, something went wrong.