Skip to content

Commit 3ed4ea5

Browse files
committed
renamed v1beta1 version as v1alpha2
Signed-off-by: Skye Gill <[email protected]>
1 parent 7d09b29 commit 3ed4ea5

13 files changed

+23
-23
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ KUSTOMIZE_OVERLAY ?= DEFAULT
66
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
77
FLAGD_VERSION=v0.2.5
88
CHART_VERSION=v0.2.18# x-release-please-version
9-
ENVTEST_K8S_VERSION = 1.23
9+
ENVTEST_K8S_VERSION = 1.25
1010

1111
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
1212
ifeq (,$(shell go env GOBIN))

PROJECT

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ resources:
2323
domain: openfeature.dev
2424
group: core
2525
kind: FeatureFlagConfiguration
26-
path: github.com/open-feature/open-feature-operator/apis/core/v1beta1
27-
version: v1beta1
26+
path: github.com/open-feature/open-feature-operator/apis/core/v1alpha2
27+
version: v1alpha2
2828
version: "3"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ When wishing to leverage feature flagging within the local pod, the following st
107107
_See [here](config/samples/crds/custom_provider.yaml) for additional custom resource parameters_
108108

109109
```
110-
apiVersion: core.openfeature.dev/v1beta1
110+
apiVersion: core.openfeature.dev/v1alpha2
111111
kind: FeatureFlagConfiguration
112112
metadata:
113113
name: featureflagconfiguration-sample

apis/core/v1beta1/featureflagconfiguration_conversion.go renamed to apis/core/v1alpha2/featureflagconfiguration_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package v1beta1
17+
package v1alpha2
1818

1919
import (
2020
"encoding/json"

apis/core/v1beta1/featureflagconfiguration_types.go renamed to apis/core/v1alpha2/featureflagconfiguration_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package v1beta1
17+
package v1alpha2
1818

1919
import (
2020
"encoding/json"

apis/core/v1beta1/groupversion_info.go renamed to apis/core/v1alpha2/groupversion_info.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
// Package v1beta1 contains API Schema definitions for the core v1beta1 API group
17+
// Package v1alpha2 contains API Schema definitions for the core v1alpha2 API group
1818
// +kubebuilder:object:generate=true
1919
// +groupName=core.openfeature.dev
20-
package v1beta1
20+
package v1alpha2
2121

2222
import (
2323
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -26,7 +26,7 @@ import (
2626

2727
var (
2828
// GroupVersion is group version used to register these objects
29-
GroupVersion = schema.GroupVersion{Group: "core.openfeature.dev", Version: "v1beta1"}
29+
GroupVersion = schema.GroupVersion{Group: "core.openfeature.dev", Version: "v1alpha2"}
3030

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

apis/core/v1beta1/zz_generated.deepcopy.go renamed to apis/core/v1alpha2/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/core.openfeature.dev_featureflagconfigurations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ spec:
248248
storage: true
249249
subresources:
250250
status: {}
251-
- name: v1beta1
251+
- name: v1alpha2
252252
schema:
253253
openAPIV3Schema:
254254
description: FeatureFlagConfiguration is the Schema for the featureflagconfigurations

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ configMapGenerator:
88
- files:
99
- controller_manager_config.yaml
1010
name: manager-config
11-
apiVersion: kustomize.config.k8s.io/v1beta1
11+
apiVersion: kustomize.config.k8s.io/v1alpha2
1212
kind: Kustomization
1313
images:
1414
- name: controller

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"sigs.k8s.io/controller-runtime/pkg/webhook"
3434

3535
corev1alpha1 "github.com/open-feature/open-feature-operator/apis/core/v1alpha1"
36-
corev1beta1 "github.com/open-feature/open-feature-operator/apis/core/v1beta1"
36+
corev1alpha2 "github.com/open-feature/open-feature-operator/apis/core/v1alpha2"
3737
"github.com/open-feature/open-feature-operator/controllers"
3838
webhooks "github.com/open-feature/open-feature-operator/webhooks"
3939
//+kubebuilder:scaffold:imports
@@ -52,7 +52,7 @@ func init() {
5252
utilruntime.Must(clientgoscheme.AddToScheme(scheme))
5353

5454
utilruntime.Must(corev1alpha1.AddToScheme(scheme))
55-
utilruntime.Must(corev1beta1.AddToScheme(scheme))
55+
utilruntime.Must(corev1alpha2.AddToScheme(scheme))
5656
//+kubebuilder:scaffold:scheme
5757
}
5858

@@ -103,7 +103,7 @@ func main() {
103103
setupLog.Error(err, "unable to create webhook", "webhook", "FeatureFlagConfiguration")
104104
os.Exit(1)
105105
}
106-
if err := (&corev1beta1.FeatureFlagConfiguration{}).SetupWebhookWithManager(mgr); err != nil {
106+
if err := (&corev1alpha2.FeatureFlagConfiguration{}).SetupWebhookWithManager(mgr); err != nil {
107107
setupLog.Error(err, "unable to create webhook", "webhook", "FeatureFlagConfiguration")
108108
os.Exit(1)
109109
}

0 commit comments

Comments
 (0)