Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
Signed-off-by: Vasyl Rudiuk <[email protected]>
  • Loading branch information
Vasyl Rudiuk committed Dec 1, 2023
1 parent e6ca742 commit e31680c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
31 changes: 27 additions & 4 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,39 @@ make deploy
Create a `.vscode/launch.json` file:
```json
{
"version": "0.2.0",
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"name": "Debug Test Function",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${workspaceFolder}/internal/controller/",
"env": {
"HTTPS_PROXY": "",
"HTTP_PROXY": "",
"KUBEBUILDER_ASSETS": "${workspaceFolder}/build/testbin/k8s/1.28.0-linux-amd64/",
"GIT_CONFIG_GLOBAL":"/dev/null",
"GIT_CONFIG_NOSYSTEM":"true",

},
"args": [
"-test.run", "^.*",
"-test.v"
]
},
{
"name": "Debug",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go"
"program": "${workspaceFolder}/main.go",
"args": [
"--storage-adv-addr=:0",
"--storage-path=/tmp/"
]
}
]
],
}
```

Expand Down
4 changes: 1 addition & 3 deletions internal/controller/auth_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ func HttpTransportwithCustomCerts(tlsConfig *tls.Config, proxyStr *transport.Pro
},
}), nil

}

//
}
4 changes: 1 addition & 3 deletions internal/controller/gitrepository_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ import (
"github.com/fluxcd/source-controller/internal/features"
sreconcile "github.com/fluxcd/source-controller/internal/reconcile"
"github.com/fluxcd/source-controller/internal/reconcile/summarize"
"github.com/fluxcd/source-controller/internal/util"
"github.com/fluxcd/source-controller/internal/tls"
"github.com/fluxcd/source-controller/internal/util"
gitclient "github.com/go-git/go-git/v5/plumbing/transport/client"
)

Expand Down Expand Up @@ -215,8 +215,6 @@ func (h *GitClientHttpConfigurer) ConfigureGitClient(ctx context.Context, obj *s
// }
}



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

0 comments on commit e31680c

Please sign in to comment.