Skip to content

Commit

Permalink
chore: refactor configconstraint api and support multi-version (#6919)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophon-zt authored Mar 29, 2024
1 parent b088d60 commit e1531b8
Show file tree
Hide file tree
Showing 144 changed files with 5,694 additions and 2,128 deletions.
11 changes: 11 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,15 @@ resources:
defaulting: true
validation: true
webhookVersion: v1
- api:
crdVersion: v1
domain: kubeblocks.io
group: apps
kind: ConfigConstraint
path: github.com/apecloud/kubeblocks/apis/apps/v1
version: v1
webhooks:
conversion: true
validation: true
webhookVersion: v1
version: "3"
23 changes: 23 additions & 0 deletions apis/apps/v1/configconstraint_conversion.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
Copyright (C) 2022-2023 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

func (r *ConfigConstraint) Hub() {
}
Loading

0 comments on commit e1531b8

Please sign in to comment.