-
Notifications
You must be signed in to change notification settings - Fork 14
Fix default namespace installation error for tigera and custom-resource #498
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -127,15 +127,15 @@ with_retry 10 30s kubectl --kubeconfig $KUBECONFIG version | |||||
| # Install Calico | ||||||
| # based on https://docs.tigera.io/calico/latest/getting-started/kubernetes/quickstart | ||||||
| echo "Installing Calico ${CALICO_VERSION}..." | ||||||
| with_retry 3 10s kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/tigera-operator.yaml | ||||||
| with_retry 3 10s kubectl get installation default -n tigera-operator || kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/tigera-operator.yaml | ||||||
|
|
||||||
| # Wait for Tigera operator to be ready | ||||||
| echo "Waiting for Tigera operator to be ready..." | ||||||
| with_retry 10 30s kubectl --kubeconfig $KUBECONFIG wait --for=condition=available --timeout=300s deployment/tigera-operator -n tigera-operator | ||||||
|
|
||||||
| # Install Calico custom resources | ||||||
| echo "Installing Calico custom resources..." | ||||||
| with_retry 3 10s kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/custom-resources.yaml | ||||||
| with_retry 3 10s kubectl get installation default -n tigera-operator || kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/custom-resources.yaml | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. opened new PR and testing @tariq1890 @ArangoGutierrez |
||||||
|
|
||||||
| # Wait for Calico to be ready | ||||||
| echo "Waiting for Calico to be ready..." | ||||||
|
|
||||||
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.
--kubeconfigand the other without the flagkubectl get installationcall seems unnecessary here. The creation of the installation custom resource does not happen until L138, so this change should be reverted. It is unncessary here