Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: repaire ci #2

Merged
merged 1 commit into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
#
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
args: --timeout=30m

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
Expand Down
7 changes: 5 additions & 2 deletions pkg/operators/v1alphav1/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ package v1alphav1

// DatabaseProvider defines all types database provider of DatabaseConnection
type DatabaseProvider struct {
MysqlProvider *MysqlProvider `json:"mysql,omitempty"`
// +kubebuilder:validation:Optional
MysqlProvider *MysqlProvider `json:"mysql,omitempty"`
// +kubebuilder:validation:Optional
PostgresProvider *PostgresProvider `json:"postgres,omitempty"`
RedisProvider *RedisProvider `json:"redis,omitempty"`
// +kubebuilder:validation:Optional
RedisProvider *RedisProvider `json:"redis,omitempty"`
}

// MysqlProvider defines the desired connection info of Mysql
Expand Down
25 changes: 15 additions & 10 deletions pkg/status/conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@ package status

// ConditionType is the type of condition
const (
ConditionTypeProgressing string = "Progressing"
ConditionTypeReconcile string = "Reconcile"
ConditionTypeAvailable string = "Available"
ConditionTypeProgressing string = "Progressing"
ConditionTypeReconcile string = "Reconcile"
ConditionTypeAvailable string = "Available"
ConditionTypeReconcilePVC string = "ReconcilePVC"
ConditionTypeReconcileService string = "ReconcileService"
ConditionTypeReconcileIngress string = "ReconcileIngress"
ConditionTypeReconcileDeployment string = "ReconcileDeployment"
ConditionTypeReconcileSecret string = "ReconcileSecret"
ConditionTypeReconcileDaemonSet string = "ReconcileDaemonSet"
ConditionTypeReconcileConfigMap string = "ReconcileConfigMap"
)

// ConditionReason is the reason for the condition
const (
ConditionReasonPreparing string = "Preparing"
ConditionReasonRunning string = "Running"
ConditionReasonConfig string = "Config"
ConditionReasonReconcilePVC string = "ReconcilePVC"
ConditionReasonReconcileService string = "ReconcileService"
ConditionReasonReconcileIngress string = "ReconcileIngress"
ConditionReasonReconcileDeployment string = "ReconcileDeployment"
ConditionReasonPreparing string = "Preparing"
ConditionReasonRunning string = "Running"
ConditionReasonConfig string = "Config"
ConditionReasonReady string = "Ready"
ConditionReasonFail string = "Fail"
)