Skip to content

Commit

Permalink
enable feature gate for registration webhook (#210)
Browse files Browse the repository at this point in the history
Signed-off-by: ldpliu <daliu@redhat.com>
  • Loading branch information
ldpliu committed Mar 3, 2022
1 parent c1b1067 commit 55bc274
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Expand Up @@ -48,6 +48,7 @@ spec:
- "--secure-port=6443"
- "--tls-cert-file=/serving-cert/tls.crt"
- "--tls-private-key-file=/serving-cert/tls.key"
- "--feature-gates=DefaultClusterSet=true"
{{ if .DetachedMode }}
- "--kubeconfig=/var/run/secrets/hub/kubeconfig"
- "--authentication-kubeconfig=/var/run/secrets/hub/kubeconfig"
Expand Down
8 changes: 8 additions & 0 deletions test/e2e/placement_test.go
Expand Up @@ -107,6 +107,14 @@ var _ = Describe("Placement", func() {
Namespace: placementNamespace,
Name: placementName,
},
Spec: clusterapiv1beta1.PlacementSpec{
Tolerations: []clusterapiv1beta1.Toleration{
{
Key: "cluster.open-cluster-management.io/unreachable",
Operator: clusterapiv1beta1.TolerationOpExists,
},
},
},
}

placement, err = t.ClusterClient.ClusterV1beta1().Placements(placementNamespace).Create(context.TODO(), placement, metav1.CreateOptions{})
Expand Down

0 comments on commit 55bc274

Please sign in to comment.