Skip to content
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

Feat crd autodiscovery #57

Merged
merged 32 commits into from
May 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
385af02
feat: crds creates both actions and blueprints
danielsinai Apr 4, 2024
7a0b983
chore: fixing modules and hiearchy of the code
danielsinai Apr 7, 2024
2ea81e3
chore: support CRD instead of both CRD and XRD
danielsinai Apr 7, 2024
02bc0ad
fix: schema improvements
danielsinai Apr 8, 2024
892517a
fix: added support for namespaced scoped and fixed multiple bugs
danielsinai Apr 9, 2024
ee860c2
fix: remove debug file
danielsinai Apr 9, 2024
d6922bd
chore: added debug file to gitignore
danielsinai Apr 9, 2024
e55b623
config: change the configuration naming
danielsinai Apr 9, 2024
0b5dd31
chore: fixed conflicts
danielsinai Apr 21, 2024
fa88bd0
chore: downgrade back to go 1.21
danielsinai Apr 21, 2024
229f83f
fix: go mod
danielsinai Apr 21, 2024
01f239f
chore: upgrade ci to go 1.22
danielsinai Apr 21, 2024
60fd54c
fix: update go toolchain
danielsinai Apr 21, 2024
ba1f2e0
chore: removed updating the list length
danielsinai May 5, 2024
19fa093
chore: make functions in private besides autodiscoverCRDsToAction
danielsinai May 5, 2024
fa3f867
chore: extract to more functions
danielsinai May 5, 2024
0ca5b75
tests: added tests for the CRD logic
danielsinai May 5, 2024
70e6e4a
conflicts: with main
danielsinai May 5, 2024
dcea7a4
tests: improved
danielsinai May 5, 2024
f899c0c
tests: added deletion of resources to defaults first test
danielsinai May 5, 2024
84079b3
tests: checking resources exsists
danielsinai May 5, 2024
e8cf5e7
fix: added the kind config to the resources
danielsinai May 5, 2024
ec21c44
fix: added the kind config to the resources at the start of the loop
danielsinai May 5, 2024
1f85b6a
fix: links to docs
danielsinai May 5, 2024
0526ec6
fix: links to docs
danielsinai May 5, 2024
eeab15c
fix: grammer
danielsinai May 6, 2024
331d8ca
fix: docs link
danielsinai May 6, 2024
a8d4f0d
conflicts: fix
danielsinai May 8, 2024
47ecc9a
tests: unite the CheckResources function to a single one
danielsinai May 8, 2024
03129cb
tests: add a test to check the jq pattern with a false
danielsinai May 8, 2024
49f7b7f
tests: reverted one tests
danielsinai May 8, 2024
c5a8d3f
tests: fix CI to use staging
danielsinai May 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
tests: fix CI to use staging
  • Loading branch information
danielsinai committed May 9, 2024
commit c5a8d3f6fb1ee36ed0d2f2f86c291027e8783db2
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -27,4 +27,4 @@ jobs:
env:
PORT_CLIENT_ID: ${{ secrets.PORT_CLIENT_ID }}
PORT_CLIENT_SECRET: ${{ secrets.PORT_CLIENT_SECRET }}

PORT_BASE_URL: https://api.stg-01.getport.io
2 changes: 1 addition & 1 deletion pkg/defaults/defaults_test.go
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ func Test_InitIntegration_InitDefaults_CreateDefaultResources_False(t *testing.T
_, err := integration.GetIntegration(f.portClient, f.stateKey)
assert.Nil(t, err)

testUtils.CheckResourcesExistence(false, f, []string{"workload", "namespace", "cluster"}, []string{"workload_overview_dashboard", "availability_scorecard_dashboard"})
testUtils.CheckResourcesExistence(false, f.portClient, f.t, []string{"workload", "namespace", "cluster"}, []string{"workload_overview_dashboard", "availability_scorecard_dashboard"})
}

func Test_InitIntegration_BlueprintExists(t *testing.T) {