Skip to content

Commit

Permalink
Fixed some tiny problems about logging and documents (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI authored Nov 15, 2024
1 parent 88e7a83 commit ba32a91
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-docsite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build docsite

on:
push:
branches:
- master
- test-docsite
paths:
- 'docsite/**'
pull_request:
branches:
- master
- test-docsite
paths:
- 'docsite/**'

jobs:
build:
name: build docsite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
cache-dependency-path: './docsite/yarn.lock'
- name: Install dependencies
run: cd docsite && yarn install --frozen-lockfile
- name: Build website
run: cd docsite && yarn build
2 changes: 1 addition & 1 deletion api/v1alpha1/obtenantbackuppolicy_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (r *OBTenantBackupPolicy) ValidateCreate() (admission.Warnings, error) {
Name: r.Spec.TenantCRName,
}, tenant)
if err != nil {
return nil, apierrors.NewNotFound(schema.GroupResource{Group: "oceanbase.oceanbase.com", Resource: "obtenants"}, r.Spec.TenantName)
return nil, apierrors.NewNotFound(schema.GroupResource{Group: "oceanbase.oceanbase.com", Resource: "obtenants"}, r.Spec.TenantCRName)
}

if tenant.Status.Status != tenantstatus.Running {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
sidebar_position: 2
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

# Recover from node failure

This topic describes how to recover from the failures of OBServer nodes by using ob-operator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
sidebar_position: 2
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'


# 故障恢复

本文介绍如何使用 ob-operator 对于 OceanBase 节点故障进行自动恢复。
Expand Down

0 comments on commit ba32a91

Please sign in to comment.