Skip to content

Commit 3f86e94

Browse files
authored
feat(platform): define bootstrap apps in cluster (#1456)
1 parent f556820 commit 3f86e94

File tree

21 files changed

+1600
-499
lines changed

21 files changed

+1600
-499
lines changed

api/openapi/zz_generated.openapi.go

Lines changed: 59 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/platform/types.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"k8s.io/apimachinery/pkg/api/resource"
2424
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2525
"k8s.io/apimachinery/pkg/util/intstr"
26+
applicationv1 "tkestack.io/tke/api/application/v1"
2627
)
2728

2829
// +genclient
@@ -150,6 +151,9 @@ type ClusterSpec struct {
150151
HostnameAsNodename bool
151152
// +optional
152153
NetworkArgs map[string]string
154+
// BootstrapApps will install apps during creating cluster
155+
// +optional
156+
BootstrapApps BootstrapApps
153157
}
154158

155159
// ClusterStatus represents information about the status of a cluster.
@@ -390,6 +394,19 @@ type ClusterFeature struct {
390394
Upgrade Upgrade
391395
}
392396

397+
type BootstrapApps []BootstapApp
398+
399+
type BootstapApp struct {
400+
App App
401+
}
402+
403+
type App struct {
404+
// +optional
405+
metav1.ObjectMeta
406+
// +optional
407+
Spec applicationv1.AppSpec
408+
}
409+
393410
type HA struct {
394411
TKEHA *TKEHA
395412
ThirdPartyHA *ThirdPartyHA

0 commit comments

Comments
 (0)