-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: helm chart install & template prototype #98
Conversation
plan to support Kubernetes and helm chart in this PR |
b3bde59
to
1c05dd8
Compare
feat: cluster ts feat: helm charts install & template prototype
333df69
to
12c8d19
Compare
4eb6f9b
to
b9588e2
Compare
src/quorum/command/cluster/apply.ts
Outdated
|
||
export const builder = (yargs: Argv<OptType>) => { | ||
return yargs | ||
.example('bdk quorum cluster create --interactive', 'Cathay BDK 互動式問答') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdk quorum cluster apply
src/quorum/command/cluster/apply.ts
Outdated
const confirmDelete = (await prompts({ | ||
type: 'confirm', | ||
name: 'value', | ||
message: '⚠️ Detecting quorum nodes already exists. The following processes will remove all existing files. Continue?', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quorum cluster
src/quorum/command/cluster/apply.ts
Outdated
initial: false, | ||
}, { onCancel })).value | ||
if (confirmDelete) { | ||
const spinner = ora('Quorum Network Create ...').start() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quorum Cluster Delete...
src/quorum/command/cluster/apply.ts
Outdated
})() | ||
const spinner = ora('Quorum Network Import ...').start() | ||
await cluster.apply(networkCreate, spinner) | ||
spinner.succeed('Quorum Network Import Successfully!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const spinner = ora('Quorum Cluster Apply ...').start()
await cluster.apply(clusterApply, spinner)
spinner.succeed('Quorum Cluster Apply Successfully!')
} | ||
})() | ||
|
||
const spinner = ora('Quorum Network Import ...').start() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const spinner = ora('Quorum Cluster Generate ...').start()
|
||
const spinner = ora('Quorum Network Import ...').start() | ||
await cluster.generate(clusterGenerate, networkCreate) | ||
spinner.succeed('Quorum Network Import Successfully!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spinner.succeed('Quorum Cluster Generate Successfully!')
src/quorum/service/cluster.ts
Outdated
public async delete (): Promise<void> { | ||
const k8s = new KubernetesInstance(this.config, this.infra, this.kubernetesInfra) | ||
const releases = await this.getAllHelmRelease() | ||
releases.forEach(async (release: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await Promise.all(releases.map(async (release: string) => {
await k8s.delete({ name: release, namespace: 'quorum' })
}))
這邊改成這樣比較好,外面的 ✔ Quorum Cluster Delete Successfully! 也不會提前跳出,刪除速度也會比較快
fcf1cbf
to
2461f5e
Compare
2461f5e
to
5a9c696
Compare
5a9c696
to
1709ea3
Compare
* feat: helm chart install & template prototype (#98) * feat: helm chart install & template prototype feat: cluster ts feat: helm charts install & template prototype * feat(helm): create basic helm chart * feat(helm): helm install in infra * feat(bdk): bdk cluster apply network * feat(bdk): bdk cluster generate network * fix: generate yaml issues * feat(helm): cloud native helm config * feat(helm): aws region choice * feat(helm): bdk network migrate with loadbalancer * feat(bdk): bdk quorum cluster delete network * docs(cluster): write cluster docs * chore: fix command typo and wrong example * fix: cluster generate template func * chore: update version and LICENSE * fix: unit test coverage
PULL REQUEST
Before
說明 (Description)
相關問題 (Linked Issues)
貢獻種類 (Type of change)
測試環境 (Test Configuration):
檢查清單 (Checklist):
我已完成以上清單,並且同意遵守 Code of Conduct
I have completed the checklist and agree to abide by the code of conduct.