Skip to content

Commit

Permalink
Fix groupversion for multicasskop
Browse files Browse the repository at this point in the history
Also updated setup namespace for casskop(drop depricated usage of
namespace)

Fixes: cscetbon#123
  • Loading branch information
AKamyshnikova committed Oct 26, 2023
1 parent a2cbc87 commit b812dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"os"
"path"
"runtime"
"sigs.k8s.io/controller-runtime/pkg/cache"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -162,8 +163,7 @@ func main() {
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
MetricsBindAddress: metricsAddr,
Port: 9443,
Namespace: namespace,
Cache: cache.Options{Namespaces: []string{namespace}},
HealthProbeBindAddress: probeAddr,
})
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions multi-casskop/api/v2/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

// Package v2 contains API Schema definitions for the multicasskops.db.orange.com v2 API group
// +kubebuilder:object:generate=true
// +groupName=multicasskops.db.orange.com
// +groupName=db.orange.com
package v2

import (
Expand All @@ -26,7 +26,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "multicasskops.db.orange.com", Version: "v2"}
GroupVersion = schema.GroupVersion{Group: "db.orange.com", Version: "v2"}

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

0 comments on commit b812dd3

Please sign in to comment.