Skip to content

Commit

Permalink
fix(gh-6): update redis credentials, remove v1 from apis
Browse files Browse the repository at this point in the history
  • Loading branch information
olivercodes committed Jul 31, 2023
1 parent 725c389 commit 3289272
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/lab-api-teams-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
livenessProbe:
httpGet:
path: /v1/teams/healthz/liveness
path: /teams/healthz/liveness
port: {{ .Values.service.name | default "http" }}
readinessProbe:
httpGet:
path: /v1/teams/healthz/readiness
path: /teams/healthz/readiness
port: {{ .Values.service.name | default "http" }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion charts/lab-api-teams-chart/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ virtualService:
- dev.twdps.io
gateways:
- istio-system/dev-twdps-io-gateway
matchUrl: /v1/teams
matchUrl: /teams

strategy:
type: RollingUpdate
Expand Down
2 changes: 1 addition & 1 deletion charts/lab-api-teams-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ service:
portname: http
port: 80
protocol: TCP
targetPort: 8000
targetPort: 8080

virtualService:
create: false
Expand Down
2 changes: 1 addition & 1 deletion cmd/lab-api-teams/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {
router := gin.Default()

// TODO - consider how to dynamically handle different data stores here
teamRepo := repository.NewRedisTeamRepository(redisUrl, redisPassword)
teamRepo := repository.NewRedisTeamRepository(redisPassword, redisUrl)
teamService := service.NewTeamService(teamRepo)
teamHandler := handler.NewTeamHandler(teamService)

Expand Down

0 comments on commit 3289272

Please sign in to comment.