Skip to content

Commit

Permalink
lowercase feature names are supported now
Browse files Browse the repository at this point in the history
  • Loading branch information
masonj5n committed Dec 12, 2024
1 parent a86e1d6 commit 016fcce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/controller/ngrok/kubernetesoperator_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ import (
"github.com/ngrok/ngrok-operator/internal/ngrokapi"
)

// TODO: features need to be capitalized in the ngrok API currently, this is subject to change
var featureMap = map[string]string{
ngrokv1alpha1.KubernetesOperatorFeatureBindings: "Bindings",
ngrokv1alpha1.KubernetesOperatorFeatureIngress: "Ingress",
ngrokv1alpha1.KubernetesOperatorFeatureGateway: "Gateway",
ngrokv1alpha1.KubernetesOperatorFeatureBindings: "bindings",
ngrokv1alpha1.KubernetesOperatorFeatureIngress: "ingress",
ngrokv1alpha1.KubernetesOperatorFeatureGateway: "gateway",
}

// KubernetesOperatorReconciler reconciles a KubernetesOperator object
Expand Down

0 comments on commit 016fcce

Please sign in to comment.