-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit for remoteDataNodes * Fixed RemoteDataNode statefulset name in tests * Fixed RemoteExecNode * Added remotedatanodes.cluster.ytsaurus.tech.yaml to ytop/templates/crds manually * Fixed typo in remotedatanodes_types.go * Added cluster.ytsaurus.tech_remotedatanodes.yaml into kustomization.yaml * Fix with rbac * Fix with rbac #2 * Added e2e for remote Data node * Added e2e for remote Data node #2 * Added e2e for remote Data node #3 * Simplified remote_data_node creation * Rebased from main and adjusted Labeller
- Loading branch information
Showing
23 changed files
with
6,225 additions
and
47 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,76 @@ | ||
/* | ||
Copyright 2023. | ||
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 | ||
http://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 v1 | ||
|
||
import ( | ||
corev1 "k8s.io/api/core/v1" | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! | ||
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. | ||
|
||
// RemoteDataNodesSpec defines the desired state of RemoteDataNodes | ||
type RemoteDataNodesSpec struct { | ||
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster | ||
// Important: Run "make" to regenerate code after modifying this file | ||
|
||
RemoteClusterSpec *corev1.LocalObjectReference `json:"remoteClusterSpec"` | ||
CommonSpec `json:",inline"` | ||
DataNodesSpec `json:",inline"` | ||
} | ||
|
||
type RemoteDataNodeReleaseStatus string | ||
|
||
const ( | ||
RemoteDataNodeReleaseStatusPending RemoteDataNodeReleaseStatus = "Pending" | ||
RemoteDataNodeReleaseStatusRunning RemoteDataNodeReleaseStatus = "Running" | ||
) | ||
|
||
// RemoteDataNodesStatus defines the observed state of RemoteDataNodes | ||
type RemoteDataNodesStatus struct { | ||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster | ||
// Important: Run "make" to regenerate code after modifying this file | ||
ReleaseStatus RemoteDataNodeReleaseStatus `json:"releaseStatus,omitempty"` | ||
} | ||
|
||
//+kubebuilder:object:root=true | ||
//+kubebuilder:printcolumn:name="ReleaseStatus",type="string",JSONPath=".status.releaseStatus",description="Release status" | ||
//+kubebuilder:resource:categories=ytsaurus-all;yt-all | ||
//+kubebuilder:subresource:status | ||
|
||
// RemoteDataNodes is the Schema for the remotedatanodes API | ||
type RemoteDataNodes struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec RemoteDataNodesSpec `json:"spec,omitempty"` | ||
Status RemoteDataNodesStatus `json:"status,omitempty"` | ||
} | ||
|
||
//+kubebuilder:object:root=true | ||
|
||
// RemoteDataNodesList contains a list of RemoteDataNodes | ||
type RemoteDataNodesList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []RemoteDataNodes `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&RemoteDataNodes{}, &RemoteDataNodesList{}) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.