Skip to content

Commit

Permalink
refactor goroutines handling (#1493)
Browse files Browse the repository at this point in the history
* refactor goroutines handling
  • Loading branch information
pjuarezd committed Mar 10, 2023
1 parent 2e32d49 commit ee8c66e
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 221 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Set up swagger
run: |
download_url=$(curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | \
jq -r '.assets[] | select(.name | contains("'"$(uname | tr '[:upper:]' '[:lower:]')"'_amd64")) | .browser_download_url')
download_url="https://github.com/go-swagger/go-swagger/releases/download/v0.30.4/swagger_linux_amd64"
curl -o /usr/local/bin/swagger -L'#' "$download_url"
chmod +x /usr/local/bin/swagger
- name: Run GoReleaser
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ minio.yaml
nancy
examples/.DS_Store
testing/openshift/bundle/*
examples/**/obj/
6 changes: 3 additions & 3 deletions helm/operator/templates/operator-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
spec:
type: ClusterIP
ports:
- port: 4222
name: https
- port: 4221
name: http
selector:
operator: leader
{{- include "minio-operator.selectorLabels" . | nindent 4 }}
Expand All @@ -22,7 +22,7 @@ metadata:
labels:
{{- include "minio-operator.labels" . | nindent 4 }}
spec:
type: LoadBalancer
type: ClusterIP
ports:
- port: 4223
name: https
Expand Down
1 change: 1 addition & 0 deletions pkg/common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package common
// Constants for the webhook endpoints
const (
WebhookAPIVersion = "/webhook/v1"
UpgradeServerPort = "4221"
WebhookDefaultPort = "4222"
WebhookAPIBucketService = WebhookAPIVersion + "/bucketsrv"
)

0 comments on commit ee8c66e

Please sign in to comment.