Skip to content

Commit

Permalink
feat: Support Reconciliation Tracing (#8143)
Browse files Browse the repository at this point in the history
(cherry picked from commit a6bd2d7)
  • Loading branch information
free6om committed Nov 26, 2024
1 parent 7d20665 commit 504b17c
Show file tree
Hide file tree
Showing 71 changed files with 9,977 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
for filePath in $(echo "$FILE_PATH"); do
filePath="${filePath%/*}"
if [[ -d $filePath && "$filePath" != *"i18n/zh-cn"* ]]; then
echo $(pcregrep -r -n -I '[^\x00-\x7f]' $filePath >> pcregrep.out)
echo $(find "$filePath" -type f ! -name "*i18n*" -exec pcregrep -n -I '[^\x00-\x7f]' {} + >> pcregrep.out)
fi
done
Expand Down
10 changes: 10 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,16 @@ resources:
kind: NodeCountScaler
path: github.com/apecloud/kubeblocks/apis/experimental/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: kubeblocks.io
domain: kubeblocks.io
group: trace
kind: ReconciliationTrace
path: github.com/apecloud/kubeblocks/apis/trace/v1
version: v1
- api:
crdVersion: v1
namespaced: true
Expand Down
41 changes: 41 additions & 0 deletions apis/trace/v1/groupversion_info.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
Copyright (C) 2022-2024 ApeCloud Co., Ltd
This file is part of KubeBlocks project
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

// Package v1 contains API Schema definitions for the trace v1 API group
// +kubebuilder:object:generate=true
// +groupName=trace.kubeblocks.io
package v1

import (
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/scheme"
)

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "trace.kubeblocks.io", Version: "v1"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
)

const Kind = "ReconciliationTrace"
Loading

0 comments on commit 504b17c

Please sign in to comment.