Skip to content

Commit

Permalink
chore: rm kerberos e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
lwpk110 committed Jul 8, 2024
1 parent 4afc2e6 commit 0e9b17e
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 461 deletions.
5 changes: 4 additions & 1 deletion internal/controller/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func (c *ClusterReconciler) ReconcileCluster(ctx context.Context) (ctrl.Result,
c.preReconcile()

// reconcile resource of cluster level
c.Log.Info("Reconciling cluster resource")
if len(c.resourceReconcilers) > 0 {
res, err := common.ReconcilerDoHandler(ctx, c.resourceReconcilers)
if err != nil {
Expand All @@ -71,6 +72,7 @@ func (c *ClusterReconciler) ReconcileCluster(ctx context.Context) (ctrl.Result,
}

//reconcile role
c.Log.Info("Reconciling role resource")
for _, r := range c.roleReconcilers {
res, err := r.ReconcileRole(ctx)
if err != nil {
Expand All @@ -81,7 +83,8 @@ func (c *ClusterReconciler) ReconcileCluster(ctx context.Context) (ctrl.Result,
}
}

// reconcile discovery
// reconcile discovery\
c.Log.Info("Reconciling discovery resource")
res, err := c.ReconcileDiscovery(ctx)
if err != nil {
return ctrl.Result{}, err
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewDiscovery(
func (d *Discovery) Build(ctx context.Context) (client.Object, error) {
return &corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Name: d.Instance.GetName() + "-discovery",
Name: d.Instance.GetName(),
Namespace: d.Instance.Namespace,
Labels: d.MergedLabels,
},
Expand Down
7 changes: 4 additions & 3 deletions internal/controller/hdfscluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ func (r *HdfsClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request)
result, err := NewClusterReconciler(r.Client, r.Scheme, cr).ReconcileCluster(ctx)
if err != nil {
return ctrl.Result{}, err
} else if result.RequeueAfter > 0 {
return result, nil
}

r.Log.Info("Successfully reconciled HdfsCluster")
return result, nil
r.Log.Info("Reconcile successfully ", "Name", cr.Name)
return ctrl.Result{}, nil
}

// UpdateStatus updates the status of the HdfsCluster resource
Expand Down
Empty file removed test/e2e/default/03-secret.yaml
Empty file.
3 changes: 1 addition & 2 deletions test/e2e/default/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ metadata:
name: hdfscluster-sample-default-datanode
status:
availableReplicas: 2
replicas: 2

replicas: 2
3 changes: 0 additions & 3 deletions test/e2e/default/04-hdfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ spec:
tag: 3.3.4
clusterConfig:
zookeeperDiscoveryZNode: sample-hdfs-znode
authentication:
kerberos:
secretClass: hdfs-kerberos
nameNode:
roleGroups:
default:
Expand Down
22 changes: 0 additions & 22 deletions test/e2e/kerberos/00-assert.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions test/e2e/kerberos/00-olm.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions test/e2e/kerberos/01-assert.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions test/e2e/kerberos/01-subs.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions test/e2e/kerberos/02-assert.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions test/e2e/kerberos/02-listener.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions test/e2e/kerberos/03-assert.yaml

This file was deleted.

79 changes: 0 additions & 79 deletions test/e2e/kerberos/03-secret.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions test/e2e/kerberos/04-assert.yaml

This file was deleted.

Loading

0 comments on commit 0e9b17e

Please sign in to comment.