Skip to content

Commit

Permalink
fixup! Add fine-grain ingress DNS control through CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Jamet committed Dec 10, 2024
1 parent 7e216a5 commit 242ad16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
8 changes: 8 additions & 0 deletions helm-chart/traffic-controller/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ metadata:
namespace: {{ .Release.Namespace }}
name: "{{ .Release.Name }}-leader-election-role"
rules:
- apiGroups:
- ingress.adevinta.com
resources:
- "clusteringressservicednsweights"
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down
19 changes: 0 additions & 19 deletions pkg/apis/ingress.adevinta.com/v1beta1/ingress_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// kind: ClusterIngressServiceDNSWeight
// spec:
// weight: <int>
// identifier: <string>
// serviceSelector:
//
// namespace: <string>
// matchLabels:
// <string>: <string>
//
// ingressSelector:
//
// matchLabels:
// <string>: <string>
// namespaces:
// - <string>
// classes:
// - <string>

// ClusterIngressServiceDNSWeight is the defines the links between k8s services and ingresses
// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Cluster
Expand Down

0 comments on commit 242ad16

Please sign in to comment.