Skip to content

feat(application): deploy applications with custom resources #123

feat(application): deploy applications with custom resources

feat(application): deploy applications with custom resources #123

Re-run triggered August 27, 2024 13:20
Status Failure
Total duration 24s
Artifacts

static-analysis.yaml

on: pull_request
Check conventional commits
12s
Check conventional commits
Fit to window
Zoom out
Zoom in

Annotations

1 error
Check conventional commits
You have commit messages with errors ⧗ input: feature(application): remove resorces when the plan does not specify resource If the application is deployed with specified resources such as revision numbers from CharmHub or an OCI image, then the resources are removed from the TF plan, the default resources from the CharmHub is used. test(resources): Adding tests for new functions that added for custom resource upload docs(application): Updating application resources map description in the application markdown file Signed-off-by: gatici <[email protected]> ✖ type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test] [type-enum] ✖ found 1 problems, 0 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint ⧗ input: feature(resources): address review comments to update to latest resource revision upon channel updates If the charm channel is updated and revision or custom image is not specified in the TF plan, a resource revision should be attached according the updated channel. Formerly, this functionality is not implemented properly. This commit implements this. revert: Unncessary resource files added for testing are removed. chore: Some libraries are updated in go.mod and go.sum. Linting issues are fixed. docs(resources): Documentation is updated for `resources` key to include added functionality. Signed-off-by: gatici <[email protected]> ✖ type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test] [type-enum] ⚠ body must have leading blank line [body-leading-blank] ✖ found 1 problems, 1 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint ⧗ input: style: adding resources.go file This PR adds new functions to upload OCI images and handle upload requests. In the initial commit, all these functions were added to the `applications.go` file which reduces the readability of code. This commit puts all the functions which are used to process OCI image resources in a separate file named `resources.go' to reduce the complexity and increase the readilibity. docs(application): Application documentation is updated by adding custom resource usage in the existing sample TF plan. Application optional TF plan parameters are updated by changing the description of `resources` map. test(resources): A few tests are added for the functions in the resources.go. This tests will be expanded in the next commits. Signed-off-by: gatici <[email protected]> ✖ body's lines must not be longer than 100 characters [body-max-line-length] ✖ found 1 problems, 0 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint ⧗ input: fix(application): remove the manipulation to use resource version from ⚠ body must have leading blank line [body-leading-blank] ⚠ found 0 problems, 1 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint ⧗ input: revert: revert the changes which are done in deployFromRepository ⚠ body must have leading blank line [body-leading-blank] ⚠ found 0 problems, 1 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint