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

Issue 205,217: Add additional README guide for manual deployment and upgrade #236

Merged
merged 10 commits into from
Jul 26, 2019

Conversation

Tristan1900
Copy link
Member

Signed-off-by: wenqimou [email protected]

Change log description

Add additional README for manual deployment and upgrade.

Purpose of the change

Fix #205 #217

wenqimou added 5 commits July 18, 2019 23:08
Signed-off-by: wenqimou <[email protected]>
Signed-off-by: wenqimou <[email protected]>
Signed-off-by: wenqimou <[email protected]>
Signed-off-by: wenqimou <[email protected]>
Signed-off-by: wenqimou <[email protected]>
@Tristan1900 Tristan1900 requested a review from pbelgundi July 22, 2019 17:27
Makefile Show resolved Hide resolved
Makefile Outdated
@@ -53,7 +53,7 @@ run-local:
operator-sdk up local --operator-flags -webhook=false

login:
@docker login -u "$(DOCKER_USER)" -p "$(DOCKER_PASS)"
@docker login -u "$(DOCKER_TEST_USER)" -p "$(DOCKER__TEST_PASS)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this name change help?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't, I just use a different name to avoid deleting your DOCKER_USER and DOCKER_PASS in the Travis setting.

be deleted by Deployment controller.

## WATCH_NAMESPACE not set
Copy link
Contributor

@pbelgundi pbelgundi Jul 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that there is a way to get the "current namespace" in which the operator is running:
https://github.com/operator-framework/operator-sdk/blob/master/pkg/k8sutil/k8sutil.go#L63
Lets use this as the 'namespace' for pravega and webhook service, instead of using WATCH_NAMESPACE.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conceptually, there are really 2 namespaces involved here - one in which the operator runs and the other that the operator "watches". Irrespective of what are the WATCH_NAMESPACES for operator, it should always install pravega and the webhook in the same namespace where it itself runs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This looks very helpful, let me try it out to see if it works.

doc/troubleshooting.md Show resolved Hide resolved
wenqimou added 5 commits July 23, 2019 11:19
Signed-off-by: wenqimou <[email protected]>
Signed-off-by: wenqimou <[email protected]>
Signed-off-by: wenqimou <[email protected]>
Signed-off-by: wenqimou <[email protected]>
@pbelgundi
Copy link
Contributor

After setting webhook namespace to "current" namespace of operator, it should work with WATCH_NAMESPACE="" in the chart or manifest file.
Could you please check if this is true?

Copy link
Contributor

@pbelgundi pbelgundi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if operator is now able to work with WATCH_NAMESPACE=""

@Tristan1900
Copy link
Member Author

It works when using that util function without passing WATCH_NAMESPACE. Thanks @pbelgundi

@pbelgundi pbelgundi merged commit 2d41d98 into master Jul 26, 2019
@Tristan1900 Tristan1900 deleted the fix-README branch September 18, 2019 20:20
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.

Pravega-operator pod crashing if WATCH_NAMESPACE not set
2 participants