Skip to content

Commit

Permalink
fixups: context, flip NamespacedName, type cast "stunnel"
Browse files Browse the repository at this point in the history
Co-authored-by: John Strunk <[email protected]>
  • Loading branch information
alaypatel07 and JohnStrunk authored Nov 12, 2021
1 parent 8505c12 commit d374eff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions transport/stunnel/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (s *server) MarkForCleanup(ctx context.Context, c ctrlclient.Client, key, v
Namespace: s.NamespacedName().Namespace,
},
}
return utils.UpdateWithLabel(context.TODO(), c, secret, key, value)
return utils.UpdateWithLabel(ctx, c, secret, key, value)
}

func (s *server) reconcileConfig(ctx context.Context, c ctrlclient.Client) error {
Expand All @@ -165,8 +165,8 @@ func (s *server) reconcileConfig(ctx context.Context, c ctrlclient.Client) error

stunnelConfigMap := &corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Namespace: s.NamespacedName().Namespace,
Name: s.prefixedName(stunnelConfig),
Namespace: s.NamespacedName().Namespace,
},
}

Expand Down
2 changes: 1 addition & 1 deletion transport/stunnel/stunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
)

const (
TransportTypeStunnel = "stunnel"
TransportTypeStunnel transport.Type = "stunnel"
Container = "stunnel"
)

Expand Down

0 comments on commit d374eff

Please sign in to comment.