-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from puzzle/examples
move tests
- Loading branch information
Showing
25 changed files
with
373 additions
and
99 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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,55 @@ | ||
#!/bin/sh | ||
|
||
################################################# | ||
# Example on how to call the PackagePush method. | ||
# Packages and pushes a Helm chart to a specified OCI-compatible registry with authentication. | ||
# ARGUMENTS: | ||
# directory: directory that contains the Helm Chart | ||
# registry: URL of the registry | ||
# repository: name of the repository | ||
# username: registry login username | ||
# password: registry login password as a Dagger Secret | ||
# RETURN: | ||
# true if the chart was successfully pushed, or false if the chart already exists, with error handling for push failures. | ||
################################################# | ||
function helm_packagepush() { | ||
dagger -m helm/ \ | ||
call package-push \ | ||
--directory ./helm/examples/testdata/mychart/ \ | ||
--registry registry.puzzle.ch \ | ||
--repository helm \ | ||
--username registry-helm-user \ | ||
--password env:REGISTRY_HELM_PASSWORD \ | ||
--directory ./examples/testdata/mychart/ | ||
} | ||
|
||
################################################# | ||
# Example on how to call the Test method. | ||
# Run the unit tests for the Helm Chart located inside the directory referenced by the directory parameter. | ||
# Add the directory location with `"."` as `--args` parameter to tell helm unittest where to find the tests inside the passed directory. | ||
# ARGUMENTS: | ||
# directory: directory that contains the Helm Chart | ||
# args: arguments for the helm test command | ||
# RETURN: | ||
# The Helm unit test output as string. | ||
################################################# | ||
function helm_test() { | ||
dagger -m helm/ \ | ||
call test \ | ||
--directory ./helm/examples/testdata/mychart/ \ | ||
--args "." | ||
} | ||
|
||
################################################# | ||
# Example on how to call the Version method. | ||
# Get and display the version of the Helm Chart located inside the directory referenced by the directory parameter. | ||
# ARGUMENTS: | ||
# directory: directory that contains the Helm Chart | ||
# RETURN: | ||
# The Helm Chart version as string. | ||
################################################# | ||
function helm_version() { | ||
dagger -m helm/ \ | ||
call version \ | ||
--directory ./helm/examples/testdata/mychart/ | ||
} |
This file contains 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 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,4 @@ | ||
/dagger.gen.go linguist-generated | ||
/internal/dagger/** linguist-generated | ||
/internal/querybuilder/** linguist-generated | ||
/internal/telemetry/** linguist-generated |
This file contains 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,4 @@ | ||
/dagger.gen.go | ||
/internal/dagger | ||
/internal/querybuilder | ||
/internal/telemetry |
This file contains 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,12 @@ | ||
{ | ||
"name": "go", | ||
"sdk": "go", | ||
"dependencies": [ | ||
{ | ||
"name": "helm", | ||
"source": "../helm/" | ||
} | ||
], | ||
"source": ".", | ||
"engineVersion": "v0.13.5" | ||
} |
Oops, something went wrong.