Skip to content

Commit

Permalink
feat(platform): support deploy clusternet app
Browse files Browse the repository at this point in the history
  • Loading branch information
leonarliu committed Jul 5, 2022
1 parent fb637f7 commit dec09a6
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/platform/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ const (
const (
// RegistrationCommandAnno contains base64 registration command of cluster net
RegistrationCommandAnno = "tkestack.io/registration-command"
// AnywhereEdtionLabel describe which anywhere edition will be deployed
AnywhereEdtionLabel = "tkestack.io/anywhere-edtion"
// AnywhereSubscriptionNameAnno describe sub name
AnywhereSubscriptionNameAnno = "tkestack.io/anywhere-subscription-name"
// AnywhereSubscriptionNameAnno describe sub namespace
AnywhereSubscriptionNamespaceAnno = "tkestack.io/anywhere-subscription-namespace"
// AnywhereLocalizationsAnno contains base64 localizations json data
AnywhereLocalizationsAnno = "tkestack.io/anywhere-localizations"
// AnywhereMachinesAnno contains base64 machines json data
AnywhereMachinesAnno = "tkestack.io/anywhere-machines"
)

// KubeVendorType describe the kubernetes provider of the cluster
Expand Down
10 changes: 10 additions & 0 deletions api/platform/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ const (
const (
// RegistrationCommandAnno contains base64 registration command of cluster net
RegistrationCommandAnno = "tkestack.io/registration-command"
// AnywhereEdtionLabel describe which anywhere edition will be deployed
AnywhereEdtionLabel = "tkestack.io/anywhere-edtion"
// AnywhereSubscriptionNameAnno describe sub name
AnywhereSubscriptionNameAnno = "tkestack.io/anywhere-subscription-name"
// AnywhereSubscriptionNameAnno describe sub namespace
AnywhereSubscriptionNamespaceAnno = "tkestack.io/anywhere-subscription-namespace"
// AnywhereLocalizationsAnno contains base64 localizations json data
AnywhereLocalizationsAnno = "tkestack.io/anywhere-localizations"
// AnywhereMachinesAnno contains base64 machines json data
AnywhereMachinesAnno = "tkestack.io/anywhere-machines"
)

// KubeVendorType describe the kubernetes provider of the cluster
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ require (
github.com/casbin/casbin/v2 v2.2.1
github.com/chartmuseum/helm-push v0.9.0
github.com/chartmuseum/storage v0.11.0
github.com/clusternet/apis v0.6.0
github.com/clusternet/clusternet v0.6.0 // indirect
github.com/coreos/go-oidc v2.2.1+incompatible
github.com/coreos/prometheus-operator v0.38.1-0.20200506070354-4231c1d4b313
github.com/cyphar/filepath-securejoin v0.2.2
Expand Down
Loading

0 comments on commit dec09a6

Please sign in to comment.