-
Notifications
You must be signed in to change notification settings - Fork 31
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 preflight-lib reference #631
Add preflight-lib reference #631
Conversation
7b990db
to
0647d53
Compare
0647d53
to
83acdbe
Compare
06aa033
to
7699a25
Compare
Serialize the merged kube config into a temporary file and save the file path so it can be read on demand. This could be used by Brandon's wip redhat-best-practices-for-k8s#631 for the preflight lib integration.
f1c7efc
to
97743d9
Compare
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.
I've seen in the log output from the preflight checks that they're using tmp folders to create some files... we might have the same issue as in #644:
* Created merged kube config file in the clientsholder. Serialize the merged kube config into a temporary file and save the file path so it can be read on demand. This could be used by Brandon's wip #631 for the preflight lib integration. * Add app's directory as alternative for temp files.
a58be1c
to
359c12e
Compare
1c3d3fb
to
e4b9ccc
Compare
Removing the proof of concept label. The refactor PR merged today and I have updated this PR to point at it. redhat-openshift-ecosystem/openshift-preflight#825 This PR above merged into an upstream branch called |
I'm currently checking through these failures:
|
b638692
to
c0cf4da
Compare
For reviewers, do we have a preference if these preflight tests should be tagged |
From my point of view, until having an official resolution about how tnf and preflight will be tested, I would use a separate label for preflight, not including it within the |
…egration build-depends: redhat-best-practices-for-k8s/certsuite#631 Test-App-Hints: tnf_test_example Test-App-Args-Hints: -e {"dci_components_by_query":["type:tnf_test_example"]} -e do_cnf_cert=true -e {"tnf_config":[{"namespace":"test-cnf","targetpodlabels":["environment=test"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"mongodb-enterprise","exclude_connectivity_regexp":""},{"namespace":"production-cnf","targetpodlabels":["environment=production"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"","exclude_connectivity_regexp":""}]} -e test_network_function_version="HEAD" -e partner_creds=/opt/cache/partner_config.json -e dci_teardown_on_failure=false -e {"tnf_env_vars":{"TNF_NON_INTRUSIVE_ONLY":"false","TNF_RUN_CFD_TEST":"false","TNF_LOG_LEVEL":"debug","TNF_ALLOW_PREFLIGHT_INSECURE":"true"}} Change-Id: Ib8d32cbcf6f94b1e09ec354dac94d55412cba67e
f999e48
to
b40a024
Compare
/dci-rerun |
da18b88
to
b253f9d
Compare
68cb1cf
to
a574ee7
Compare
Add operator support Add unit test for container results Use provided structs from lib Switch to new funcs work on cacheing Add local Dockerfile Controller-runtime upgrade Modify scripts to mount docker config Remove skipIfAny Modify scripts to mount docker config Add allow preflight insecure variable Add .json to config var
a574ee7
to
f644edd
Compare
…preflight Patch needed for redhat-best-practices-for-k8s/certsuite#804 and redhat-best-practices-for-k8s/certsuite#631. When running tnf HEAD version: - check if partner_creds variable is provided, else print a warning message - prepare dockercfg file for tnf - provide dockercfg file to tnf when using HEAD patch already validated in connected env without PR804: https://www.distributed-ci.io/jobs/ba15b3a0-a544-491a-b5c8-604cf83ef52a/jobStates?sort=date now testing the patch with PR804 build-depends: redhat-best-practices-for-k8s/certsuite#804 Test-App-Hints: tnf_test_example Test-App-Args-Hints: -e {"dci_components_by_query":["type:tnf_test_example"]} -e do_cnf_cert=true -e {"tnf_config":[{"namespace":"test-cnf","targetpodlabels":["environment=test"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"mongodb-enterprise","exclude_connectivity_regexp":""},{"namespace":"production-cnf","targetpodlabels":["environment=production"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"","exclude_connectivity_regexp":""}]} -e {"tnf_env_vars":{"TNF_NON_INTRUSIVE_ONLY":"false","TNF_RUN_CFD_TEST":"false","TNF_LOG_LEVEL":"debug"}} -e test_network_function_version=HEAD -e partner_creds=/opt/cache/partner_config.json Change-Id: I3393fca5b002be7cfcace89da2ed8364ffea8ae3
…egration build-depends: redhat-best-practices-for-k8s/certsuite#631 Test-App-Hints: tnf_test_example Test-App-Args-Hints: -e {"dci_components_by_query":["type:tnf_test_example"]} -e do_cnf_cert=true -e {"tnf_config":[{"namespace":"test-cnf","targetpodlabels":["environment=test"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"mongodb-enterprise","exclude_connectivity_regexp":""},{"namespace":"production-cnf","targetpodlabels":["environment=production"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"","exclude_connectivity_regexp":""}]} -e test_network_function_version="HEAD" -e partner_creds=/opt/cache/partner_config.json -e dci_teardown_on_failure=false -e {"tnf_env_vars":{"TNF_NON_INTRUSIVE_ONLY":"false","TNF_RUN_CFD_TEST":"false","TNF_LOG_LEVEL":"debug","TNF_ALLOW_PREFLIGHT_INSECURE":"true"}} Change-Id: Ib8d32cbcf6f94b1e09ec354dac94d55412cba67e
…preflight Patch needed for redhat-best-practices-for-k8s/certsuite#804 and redhat-best-practices-for-k8s/certsuite#631. When running tnf HEAD version: - check if partner_creds variable is provided, else print a warning message - prepare dockercfg file for tnf - provide dockercfg file to tnf when using HEAD patch already validated in connected env without PR804: https://www.distributed-ci.io/jobs/ba15b3a0-a544-491a-b5c8-604cf83ef52a/jobStates?sort=date now testing the patch with PR804 build-depends: redhat-best-practices-for-k8s/certsuite#804 Test-App-Hints: tnf_test_example Test-App-Args-Hints: -e {"dci_components_by_query":["type:tnf_test_example"]} -e do_cnf_cert=true -e {"tnf_config":[{"namespace":"test-cnf","targetpodlabels":["environment=test"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"mongodb-enterprise","exclude_connectivity_regexp":""},{"namespace":"production-cnf","targetpodlabels":["environment=production"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"","exclude_connectivity_regexp":""}]} -e {"tnf_env_vars":{"TNF_NON_INTRUSIVE_ONLY":"false","TNF_RUN_CFD_TEST":"false","TNF_LOG_LEVEL":"debug"}} -e test_network_function_version=HEAD -e partner_creds=/opt/cache/partner_config.json Change-Id: I3393fca5b002be7cfcace89da2ed8364ffea8ae3
…egration build-depends: redhat-best-practices-for-k8s/certsuite#631 Test-App-Hints: tnf_test_example Test-App-Args-Hints: -e {"dci_components_by_query":["type:tnf_test_example"]} -e do_cnf_cert=true -e {"tnf_config":[{"namespace":"test-cnf","targetpodlabels":["environment=test"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"mongodb-enterprise","exclude_connectivity_regexp":""},{"namespace":"production-cnf","targetpodlabels":["environment=production"],"target_crds":["crdexamples.test-network-function.com"],"operators_regexp":"","exclude_connectivity_regexp":""}]} -e test_network_function_version="HEAD" -e partner_creds=/opt/cache/partner_config.json -e dci_teardown_on_failure=false -e {"tnf_env_vars":{"TNF_NON_INTRUSIVE_ONLY":"false","TNF_RUN_CFD_TEST":"false","TNF_LOG_LEVEL":"debug","TNF_ALLOW_PREFLIGHT_INSECURE":"true"}} Change-Id: Ib8d32cbcf6f94b1e09ec354dac94d55412cba67e
Follow up to #592
Building upon work done by @komish in branch: https://github.com/komish/openshift-preflight/tree/add-lib-ha
preflight
test suite.