Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-26refactor: remove internal/source/domains packagefeistel
2021-08-20test: add back domains testfeistel
this was actually a valid test, we just need to make sure the test case related to disk source are pruned and gitlab source config is being tested
2021-08-20test: remove domain-config-source=gitlab from test and remove tests using ↵feistel
disk source
2021-07-08Update test mocksJaime Martinez
2021-05-20Remove serverless code from Pagesfeistel
2021-04-29Use config package in GitLab clientJaime Martinez
Uses the `internal/config/` client inside the `internal/source/gitlab/` package which makes it easier to extend the configuration. This is an iteration of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/543. Changelog: other
2021-03-04Add GitLab cache config flagsJaime Martinez
Add new configuration flags for GitLab API cache - `gitlab-cache-expiry` - `gitlab-cache-refresh` - `gitlab-cache-cleanup` - `gitlab-retrieval-timeout` - `gitlab-retrieval-interval` - `gitlab-retrieval-retries` Changelog: added
2021-03-04Add Cache to config pkgJaime Martinez
Move `type cacheConfig` to `type Cache` inside `internal/config/` package. Related to https://gitlab.com/gitlab-org/gitlab-pages/-/issues/520 Changelog: changed
2020-12-07Handle auto domain-config-source gracefullyJaime Martinez
2020-08-28Revert "Start reading when disk is initialized"Jaime Martinez
This reverts commit 621dcafd3d1f75b846e67a77ed17dc0d704f10e3.
2020-08-27Start reading when disk is initializedJaime Martinez
Removes need to call `Read` when the app is initialized and begins reading from disk when `disk.New` is called.
2020-08-27Use source for IsReadyJaime Martinez
2020-08-07Revert "Merge branch 'revert-a3365a7b' into 'master'"revert-185e0a0Jaime Martinez
This reverts commit 185e0a0e5c621f350335495291c535e5c05df89b, reversing changes made to a3365a7b1b41b3dee206cbcf27e915ee45d556a5.
2020-08-06Revert "Merge branch 'revert-b3bf3ac4' into 'master'"revert-84c3866Jaime Martinez
This reverts commit 84c3866ba69e2ca0ca7d512b09ae66458f5c1c5c, reversing changes made to 185e0a0e5c621f350335495291c535e5c05df89b.
2020-08-04Revert "Merge branch 'add-polling-to-domain-package' into 'master'"revert-b3bf3ac4Vladimir Shushlin
This reverts merge request !306
2020-08-04Revert "Merge branch 'use-domain-config-source-disk' into 'master'"revert-a3365a7bVladimir Shushlin
This reverts merge request !305
2020-08-04Make initialization of gitlab client more explicitJaime Martinez
Add more test cases for domains. Support sourceAuto and use IsReady for gitlab source.
2020-08-04Set configSource to the Domains structJaime Martinez
2020-08-04Set disk sourceJaime Martinez
2020-08-04Remove domains lockadd-polling-to-domain-packageJaime Martinez
2020-08-04Use IsReady insteadJaime Martinez
2020-08-04Add polling to the domains packageJaime Martinez
Fix linter
2020-06-01Enable the remaining lintersJaime Martinez
- ineffassign - misspell - structcheck - typecheck - unconvert - unused - varcheck - whitespace
2020-05-19Rename flag to domain-config-sourceJaime Martinez
2020-05-18Add domain-source config flagJaime Martinez
This is an incremental step for adding `-domain-source` as described in https://gitlab.com/gitlab-org/gitlab/-/issues/217912. We are only adding the flag here but it's not doing anything at the moment. Add TODO for implementation
2020-04-30change back to internal-gitlab-server as per @@vshushlinIgor Wiedler
2020-04-30rename GitlabServerURL to GitlabAPIServerURL (as per @@krasio)Igor Wiedler
2020-02-18Enable serverless domains sourceGrzegorz Bizon
2020-01-28Implement support for incremental rolloutKrasimir Angelov
This adds support for specifying rollout strategy via the following attributes: * percentage - integer value that specifies how many % of requests should be enabled * stickiness - if not specified guarantees stickiness for the provided actor. If set to "random" no stickiness is guaranteed.
2020-01-16rename JWT token expiry method to match interfaceJaime Martinez
2020-01-16add connection timeout and jwt expiry to mockJaime Martinez
2020-01-10Watch a file to configure which domains should use new gitlab sourceKrasimir Angelov
Instead of passing domains once in an ENV variable we now watcn a config file (specified with `GITLAB_SOURCE_CONFIG_FILE`, defaults to `.gitlab-source-config.yml` and update ednabled/broken domains when it's content change. This way we can control this without having to restart Pages. Related to https://gitlab.com/gitlab-org/gitlab-pages/issues/266.
2019-12-04Check presence of GitLab API secret when building a domains sourceGrzegorz Bizon
2019-12-03Avoid using `testify/assert` in favor of `require`Grzegorz Bizon
2019-12-02Test domains source not fully configuredGrzegorz Bizon
2019-11-28Use ENV variables to obtain a list of test new source domainsGrzegorz Bizon
2019-11-26Make new gitlab domains source more testableGrzegorz Bizon
2019-11-24Do not pass mock Mutex by value in domain source testGrzegorz Bizon
2019-11-24Add an acceptance test for broken domains sourceGrzegorz Bizon
2019-11-24Respond with 502 if a domain can not be retrieved from a sourceGrzegorz Bizon
2019-11-23Implement a transitional domains sourceGrzegorz Bizon