-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
8,945 additions
and
311 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
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,50 @@ | ||
// Copyright 2024 tsuru authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// +kubebuilder:object:root=true | ||
// +kubebuilder:resource:shortName=rpaas-validation | ||
// +kubebuilder:subresource:status | ||
// RpaasInstance is the Schema for the rpaasinstances API | ||
type RpaasValidation struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Status RpaasValidationStatus `json:"status,omitempty"` | ||
// Spec reuse the same properties of RpaasInstance, just to avoid duplication of code | ||
Spec RpaasInstanceSpec `json:"spec,omitempty"` | ||
} | ||
|
||
// RpaasValidationStatus defines the observed state of RpaasValidation | ||
type RpaasValidationStatus struct { | ||
//Revision hash calculated for the current spec of rpaasvalidation | ||
RevisionHash string `json:"revisionHash,omitempty"` | ||
|
||
// The most recent generation observed by the rpaas operator controller. | ||
ObservedGeneration int64 `json:"observedGeneration,omitempty"` | ||
|
||
// Valid determines whether validation is valid | ||
Valid *bool `json:"valid,omitempty"` | ||
|
||
// Feedback of validation of nginx | ||
Error string `json:"error,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
|
||
// RpaasValidationList contains a list of RpaasInstance | ||
type RpaasValidationList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []RpaasValidation `json:"items"` | ||
} | ||
|
||
func init() { | ||
SchemeBuilder.Register(&RpaasValidation{}, &RpaasValidationList{}) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.