Move features package to runtime

Signed-off-by: Hasan Turken <turkenh@gmail.com>
This commit is contained in:
Hasan Turken 2022-03-04 15:37:48 +03:00
parent 3ce0d92570
commit b19ffddf2f
No known key found for this signature in database
GPG Key ID: D7AA042F8F8B488E
1 changed files with 31 additions and 0 deletions

31
pkg/features/features.go Normal file
View File

@ -0,0 +1,31 @@
/*
Copyright 2022 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package features
import "github.com/crossplane/crossplane-runtime/pkg/feature"
// Feature flags.
const (
// EnableAlphaCompositionRevisions enables alpha support for
// CompositionRevisions. See the below design for more details.
// https://github.com/crossplane/crossplane/blob/ecd9d5/design/one-pager-composition-revisions.md
EnableAlphaCompositionRevisions feature.Flag = "EnableAlphaCompositionRevisions"
// EnableAlphaExternalSecretStores enables alpha support for
// External Secret Stores. See the below design for more details.
// https://github.com/crossplane/crossplane/blob/390ddd/design/design-doc-external-secret-stores.md
EnableAlphaExternalSecretStores feature.Flag = "EnableAlphaExternalSecretStores"
)