Skip to content

Commit

Permalink
Merge branch 'labring:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
lingdie authored Oct 21, 2024
2 parents 0adf931 + e1df7ce commit 1c36083
Show file tree
Hide file tree
Showing 130 changed files with 502 additions and 6,297 deletions.
4 changes: 2 additions & 2 deletions cmd/sealos/cmd/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ reset you current cluster:

func newResetCmd() *cobra.Command {
resetArgs := &apply.ResetArgs{
Cluster: &apply.Cluster{},
SSH: &apply.SSH{},
ClusterName: &apply.ClusterName{},
SSH: &apply.SSH{},
}

var resetCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions controllers/account/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
ENVTEST ?= $(LOCALBIN)/setup-envtest

## Tool Versions
KUSTOMIZE_VERSION ?= v4.2.0
CONTROLLER_TOOLS_VERSION ?= v0.8.0
KUSTOMIZE_VERSION ?= v5.3.0
CONTROLLER_TOOLS_VERSION ?= v0.14.0

KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
.PHONY: kustomize
Expand Down
47 changes: 0 additions & 47 deletions controllers/account/PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ projectName: account
repo: github.com/labring/sealos/controllers/account
resources:
- api:
crdVersion: v1
namespaced: true
controller: true
domain: sealos.io
group: account
kind: Account
path: github.com/labring/sealos/controllers/account/api/v1
version: v1
- api:
crdVersion: v1
Expand Down Expand Up @@ -39,23 +36,6 @@ resources:
group: account
kind: Billing
version: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: sealos.io
group: account
kind: BillingRecordQuery
path: github.com/labring/sealos/controllers/account/api/v1
version: v1
- api:
crdVersion: v1
namespaced: true
domain: sealos.io
group: account
kind: PriceQuery
path: github.com/labring/sealos/controllers/account/api/v1
version: v1
- controller: true
group: core
kind: Pod
Expand All @@ -66,31 +46,4 @@ resources:
kind: Namespace
path: k8s.io/api/core/v1
version: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: sealos.io
group: account
kind: Transfer
path: github.com/labring/sealos/controllers/account/api/v1
version: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: sealos.io
group: account
kind: NamespaceBillingHistory
path: github.com/labring/sealos/controllers/account/api/v1
version: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: sealos.io
group: account
kind: BillingInfoQuery
path: github.com/labring/sealos/controllers/account/api/v1
version: v1
version: "3"
79 changes: 0 additions & 79 deletions controllers/account/api/v1/billinginfoquery_types.go

This file was deleted.

99 changes: 0 additions & 99 deletions controllers/account/api/v1/billingrecordquery_types.go

This file was deleted.

2 changes: 1 addition & 1 deletion controllers/account/api/v1/debt_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const (

var logger = logf.Log.WithName("debt-resource")

//+kubebuilder:webhook:path=/validate-v1-sealos-cloud,mutating=false,failurePolicy=ignore,groups="*",resources=*,verbs=create;update;delete,versions=v1,name=debt.sealos.io,admissionReviewVersions=v1,sideEffects=None
//+kubebuilder:webhook:path=/validate-v1-sealos-cloud,mutating=false,failurePolicy=ignore,groups="*",resources=*,verbs=create;update;delete,versions=v1,name=debt.sealos.io,admissionReviewVersions=v1,sideEffects=None,timeoutSeconds=10
// +kubebuilder:object:generate=false

type DebtValidate struct {
Expand Down
65 changes: 0 additions & 65 deletions controllers/account/api/v1/namespacebillinghistory_types.go

This file was deleted.

Loading

0 comments on commit 1c36083

Please sign in to comment.