Skip to content

Commit

Permalink
chore: clean up unused API code after moving to v1beta1
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Nov 15, 2023
1 parent 5108129 commit 4b082ee
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 1,869 deletions.
20 changes: 0 additions & 20 deletions apis/core/v1alpha1/featureflagconfiguration_conversion.go

This file was deleted.

31 changes: 0 additions & 31 deletions apis/core/v1alpha1/featureflagconfiguration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package v1alpha1

import (
"github.com/open-feature/open-feature-operator/common/utils"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -107,33 +106,3 @@ type FeatureFlagConfigurationList struct {
func init() {
SchemeBuilder.Register(&FeatureFlagConfiguration{}, &FeatureFlagConfigurationList{})
}

func (ff *FeatureFlagConfiguration) GetReference() metav1.OwnerReference {
return metav1.OwnerReference{
APIVersion: ff.APIVersion,
Kind: ff.Kind,
Name: ff.Name,
UID: ff.UID,
Controller: utils.TrueVal(),
}
}

func (ff *FeatureFlagConfiguration) GenerateConfigMap(name string, namespace string, references []metav1.OwnerReference) corev1.ConfigMap {
return corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: namespace,
Annotations: map[string]string{
"openfeature.dev/featureflagconfiguration": name,
},
OwnerReferences: references,
},
Data: map[string]string{
utils.FeatureFlagConfigMapKey(namespace, name): ff.Spec.FeatureFlagSpec,
},
}
}

func (p *FeatureFlagServiceProvider) IsSet() bool {
return p != nil && p.Name != ""
}
80 changes: 0 additions & 80 deletions apis/core/v1alpha1/featureflagconfiguration_types_test.go

This file was deleted.

9 changes: 0 additions & 9 deletions apis/core/v1alpha1/featureflagconfiguration_webhook.go

This file was deleted.

20 changes: 0 additions & 20 deletions apis/core/v1alpha1/flagsourceconfiguration_conversion.go

This file was deleted.

Loading

0 comments on commit 4b082ee

Please sign in to comment.