Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Jan 17, 2025
1 parent acc4f83 commit fd40dd3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions internal/credspropagation/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,6 @@ func makeSecret(name string, data map[string][]byte) *corev1.Secret {
return s
}

func makeConfigMap(name string, data map[string]string) *corev1.ConfigMap { //nolint:unused
c := &corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: metav1.NamespaceSystem,
},
Data: data,
}
c.SetGroupVersionKind(corev1.SchemeGroupVersion.WithKind("ConfigMap"))
return c
}

func makeClientFromSecret(kubeconfSecret *corev1.Secret) (client.Client, error) {
scheme := runtime.NewScheme()
if err := clientgoscheme.AddToScheme(scheme); err != nil {
Expand Down

0 comments on commit fd40dd3

Please sign in to comment.