Releases: mia-platform/miactl
v0.8.0
Changelog
Features
- 543acdc feat: add environment list tests
- 067032d feat: add format to marketplaceItem json
- 8eec1ee feat: add marketplace get command
- 2f2567a feat: add marketplace item resource
- fe2e28f feat: add marketplace resource deletion cmd
- 3467edb feat: add runtime pod list command
- e326bfe feat: add sub command get
- 18f8ae8 feat: add version command
- 3d4ce28 feat: change uniqueness check on marketplace apply
- f409f5d feat: create jobs from cronjobs
- 2e6367d feat: implement environment list runtime command
- 23fd8ee feat: improve pre-commit hooks
- 2440959 feat: marketplace apply command
- 3173646 feat: marketplace apply with supportedByImage upload
- 2f1e27d feat: metadata to file upload request (#115)
- 4069cf5 feat: pin base docker image for security
- b6b54f9 feat: update dependencies
- 1dae974 feat: update dependencies
- 50772ec feat: update go and tools version
- 45bcc73 feat: update tools versions
Bug Fixes
- 2f4a320 fix: add missing \n in couple of Printf calls
- abb2fdd fix: environment subcommand descriptions
- e69903c fix: hook runtime create command
- d17bd9c fix: make deploy tests resilient to local config
- e4b08c7 fix: parsing errors in runtime events
- df808d8 fix: wrong path for cornjobs module
Others
- c9db747 Add job list subcommand (#101)
- 7dc657c Add runtime deployment list subcommand (#106)
- 8e5d6e2 Add runtime events command (#109)
- 9b856b8 Add runtime service list subcommand (#107)
- 2cc27e4 Apply suggestions from code review
- 707536b Create only one runtime list command for all resources (#110)
- b0d4ef5 Feat/runtime cronjob list command (#100)
- 66e5605 Merge pull request #92 from mia-platform/feat/SMTM-8-list-marketplace-items
- cbf29ba Merge pull request #93 from mia-platform/feat/SMTM-11
- 378d0b5 Merge pull request #94 from mia-platform/feat/SMTM-12
- 7a7762a Merge pull request #95 from mia-platform/feat/list-environments
- 14657da Update internal/cmd/marketplace/delete.go
- 29867e5 Update internal/cmd/marketplace/marketplace_item.go
- 4a6dbca applied suggestion
- ea685da applied suggestions
- 11a97dc applied suggestions
- 3f2e88e chore(deps): bump library/alpine from 3.18.3 to 3.18.4
- 792710e chore: changelog
- 399d5b4 chore: fix lint
- 6de8e08 chore: go mode tidy
- 03cc479 chore: lint
- 18413ea chore: marketplace_item naming
- 92ec4f6 chore: mod tidy
- 2b1fb7e chore: prettify test
- d3a1f38 chore: remove unused snapshot
- fcf90b1 ci: bump github/codeql-action from 2.21.8 to 2.21.9
- 08dd85b ci: move build-tags of golangci from make to config
- 20ac740 ci: pin actions to sha for security
- ca85731 ci: update codeql actions
- dd2ca27 docs: add marketplace commands, capitalize Mia-Platform related terms
- 1c8d6d0 docs: add new subcommand to the list
- fd3d7fa docs: fix go install miactl instruction
- 2f05650 docs: install on Windows with WSL
- fdb235e docs: update changelog
- 7d76420 docs: v0.8.0
- c1ca8f3 feat(SMTM-8): list marketplace items
- 22cd039 fixed lint error
- faa50c6 perf: apply suggestions
- bc16984 perf: avoid client mapping for marketplace item
- dfb9498 perf: bump yaml.v2 to yaml.v3
- 341ca48 perf: exactArgs
- 36b22f9 perf: generic interfaces for extra properties
- c46906d perf: get command returns formatted json
- b9f1dea perf: linting
- fad9a0c perf: marketplace_item refactor (remove redundancy) encoding package
- b31f9ff perf: removed unused declarations
- 3ef8a6b perf: removed unused return from test mock util
- a12b191 perf: wrap marshal panic
- b8f21bb refactoring: improve readability
- 7903e80 removed Mia-Platform reference
- bc161c1 small fix
- cddf687 style: change table header for marketplace
- 8e1bbed style: remove autowrap for list cmd output
v0.7.0
v0.6.1
v0.6.0
Changelog
Features
- cec8492 feat: add context list command
- e0a9c4f feat: company list command
- ee89fca feat: login M2M with basic auth credentials
- 07313eb feat: merge 0.5 in main
- 5a549ba feat: service account creation
Others
- 75c8a5c Update 10_overview.md
- 3ab89bd chore: update tools versions
- 92ff35e ci: bump actions/setup-go from 3 to 4
- c8a9aeb docs: fix typos
- 5213eca docs: rewrite README
- 30e1d3e docs: update CHANGELOG
- f58ce00 docs: v0.6.0
- f4f0f16 refactor: fix lint problems
- e6abd1c refactor: reworked OIDC login test
- e3ea0df style: fix lint rule
v0.5.0
v0.4.0
Changelog
Features
- 2ca7c3c feat: add deploy command
- 3410abd feat: add new docs pages
- e49616e feat: add project list command
- f6047d9 feat: add support for context management
- ac741ad feat: add support to go 1.17 and 1.18
- 7958647 feat: created miaClient and tests
- 9c3149c feat: move cli options to a single struct
- 9ca658d feat: new login
- 639a2f2 feat: refactor httphandler to integrate miaclient and request structs
- db6df5f feat: refactor repository to use new template
- 7604196 feat: remove custom completion
- 3b3222f feat: rename apibaseurl flag to endpoint
- 8474f28 feat: save login tokens in files
- d8c8e48 feat: set ctx values before project list cmd
- 13f6a54 feat: update dependencies
- 94bb54e feat: update login function to close browser
- a2bfe41 feat: update tools versions
Bug Fixes
- b12c7cd fix: add check for expired token
- 07949f7 fix: broken tests
- d67bb8f fix: check if flags have changed to set ctx values
- e42eb2a fix: close resp body only when resp is not nil
- 82372fd fix: commands descriptions for autocomplete
- 737f901 fix: commented out test
- 5a195d3 fix: correct error handling
- d6d8727 fix: fix test with go 1.18
- 3ea8a55 fix: login flow
- 4982359 fix: mock browser call in goroutine
- b2b337d fix: move html script for login browser inside body
- 57b4c45 fix: remove unusued type, export Token
- db29cf6 fix: remove logs
Others
- 8b1a830 Merge branch 'feat/refactor-repository' of github.com:mia-platform/miactl into feat/refactor-repository
- 3d7b6f4 Merge pull request #56 from mia-platform/fix/docs-directory-miactl
- a244652 Merge pull request #64 from mia-platform/dependabot/go_modules/github.com/stretchr/testify-1.7.5
- dcb3fa2 Merge pull request #66 from mia-platform/fix-go-1.18
- a842ed5 added docs files
- 06013d6 build(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.5
- ff2136b chore: change LICENSE to Apache2
- 3af98d1 chore: move files to old directory
- 4f83d1f ci: update ci test job
- 3937373 corrections
- 8d0adde docs: add commands section
- ab9e6e4 docs: add context examples
- 56d1ddb docs: add deploy example
- fa146db docs: add examples file
- a6b1303 docs: add instruction for new setup doc
- 498f06d docs: add overview section
- 0812e58 docs: delete old doc files
- 04e7f5c docs: finalized documentations
- a1e8ef1 docs: fix docker installation command
- 127440a docs: update deploy command usage
- a5a3fb8 docs: update flags for project list command
- 625d74e docs: update installation instruction in README
- 19fde1d docs: v0.4.0
- 08cac3b refactor: bring sanity to command flags
- f5c73cb refactor: change auth url to base url
- f7762aa refactor: change request to sessionhandler
- 31e6d58 refactor: check return value of w.Write in mock server
- 3f20053 refactor: close resp body before returning OIDC tokens
- 06aaa24 refactor: context update function
- ed9cc9d refactor: integrate MiaClient with Request
- 68e73a6 refactor: move IAuth field to SessionHandler struct
- 67b3c61 refactor: remove old code and update linter rules
- cf55631 refactor: return an error when setting context values
- c062801 style: change deploy command use
- 832868f style: change html style for login succeded page
- 2564970 style: renamed deploy no-semver flag
- 2740d1b test: unit test for httpClientBuilder
v0.3.1
v0.3.0
Changelog
2fcdfb7 Abstracted sleep function, improved tests and defined pipeline states
004bd9e Add macos to ci (#3)
40fe021 Added JSON client default timeout of 10s
695a553 Added flag to select additional CA certificate
e181866 Added further tests to verify ca-certificate usage
5683de7 Added initial version of deploy status command
3fae688 Added insecure connection option to login command
86544ce Added login command tests
cdb31e3 Added test of --ca-cert flag to commands
5336ff6 Added test of --insecure flag to commands
be599e4 Apply suggestions from code review
d63e2e8 Apply suggestions from code review
a221cc5 Apply suggestions from code review
ba9f114 Clarified access token and errors comparison in login test
50a54dd Command return error in case of pipeline failed or canceled
9e829a3 Deploy api migration (#24)
573f015 Extracted factory functions into their own package
66ee6d4 Extracted login sub-command into a standalone one
21dbc1c Fixed displaying multiple errors on commands error
7d932b7 Fixed improper setting of deploy flags
f049783 Fixed status check routine and added proper message when no triggered pipelines found
bb6ea22 Generalized http server mock to clarify tests implementation
22fb5b3 Hardcoded miactl app-id due to its uniqueness
b9a14c5 Implemented first version of deploy command
cb87645 Improved deploy command output
9a829aa Improved login command interaction
f20b049 Improved tests and simplified rendering object
230eeb8 Integrated the check status deploy logic into the sdk package
6cc7e30 Integrated the deploy trigger logic into the sdk package
3cb94b9 Introduced initial support to login using username and password
8ff4268 Introduced support for custom CA certificate in sdk client
9686145 Merge branch 'issue-16-deploy-history' of github.com:mia-platform/miactl into issue-16-deploy-history
4d34215 Merge branch 'master' into issue-16-deploy-history
6a5f912 Merge pull request #23 from mia-platform/issue-16-deploy-history
ae10c4a Merge pull request #25 from mia-platform/upgrade-deps
abc3398 Merge pull request #26 from AlessandroMinoccheri/fix-readme
49095d6 Merge pull request #28 from mia-platform/dependabot/go_modules/github.com/spf13/cobra-1.1.0
7d358dd Merge pull request #29 from mia-platform/dependabot/go_modules/github.com/spf13/cobra-1.1.1
fc042b1 Merge pull request #30 from mia-platform/dependabot/go_modules/github.com/stretchr/testify-1.7.0
402ed86 Merge pull request #31 from mia-platform/dependabot/go_modules/github.com/spf13/cobra-1.1.2
392807c Merge pull request #33 from mia-platform/dependabot/go_modules/github.com/spf13/cobra-1.1.3
bd91f3b Merge pull request #37 from mia-platform/dependabot/add-v2-config-file
612de90 Merge pull request #38 from mia-platform/feature/password-login
ed51319 Merge pull request #39 from mia-platform/dependabot/go_modules/github.com/olekukonko/tablewriter-0.0.5
3e8a404 Merge pull request #40 from mia-platform/feature/trigger-deploy
9c120c3 Merge pull request #41 from mia-platform/feature/deploy-status
91d13ef Merge pull request #42 from mia-platform/bugfix/login-path-fix
f25b11a Merge pull request #43 from mia-platform/feature/skip-certificate
672afdd Merge pull request #44 from mia-platform/dependabot/go_modules/gopkg.in/h2non/gock.v1-1.1.0
ec1ee66 Merge pull request #45 from mia-platform/feature/select-custom-certificate
4c2363b Merge pull request #46 from mia-platform/dependabot/go_modules/github.com/spf13/viper-1.8.0
127ce65 Modified client to support insecure connections
e40e514 Moved PipelinesConfig types in the deploy command package
f829c84 Moved factory to first level
564bea0 Refactored sdk to move login cmd logic inside it
99adaa8 Refactored trigger command and moved its functionality into the sdk package
443b859 Reintroduced ioutil to allow earlier version of go to test propertly
da2480e Removed else statement
089e13d Removed factory initialization in tests
d360440 Removed function to get endpoint path
921c37d Removed storing details of triggered pipelines to match updated deploy flow
01918ed Removed unnecessary condition on response status
51af3bb Removed unneeded arguments in tests
6e19d67 Removed unneeded check and moved base url verification in the pre-command phase
dbc2f8d Removed unneeded comment
5b84ee8 Removed unneeded defer
03c1b4a Removed unneeded struct
3ac0731 Removed unused function
5041507 Removed unused types
4bab20d Removed variables redundancy and fixed deploy path
10910a2 Renamed --certificate flag to --ca-cert to clarify which type of certificate should be provided
e9965f2 Reorganized sdk modules
12c6bd5 Update cmd/console/deploy/status.go
47f6295 Update cmd/get.go
ea1b2ba Update goreleaser.yml
644553a Update release.yml
25821d7 Update sdk/client.go
410efaf Update sdk/deploy_test.go
528243b Update sdk/deploy_test.go
ca37469 Update sdk/deploy_test.go
6b127e7 Update sdk/deploy_test.go
ad2f836 Update sdk/deploy_test.go
7110ed8 Updated deploy command to foster development of deploy status command
49ace12 Updated pipeline check status command according to updated flow
b48a62f Updated test server mock to clarify its usage and updated sdk deploy tests
8a9e941 Updated tests to exploit TLS connection with self-signed certificate
48e87b7 Upgrade to GitHub-native Dependabot
ad5044d add deploy item
719e790 add go version 1.15
2325b61 add(16): deploy client implementation
1ae12ae add(16): display environment of deploy
552e7c7 add(16): implemented DeployHistoryQuery
0bb1f6a added dot
250d744 added tests against marshaled deploy history data
4cd0478 aligned with remote
fa88935 build(deps): bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5
542edae build(deps): bump github.com/spf13/cobra from 1.0.0 to 1.1.0
86296a5 build(deps): bump github.com/spf13/cobra from 1.1.0 to 1.1.1
8281130 build(deps): bump github.com/spf13/cobra from 1.1.1 to 1.1.2
055ea66 build(deps): bump github.com/spf13/cobra from 1.1.2 to 1.1.3
ad13413 build(deps): bump github.com/spf13/viper from 1.7.1 to 1.8.0
87b6c8f build(deps): bump github.com/stretchr/testify from 1.6.1 to 1.7.0
b5d58c4 build(deps): bump gopkg.in/h2non/gock.v1 from 1.0.16 to 1.1.0
c0e2dce change on workflow run
ef451c9 command prep
b309055 completed doc
6f7c8c1 completed tests for sdk
21b78d6 defined DeployQuery struct
972e7e3 feat(16): added custom renderer for dates and used it in history
767ceeb feat(16): implemented get deployments command with project flag validation and sdk integration
3c1872b feat: update releaser file and workflow
72b69c7 feat: update releaser file and workflow
c7b96ee feat: upgrade to go v1.16
73767b9 fix readme file
b7eb4fe fix(16): typo
6e26ddf fix(login): login path changed from /oauth/token to /api/oauth/token
01b887d fix(status): added {{deployId}} required argument to the 'miactl console deploy status' command
b376ace full coverage
792c369 implementation of sdk
ce27ae5 implemented test
60bb2f6 refactor(16): extracted getProjectByID fn
c6b25d5 refactor(16): moved projectList response body in standalone constant
bd69cb5 refactor(16): renamed file
efb52dc refactor(16): renamed test
7127b5a refactor(16): testdata directory for sdk
0608c96 rem(16): printf
25d02b6 rem(16): remove unused import
6074e3c rem(16): removed useless execute
57a06ab removed useless control and updated test
7affe85 set smart-deploy as default strategy
995b8a5 test(16): updated test for client validation
5896aae tests
f26a236 updated tests
be92d76 upgrade deps
99a977f upgrade deps
v0.2.0
Changelog
db3f701 Apply suggestions from code review
53cfc03 Merge pull request #18 from mia-platform/issue-12-secret-apikey
f44c8bd Merge pull request #19 from mia-platform/issue-12-secret-apikey
f6d0cff Merge pull request #21 from mia-platform/issue-10
3d32533 Update README.md
a441099 docs(issue-10): fix usage long description in completion
55440cb docs(issue-10): improve autocomplete docs
feaba8b feat(issue-10): add completion command and completion generation
1b9f59a finished replacement
2bb98b5 fix: backend expects secret header
ff3b00e refactor: remove redundant type from slice
0b03032 renamed secret to API Key
v0.1.0
Changelog
40ff5ef Initial cli commit
7569c6f Initial commit
ff827fc Merge pull request #2 from mia-platform/fix-miactl-installation-1
95b4256 Merge pull request #5 from mia-platform/feat/makefile
b3092f7 Merge pull request #6 from mia-platform/feat/brew-ci
1b3f522 add ci releases and brew tap
353cc73 add makefile
a38f4fc add race param to tests
a28da33 added github url
5d11393 fix: fix miactl package import
64814a9 fix: fix miactl package import order
c0c8ce1 fixed import in main.go
a7011e3 portable date command
04f16f5 restored to first version
84adfab run github actions