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

Add labcluster #24

Merged
merged 3 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.x.x] - Unreleased
## [1.2.4] - 2023-10-18
### Changed
- Added lab cluster certificate

## [1.2.1] - 2020-11-18
### Changed
Expand Down
18 changes: 18 additions & 0 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ func RandomString(length int) string {
// ClusterIssuer provides relevant issuer details given a context
func ClusterIssuer(context string) Issuer {
clusterIssuers := map[string]Issuer{
"tr.k8s.lab.blue.bisnode.net": {
Name: "https://dev-login.bisnode.com",
AuthorizeEndpoint: "https://dev-login.bisnode.com/as/authorization.oauth2",
},
"tr.k8s.dev.blue.bisnode.net": {
Name: "https://dev-login.bisnode.com",
AuthorizeEndpoint: "https://dev-login.bisnode.com/as/authorization.oauth2",
Expand Down Expand Up @@ -188,6 +192,20 @@ func ReadToken(context string) string {
func ClusterCaCert(context string) string {
//goland:noinspection SpellCheckingInspection
clusterCaCerts := map[string]string{
"tr.k8s.lab.blue.bisnode.net": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMwekNDQWJ1Z0F3SUJBZ0lNRjR6RmdFcFdQV" +
"WlwVlhjck1BMEdDU3FHU0liM0RRRUJDd1VBTUJVeEV6QVIKQmdOVkJBTVRDbXQ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