forked from enix/san-iscsi-csi
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Bug#56 #60
Merged
Merged
Bug#56 #60
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
13c749f
fix "could not parse topology requirements" error for iSCSI targets (…
seagate-chris ed52e2a
minor changes to improve the preflight and helm-package targets
seagate-chris 334cd0a
fix: wait for semaphore in NodePublishVolume instead of requiring the…
seagate-chris 9453abb
fix: squash a warning
seagate-chris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ endif | |
ifdef VERSION | ||
VERSION := $(VERSION) | ||
else | ||
VERSION := v1.5.3 | ||
VERSION := v1.5.7 | ||
endif | ||
|
||
VERSION_FLAG = -X github.com/Seagate/seagate-exos-x-csi/pkg/common.Version=$(VERSION) | ||
|
@@ -18,13 +18,15 @@ ifndef BIN | |
BIN = seagate-exos-x-csi | ||
endif | ||
|
||
HELM_VERSION := 1.0.0 | ||
HELM_VERSION := 1.0.1 | ||
HELM_KEY := css-host-software | ||
HELM_IMAGE_REPO := $(DOCKER_HUB_REPOSITORY)/$(BIN) | ||
# $HELM_KEY should be the name of a secret key in the invoker's default keyring | ||
ifneq (,$(HELM_KEY)) | ||
HELM_KEYRING := --keyring ~/.gnupg/secring.gpg | ||
HELM_SIGN := --sign --key $(HELM_KEY) $(HELM_KEYRING) | ||
HELM_KEYRING := ~/.gnupg/secring.gpg | ||
HELM_SIGN := --sign --key $(HELM_KEY) --keyring $(HELM_KEYRING) | ||
endif | ||
HELM_PACKAGE := $(BIN)-$(HELM_VERSION).tgz | ||
|
||
IMAGE = $(DOCKER_HUB_REPOSITORY)/$(BIN):$(VERSION) | ||
|
||
|
@@ -92,16 +94,25 @@ openshift: | |
docker build -f Dockerfile.redhat -t $(IMAGE) . | ||
docker inspect $(IMAGE) | ||
|
||
PREFLIGHT=/tmp/preflight-linux-amd64 | ||
PREFLIGHT=../openshift-preflight/preflight | ||
PREFLIGHT_REGISTRY=localhost:5000 | ||
PREFLIGHT_IMAGE=$(PREFLIGHT_REGISTRY)/$(BIN):$(VERSION) | ||
# PREFLIGHT_OPTIONS would typically include "--certification-project-id=xxx --pyxis-api-token=xxx" | ||
PREFLIGHT_OPTIONS:=$(strip $(shell test ! -f .preflight_options || cat .preflight_options)) | ||
PREFLIGHT_SUBMIT= | ||
|
||
preflight: | ||
# make sure local registry is running | ||
-docker run -d -p 5000:5000 --name registry registry:2 | ||
-docker run -d -p 5000:5000 --name registry registry:2 # make sure local registry is running | ||
docker tag $(IMAGE) $(PREFLIGHT_IMAGE) | ||
docker push $(PREFLIGHT_IMAGE) | ||
$(PREFLIGHT) check container $(PREFLIGHT_IMAGE) | ||
$(PREFLIGHT) check container $(PREFLIGHT_SUBMIT) $(PREFLIGHT_OPTIONS) $(PREFLIGHT_IMAGE) | ||
|
||
preflight-submit: .preflight_options | ||
$(MAKE) preflight PREFLIGHT_SUBMIT=--submit | ||
|
||
build-preflight: | ||
(cd ..; git clone https://github.com/redhat-openshift-ecosystem/openshift-preflight.git) | ||
cd ../openshift-preflight && make build | ||
|
||
push: | ||
@echo "" | ||
|
@@ -116,16 +127,17 @@ clean: | |
|
||
# Create a helm package that can be installed from a remote HTTPS URL with, e.g. | ||
# helm install seagate-csi https://<server>/<path>/seagate-exos-x-csi-1.0.0.tgz | ||
HELM_PACKAGE := $(BIN)-$(HELM_VERSION).tgz | ||
helm-package: $(HELM_PACKAGE) | ||
|
||
# To create a package without signing it, specify "make helm-package HELM_KEY=" | ||
# Note that helm doesn't support GPG v2.1 kbx files. If signing fails, try: | ||
# Note that helm doesn't support GPG v2.1 kbx files; if signing fails, try: | ||
# gpg --export-secret-keys > ~/.gnupg/secring.gpg | ||
$(HELM_PACKAGE): | ||
cd helm; helm package $(HELM_SIGN) $$PWD/csi-charts | ||
cd helm; helm package $(HELM_SIGN) \ | ||
--set image.tag=$(VERSION) --set image.repository=$(HELM_IMAGE_REPO) \ | ||
$$PWD/csi-charts | ||
cp -p helm/$@* . | ||
ifdef HELM_KEYRING | ||
helm verify $(HELM_KEYRING) $@ | ||
helm verify --keyring $(HELM_KEYRING) $@ | ||
zip -r $(subst .tgz,-signed-helm-package.zip,$@) $@ [email protected] | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did your testing prove that Acquire is more effective and successful than TryAcquire()?