Skip to content

Commit e31680c

Browse files
author
Vasyl Rudiuk
committed
updated readme
Signed-off-by: Vasyl Rudiuk <[email protected]>
1 parent e6ca742 commit e31680c

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

DEVELOPMENT.md

+27-4
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,39 @@ make deploy
121121
Create a `.vscode/launch.json` file:
122122
```json
123123
{
124-
"version": "0.2.0",
124+
"version": "0.2.0",
125125
"configurations": [
126126
{
127-
"name": "Launch Package",
127+
"name": "Debug Test Function",
128+
"type": "go",
129+
"request": "launch",
130+
"mode": "test",
131+
"program": "${workspaceFolder}/internal/controller/",
132+
"env": {
133+
"HTTPS_PROXY": "",
134+
"HTTP_PROXY": "",
135+
"KUBEBUILDER_ASSETS": "${workspaceFolder}/build/testbin/k8s/1.28.0-linux-amd64/",
136+
"GIT_CONFIG_GLOBAL":"/dev/null",
137+
"GIT_CONFIG_NOSYSTEM":"true",
138+
139+
},
140+
"args": [
141+
"-test.run", "^.*",
142+
"-test.v"
143+
]
144+
},
145+
{
146+
"name": "Debug",
128147
"type": "go",
129148
"request": "launch",
130149
"mode": "auto",
131-
"program": "${workspaceFolder}/main.go"
150+
"program": "${workspaceFolder}/main.go",
151+
"args": [
152+
"--storage-adv-addr=:0",
153+
"--storage-path=/tmp/"
154+
]
132155
}
133-
]
156+
],
134157
}
135158
```
136159

internal/controller/auth_certificate.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,4 @@ func HttpTransportwithCustomCerts(tlsConfig *tls.Config, proxyStr *transport.Pro
2929
},
3030
}), nil
3131

32-
}
33-
34-
//
32+
}

internal/controller/gitrepository_controller.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ import (
6161
"github.com/fluxcd/source-controller/internal/features"
6262
sreconcile "github.com/fluxcd/source-controller/internal/reconcile"
6363
"github.com/fluxcd/source-controller/internal/reconcile/summarize"
64-
"github.com/fluxcd/source-controller/internal/util"
6564
"github.com/fluxcd/source-controller/internal/tls"
65+
"github.com/fluxcd/source-controller/internal/util"
6666
gitclient "github.com/go-git/go-git/v5/plumbing/transport/client"
6767
)
6868

@@ -215,8 +215,6 @@ func (h *GitClientHttpConfigurer) ConfigureGitClient(ctx context.Context, obj *s
215215
// }
216216
}
217217

218-
219-
220218
// configureHttpTransport sets up the HTTP transport configuration for the Git client.
221219
func (r *GitRepositoryReconciler) configureHttpTransport(ctx context.Context, obj *sourcev1.GitRepository) (*GitClientHttpConfigurer, error) {
222220
httpTransportConfig := &GitClientHttpConfigurer{} // Initialize with defaults configuration

0 commit comments

Comments
 (0)