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

[TT-10221] Update Config structure #25

Merged
merged 23 commits into from
Nov 16, 2023
Merged

[TT-10221] Update Config structure #25

merged 23 commits into from
Nov 16, 2023

Conversation

buraksekili
Copy link
Member

@buraksekili buraksekili commented Nov 2, 2023

Description

This PR adds envconfig to expose consistent environment variables for Tyk K8s Bootstrap. Also, it updates bootstrap configuration structure.

Removed fields

  • DashboardHost,
  • CatalogId,
  • OperatorSecretEnabled
  • DeveloperPortalSecretEnabled

Renamed fields

  • Cname => TykOrgCname,
  • TYK_POD_NAMESPACE => ReleaseNamespace
  • DashboardSvc => DashboardSvcName
  • DashboardInsecureSkipVerify InsecureSkipVerify
  • IsDashboardEnabled => DashboardEnabled

Related Issue

https://tyktech.atlassian.net/browse/TT-10221

Motivation and Context

Test Coverage For This Change

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). If PRing from your fork, don't come from your master!
  • Make sure you are making a pull request against our master branch (left side). Also, it would be best if you started your change off our latest master.
  • Make sure you are updating CHANGELOG.md based on your changes.
  • My change requires a change to the documentation.
    • If you've changed APIs, describe what needs to be updated in the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Check your code additions will not fail linting checks:
    • gofmt -s -w .
    • go vet ./...
    • golangci-lint run

Remove unused configuration parameters. Integrate `envconfig` library to
achieve consistent environment variable namings for all configuration
parameters.

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
…e application. moved constants/constant.go to data/constants.go and removed constants packages since it can be served through data package

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
…s in one place

Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
@buraksekili buraksekili marked this pull request as ready for review November 3, 2023 10:58
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
…tyk-k8s-bootstrap into feat/TT-10221/envconfig
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
data/config.go Outdated Show resolved Hide resolved
data/config.go Outdated Show resolved Hide resolved
data/config.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
data/config.go Outdated Show resolved Hide resolved
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
@singhpr
Copy link
Contributor

singhpr commented Nov 16, 2023

tested this up, it works as expected , hence merging this up.

@singhpr singhpr merged commit aec32cd into main Nov 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants