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

Add a workflow to test the module. #121

Merged
merged 2 commits into from
Feb 6, 2022

Conversation

Mohammad-nassar10
Copy link
Contributor

Signed-off-by: nassarmu10 [email protected]


bin/helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--version v1.2.0 \
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use certManagerVersion

default: '0.6.0'
module-type:
required: true
default: 'stream'
Copy link
Contributor

@revit13 revit13 Feb 3, 2022

Choose a reason for hiding this comment

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

module-type is not need here

kubernetesVersion=$1
fybrikVersion=$2
moduleVersion=$3
module=$4
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove module and add moduleResourceVersion as in https://github.com/fybrik/data-movement-operator/blob/master/hack/tools/test_module.sh#L19 to support module patched version.



bin/kubectl apply -f $WORKING_DIR/fybrikapplication-$moduleVersion.yaml

Copy link
Contributor

Choose a reason for hiding this comment

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

Please use moduleResourceVersion instead of moduleVersion




bin/kubectl -n fybrik-system create configmap sample-policy --from-file=$WORKING_DIR/sample-policy-$moduleVersion.rego
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use moduleResourceVersion instead of moduleVersion

@@ -0,0 +1,10 @@
apiVersion: app.fybrik.io/v1alpha1
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is not need for the test

@@ -0,0 +1,10 @@
apiVersion: app.fybrik.io/v1alpha1
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is not need for the test

$(TOOLBIN)/yq:
cd $(TOOLS_DIR); ./install_yq.sh
$(call post-install-check)
Copy link
Contributor

@revit13 revit13 Feb 3, 2022

Choose a reason for hiding this comment

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

The call to post-install-check is not needed here (post-install-check is not present in this file and its also checks go functions)

$(TOOLBIN)/helm:
cd $(TOOLS_DIR); ./install_helm.sh
$(call post-install-check)
Copy link
Contributor

@revit13 revit13 Feb 3, 2022

Choose a reason for hiding this comment

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

The call to post-install-check is not needed here (post-install-check is not present in this file and its also checks go functions)

$(TOOLBIN)/kind:
GOBIN=$(ABSTOOLBIN) go install sigs.k8s.io/[email protected]
$(call post-install-check)

Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

$(TOOLBIN)/kubebuilder $(TOOLBIN)/etcd $(TOOLBIN)/kube-apiserver $(TOOLBIN)/kubectl:
cd $(TOOLS_DIR); ./install_kubebuilder.sh
$(call post-install-check)

Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

Signed-off-by: nassarmu10 <[email protected]>
@revit13 revit13 merged commit 3f3b5cd into fybrik:master Feb 6, 2022
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.

2 participants