-
Notifications
You must be signed in to change notification settings - Fork 0
Containerize baton-google-bigquery connector #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
laurenleach
wants to merge
8
commits into
main
Choose a base branch
from
containerize
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
64bb77c
Containerize baton-google-bigquery connector
laurenleach d0baef6
Add display name and connector metadata
laurenleach c4d2138
Update to Go 1.25.2 and baton-sdk v0.7.10
laurenleach 9571a07
Update containerization: use WithDefaultCapabilitiesConnectorBuilder …
laurenleach ea8ee2a
Remove deprecated schema.go file
laurenleach 73e2618
Update resource syncers to V2 SyncOp pattern
laurenleach e95a08e
Fix containerization implementation for V2 SDK
laurenleach 40e001e
Update CI workflow and lint config, add ruleguard dependencies and fi…
laurenleach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Generate capabilities and config schema | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| generate_outputs: | ||
| if: github.actor != 'github-actions[bot]' | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| token: ${{ secrets.RELENG_GITHUB_TOKEN }} | ||
|
|
||
| - name: Setup Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: "go.mod" | ||
|
|
||
| - name: Build | ||
| run: go build -o connector ./cmd/baton-google-bigquery | ||
|
|
||
| - name: Run and save config output | ||
| run: ./connector config > config_schema.json | ||
|
|
||
| - name: Write credentials to file | ||
| run: | | ||
| cat << EOF > ./creds.json | ||
| ${{ secrets.BATON_CREDENTIALS_JSON }} | ||
| EOF | ||
|
|
||
| - name: Run and save capabilities output | ||
| run: ./connector capabilities --credentials-json-file-path=creds.json > baton_capabilities.json | ||
|
|
||
| - name: Commit changes | ||
| uses: EndBug/add-and-commit@v9 | ||
| with: | ||
| default_author: github_actions | ||
| message: "Updating baton config schema and capabilities." | ||
| add: | | ||
| config_schema.json | ||
| baton_capabilities.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| *.so | ||
| *.dylib | ||
| *.c1z | ||
| baton-google-bigquery | ||
|
|
||
| # Test binary, built with `go test -c` | ||
| *.test | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| version: "2" | ||
| linters-settings: | ||
| exhaustive: | ||
| default-signifies-exhaustive: true | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/bash | ||
| cd /Users/laurenleach/go/src/github.com/ConductorOne/baton-google-bigquery | ||
| git add pkg/config | ||
| git add .github/workflows/capabilities_and_config.yaml | ||
| git add Makefile | ||
| git add cmd/baton-google-bigquery/main.go | ||
| git add .github/workflows/ci.yaml | ||
| git add .github/workflows/release.yaml | ||
| git add go.mod | ||
| git add pkg/connector/connector.go | ||
| git rm .github/workflows/capabilities.yaml | ||
| git rm .github/workflows/main.yaml | ||
| git status | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interestingly the leftover file here is different than in a few other repos.