├── test ├── performance │ ├── __init__.py │ ├── .gitignore │ ├── requirements.txt │ └── user-workloads │ │ ├── valid │ │ ├── sbo-test.sbr.spec.yaml │ │ └── sbo-test.sbr.yaml │ │ └── invalid │ │ ├── sbo-test.sbr.spec.yaml │ │ └── sbo-test.sbr.yaml ├── acceptance │ ├── features │ │ ├── __init__.py │ │ ├── steps │ │ │ ├── __init__.py │ │ │ ├── subscription_install_mode.py │ │ │ ├── util.py │ │ │ ├── namespace.py │ │ │ └── rabbitmq_operator.py │ │ ├── requirements.txt │ │ └── pluggableRBAC.feature │ ├── openshift-htpass │ ├── Dockerfile.allure │ ├── entrypoint.sh │ └── resources │ │ └── apps │ │ └── sbo-generic-test-app │ │ ├── env.sh │ │ ├── start_http │ │ ├── README.md │ │ └── Dockerfile ├── _projects │ ├── api-client │ │ ├── .gitignore │ │ └── main.go │ └── api-controller │ │ └── .gitignore ├── charts │ └── service-binding-operator │ │ ├── secret.yaml │ │ └── sbo.yaml └── operator-hub │ ├── subscription2.yaml │ ├── catalog_source.yaml │ └── subscription.yaml ├── vendor ├── github.com │ ├── modern-go │ │ ├── reflect2 │ │ │ ├── reflect2_amd64.s │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── .gitignore │ │ │ ├── Gopkg.lock │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── go_below_118.go │ │ │ └── go_above_118.go │ │ └── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ └── log.go │ ├── emicklei │ │ └── go-restful │ │ │ └── v3 │ │ │ ├── .goconvey │ │ │ ├── Srcfile │ │ │ ├── coverage.sh │ │ │ ├── Makefile │ │ │ ├── json.go │ │ │ ├── .travis.yml │ │ │ ├── jsoniter.go │ │ │ ├── bench_test.sh │ │ │ └── SECURITY.md │ ├── go-logr │ │ ├── zapr │ │ │ └── .gitignore │ │ └── logr │ │ │ ├── CHANGELOG.md │ │ │ ├── .golangci.yaml │ │ │ └── CONTRIBUTING.md │ ├── spf13 │ │ └── pflag │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ ├── go-openapi │ │ ├── jsonpointer │ │ │ ├── .gitignore │ │ │ └── .editorconfig │ │ ├── jsonreference │ │ │ └── .gitignore │ │ └── swag │ │ │ ├── .gitignore │ │ │ ├── .gitattributes │ │ │ └── .editorconfig │ ├── go-task │ │ └── slim-sprig │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── Taskfile.yml │ │ │ ├── network.go │ │ │ ├── .editorconfig │ │ │ └── crypto.go │ ├── nxadm │ │ └── tail │ │ │ ├── .gitignore │ │ │ ├── ratelimiter │ │ │ └── storage.go │ │ │ ├── tail_posix.go │ │ │ ├── Dockerfile │ │ │ └── tail_windows.go │ ├── fsnotify │ │ └── fsnotify │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── .mailmap │ │ │ ├── system_darwin.go │ │ │ ├── system_bsd.go │ │ │ └── .editorconfig │ ├── sirupsen │ │ └── logrus │ │ │ ├── .gitignore │ │ │ ├── terminal_check_js.go │ │ │ ├── terminal_check_appengine.go │ │ │ ├── terminal_check_no_terminal.go │ │ │ ├── terminal_check_solaris.go │ │ │ ├── terminal_check_unix.go │ │ │ ├── appveyor.yml │ │ │ ├── terminal_check_bsd.go │ │ │ ├── terminal_check_notappengine.go │ │ │ ├── .travis.yml │ │ │ └── terminal_check_windows.go │ ├── matttproud │ │ └── golang_protobuf_extensions │ │ │ ├── pbutil │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ │ └── NOTICE │ ├── prometheus │ │ ├── procfs │ │ │ ├── .gitignore │ │ │ ├── MAINTAINERS.md │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── SECURITY.md │ │ │ ├── .golangci.yml │ │ │ └── NOTICE │ │ ├── client_golang │ │ │ └── prometheus │ │ │ │ ├── .gitignore │ │ │ │ └── README.md │ │ ├── client_model │ │ │ └── NOTICE │ │ └── common │ │ │ └── NOTICE │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── test.sh │ │ │ └── build.sh │ ├── onsi │ │ ├── gomega │ │ │ ├── .gitignore │ │ │ └── matchers │ │ │ │ ├── support │ │ │ │ └── goraph │ │ │ │ │ ├── node │ │ │ │ │ └── node.go │ │ │ │ │ └── util │ │ │ │ │ └── util.go │ │ │ │ ├── attributes_slice.go │ │ │ │ └── be_nil_matcher.go │ │ └── ginkgo │ │ │ ├── .gitignore │ │ │ ├── reporters │ │ │ ├── stenographer │ │ │ │ └── support │ │ │ │ │ ├── go-isatty │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── isatty_appengine.go │ │ │ │ │ ├── isatty_linux.go │ │ │ │ │ ├── isatty_solaris.go │ │ │ │ │ ├── isatty_bsd.go │ │ │ │ │ ├── isatty_windows.go │ │ │ │ │ └── README.md │ │ │ │ │ └── go-colorable │ │ │ │ │ └── colorable_others.go │ │ │ └── reporter.go │ │ │ ├── ginkgo │ │ │ ├── testrunner │ │ │ │ ├── build_args.go │ │ │ │ └── build_args_old.go │ │ │ ├── interrupthandler │ │ │ │ ├── sigquit_swallower_windows.go │ │ │ │ └── sigquit_swallower_unix.go │ │ │ ├── testsuite │ │ │ │ ├── vendor_check_go16.go │ │ │ │ └── vendor_check_go15.go │ │ │ ├── version_command.go │ │ │ └── watch │ │ │ │ └── delta.go │ │ │ ├── internal │ │ │ ├── specrunner │ │ │ │ └── random_id.go │ │ │ ├── remote │ │ │ │ └── output_interceptor.go │ │ │ ├── leafnodes │ │ │ │ └── interfaces.go │ │ │ ├── global │ │ │ │ └── init.go │ │ │ └── spec_iterator │ │ │ │ └── spec_iterator.go │ │ │ └── types │ │ │ ├── code_location.go │ │ │ └── synchronization.go │ ├── evanphx │ │ └── json-patch │ │ │ └── .gitignore │ ├── google │ │ ├── uuid │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTORS │ │ │ ├── CONTRIBUTING.md │ │ │ ├── doc.go │ │ │ └── node_js.go │ │ ├── gnostic-models │ │ │ ├── jsonschema │ │ │ │ └── README.md │ │ │ ├── compiler │ │ │ │ └── README.md │ │ │ └── extensions │ │ │ │ └── README.md │ │ ├── gofuzz │ │ │ └── .travis.yml │ │ └── go-cmp │ │ │ └── cmp │ │ │ └── internal │ │ │ ├── flags │ │ │ └── flags.go │ │ │ └── diff │ │ │ └── debug_disable.go │ ├── josharian │ │ └── intern │ │ │ └── README.md │ ├── operator-framework │ │ └── api │ │ │ └── pkg │ │ │ └── operators │ │ │ ├── doc.go │ │ │ └── v1alpha1 │ │ │ └── doc.go │ ├── pkg │ │ └── errors │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── golang │ │ ├── protobuf │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── ptypes │ │ │ │ └── doc.go │ │ └── mock │ │ │ └── AUTHORS │ ├── imdario │ │ └── mergo │ │ │ ├── .deepsource.toml │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── stretchr │ │ └── testify │ │ │ ├── require │ │ │ ├── require_forward.go.tmpl │ │ │ ├── require.go.tmpl │ │ │ └── forward_requirements.go │ │ │ └── assert │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── errors.go │ │ │ ├── assertion_compare_legacy.go │ │ │ ├── assertion_compare_can_convert.go │ │ │ └── forward_assertions.go │ ├── munnerz │ │ └── goautoneg │ │ │ └── Makefile │ ├── cespare │ │ └── xxhash │ │ │ └── v2 │ │ │ ├── testall.sh │ │ │ ├── xxhash_asm.go │ │ │ └── xxhash_safe.go │ ├── mailru │ │ └── easyjson │ │ │ └── jlexer │ │ │ ├── error.go │ │ │ └── bytestostr_nounsafe.go │ ├── blang │ │ └── semver │ │ │ └── v4 │ │ │ └── json.go │ └── gogo │ │ └── protobuf │ │ └── AUTHORS ├── golang.org │ └── x │ │ ├── net │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ ├── not_go118.go │ │ │ ├── go118.go │ │ │ └── not_go111.go │ │ └── idna │ │ │ ├── pre_go118.go │ │ │ └── go118.go │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── ptrace_ios.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── constants.go │ │ │ ├── mmap_nomremap.go │ │ │ ├── endian_big.go │ │ │ ├── sysvshm_unix_other.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── endian_little.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── readdirent_getdents.go │ │ │ ├── pagesize_unix.go │ │ │ ├── aliases.go │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_linux_alarm.go │ │ │ ├── syscall_hurd_386.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ └── sysvshm_linux.go │ │ ├── plan9 │ │ │ ├── asm.s │ │ │ ├── pwd_go15_plan9.go │ │ │ ├── pwd_plan9.go │ │ │ ├── mksysnum_plan9.sh │ │ │ ├── race0.go │ │ │ └── str.go │ │ └── windows │ │ │ ├── empty.s │ │ │ ├── aliases.go │ │ │ ├── mksyscall.go │ │ │ ├── race0.go │ │ │ └── str.go │ │ ├── term │ │ ├── codereview.cfg │ │ ├── term_unix_other.go │ │ └── term_unix_bsd.go │ │ ├── oauth2 │ │ ├── internal │ │ │ ├── doc.go │ │ │ └── client_appengine.go │ │ └── .travis.yml │ │ ├── text │ │ ├── encoding │ │ │ ├── japanese │ │ │ │ └── all.go │ │ │ └── simplifiedchinese │ │ │ │ └── all.go │ │ ├── secure │ │ │ └── bidirule │ │ │ │ ├── bidirule10.0.0.go │ │ │ │ └── bidirule9.0.0.go │ │ └── internal │ │ │ └── language │ │ │ └── common.go │ │ └── tools │ │ └── internal │ │ └── typeparams │ │ ├── enabled_go117.go │ │ └── enabled_go118.go ├── k8s.io │ ├── kube-openapi │ │ └── pkg │ │ │ ├── util │ │ │ └── proto │ │ │ │ └── OWNERS │ │ │ ├── validation │ │ │ └── spec │ │ │ │ └── .gitignore │ │ │ └── internal │ │ │ └── third_party │ │ │ └── go-json-experiment │ │ │ └── json │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── utils │ │ ├── pointer │ │ │ ├── README.md │ │ │ └── OWNERS │ │ └── clock │ │ │ └── README.md │ ├── client-go │ │ ├── openapi │ │ │ └── OWNERS │ │ ├── tools │ │ │ ├── metrics │ │ │ │ └── OWNERS │ │ │ ├── record │ │ │ │ └── OWNERS │ │ │ ├── auth │ │ │ │ └── OWNERS │ │ │ ├── leaderelection │ │ │ │ └── OWNERS │ │ │ └── cache │ │ │ │ └── OWNERS │ │ ├── util │ │ │ ├── keyutil │ │ │ │ └── OWNERS │ │ │ └── cert │ │ │ │ └── OWNERS │ │ ├── transport │ │ │ └── OWNERS │ │ ├── plugin │ │ │ └── pkg │ │ │ │ └── client │ │ │ │ └── auth │ │ │ │ └── OWNERS │ │ ├── pkg │ │ │ └── apis │ │ │ │ └── clientauthentication │ │ │ │ └── OWNERS │ │ └── rest │ │ │ └── OWNERS │ ├── apimachinery │ │ ├── pkg │ │ │ ├── util │ │ │ │ ├── mergepatch │ │ │ │ │ └── OWNERS │ │ │ │ └── strategicpatch │ │ │ │ │ └── OWNERS │ │ │ ├── api │ │ │ │ ├── resource │ │ │ │ │ └── OWNERS │ │ │ │ ├── meta │ │ │ │ │ └── OWNERS │ │ │ │ └── errors │ │ │ │ │ └── OWNERS │ │ │ └── apis │ │ │ │ └── meta │ │ │ │ └── v1 │ │ │ │ └── OWNERS │ │ └── third_party │ │ │ └── forked │ │ │ └── golang │ │ │ └── json │ │ │ └── OWNERS │ ├── klog │ │ └── v2 │ │ │ ├── code-of-conduct.md │ │ │ ├── OWNERS │ │ │ ├── internal │ │ │ └── clock │ │ │ │ └── README.md │ │ │ ├── .gitignore │ │ │ ├── klog_file_others.go │ │ │ ├── RELEASE.md │ │ │ └── SECURITY_CONTACTS │ ├── apiextensions-apiserver │ │ └── pkg │ │ │ └── apis │ │ │ └── apiextensions │ │ │ ├── v1 │ │ │ └── .import-restrictions │ │ │ └── v1beta1 │ │ │ └── .import-restrictions │ └── component-base │ │ └── config │ │ └── OWNERS ├── go.uber.org │ ├── multierr │ │ └── .gitignore │ └── zap │ │ ├── checklicense.sh │ │ └── .gitignore ├── sigs.k8s.io │ ├── json │ │ ├── OWNERS │ │ ├── code-of-conduct.md │ │ └── SECURITY_CONTACTS │ ├── yaml │ │ ├── code-of-conduct.md │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── yaml_go110.go │ │ ├── OWNERS │ │ └── RELEASE.md │ └── controller-runtime │ │ ├── code-of-conduct.md │ │ ├── OWNERS │ │ ├── .gitignore │ │ └── pkg │ │ └── internal │ │ └── httpserver │ │ └── server.go ├── gopkg.in │ ├── tomb.v1 │ │ └── README.md │ ├── yaml.v2 │ │ ├── .travis.yml │ │ └── NOTICE │ └── yaml.v3 │ │ └── NOTICE └── google.golang.org │ ├── appengine │ └── internal │ │ ├── identity_flex.go │ │ ├── main_common.go │ │ └── main.go │ └── protobuf │ ├── encoding │ └── prototext │ │ └── doc.go │ ├── internal │ ├── flags │ │ ├── proto_legacy_enable.go │ │ └── proto_legacy_disable.go │ ├── impl │ │ ├── codec_map_go112.go │ │ └── codec_unsafe.go │ ├── errors │ │ └── is_go113.go │ └── genid │ │ ├── doc.go │ │ ├── wrappers.go │ │ ├── map_entry.go │ │ └── empty_gen.go │ ├── runtime │ └── protoiface │ │ └── legacy.go │ └── proto │ ├── proto_reflect.go │ └── proto_methods.go ├── docs ├── devguide │ └── modules │ │ ├── ROOT │ │ ├── nav.adoc │ │ └── examples │ │ │ └── common.go │ │ ├── release-to-cr │ │ └── nav.adoc │ │ ├── acceptance-tests │ │ └── nav.adoc │ │ └── install-sbo │ │ ├── nav.adoc │ │ ├── partials │ │ ├── openshift │ │ │ ├── external-cr │ │ │ │ ├── setup-openshift.adoc │ │ │ │ └── manifests-install.adoc │ │ │ ├── intro.adoc │ │ │ └── internal-cr │ │ │ │ └── manifests-install.adoc │ │ └── minikube │ │ │ └── setup-minikube.adoc │ │ └── pages │ │ └── install-on-minikube.adoc └── userguide │ └── modules │ ├── ROOT │ ├── nav.adoc │ ├── examples │ │ └── percona_mongodb_clusterrole.yaml │ └── assets │ │ └── images │ │ └── intro-bindings.png │ ├── projecting-binding-data │ └── nav.adoc │ ├── using-projected-bindings │ └── nav.adoc │ ├── getting-started │ ├── assets │ │ ├── attachments │ │ │ ├── petclinic-deployment.yaml │ │ │ ├── pgcluster-deployment.yaml │ │ │ ├── postgresql-deployment.yaml │ │ │ ├── petclinic-pgcluster-binding.yaml │ │ │ └── petclinic-postgresql-binding.yaml │ │ └── images │ │ │ ├── ocp_operathub.png │ │ │ ├── sbo_post_install.png │ │ │ ├── sbo_intall_landing.png │ │ │ ├── pgcluster-spring-boot.png │ │ │ ├── sbo_install_options.png │ │ │ └── postgresql-spring-boot.png │ ├── nav.adoc │ ├── partials │ │ ├── scenario-diagram-description-postgresql.adoc │ │ └── scenario-diagram-description-pgcluster.adoc │ └── pages │ │ ├── petclinic-postgresql.adoc │ │ └── petclinic-pgcluster.adoc │ ├── binding-workloads-using-sbo │ └── nav.adoc │ └── exposing-binding-data │ └── nav.adoc ├── .dockerignore ├── config ├── prometheus │ ├── kustomization.yaml │ └── monitor.yaml ├── certmanager │ ├── kustomization.yaml │ └── kustomizeconfig.yaml ├── rbac │ ├── service_account.yaml │ ├── auth_proxy_client_clusterrole.yaml │ ├── servicebinding_controller_role.yaml │ ├── role_binding.yaml │ ├── auth_proxy_role_binding.yaml │ ├── leader_election_role_binding.yaml │ ├── auth_proxy_role.yaml │ ├── opstree_redis_clusterrole.yaml │ ├── percona_mysql_clusterrole.yaml │ ├── rabbitmq_operator_clusterrole.yaml │ ├── auth_proxy_service.yaml │ ├── cloud_native_postgres_clusterrole.yaml │ ├── crunchy_postgres_clusterrole.yaml │ ├── bindablekinds_viewer_rolebinding.yaml │ ├── bindablekinds_editor_role.yaml │ ├── percona_mongodb_clusterrole.yaml │ ├── bindablekinds_viewer_role.yaml │ ├── clusterworkloadresourcemappings_viewer_rolebinding.yaml │ ├── clusterworkloadresourcemappings_viewer_role.yaml │ ├── servicebinding_controller_rolebinding.yaml │ ├── servicebinding_viewer_role.yaml │ ├── servicebinding_editor_role.yaml │ └── leader_election_role.yaml ├── webhook │ ├── kustomization.yaml │ └── service.yaml ├── samples │ ├── operators_v1alpha1_bindablekinds.yaml │ ├── spec_v1alpha3_servicebinding.yaml │ ├── spec_v1beta1_servicebinding.yaml │ ├── kustomization.yaml │ ├── operators_v1alpha1_servicebinding.yaml │ ├── spec_v1alpha3_clusterworkloadresourcemapping.yaml │ └── spec_v1beta1_clusterworkloadresourcemapping.yaml ├── scorecard │ ├── bases │ │ └── config.yaml │ ├── patches │ │ └── basic.config.yaml │ └── kustomization.yaml ├── manager │ ├── controller_manager_config.yaml │ └── kustomization.yaml ├── crd │ ├── patches │ │ ├── cainjection_in_spec_servicebindings.yaml │ │ ├── cainjection_in_bindablekinds.yaml │ │ ├── cainjection_in_servicebindings.yaml │ │ ├── cainjection_in_spec_clusterworkloadresourcemappings.yaml │ │ ├── webhook_in_bindablekinds.yaml │ │ └── webhook_in_servicebindings.yaml │ └── kustomizeconfig.yaml ├── manifests │ └── manager_watch_namespace_patch.yaml └── default │ ├── webhookcainjection_patch.yaml │ ├── manager_config_patch.yaml │ └── manager_webhook_patch.yaml ├── samples └── apps │ ├── spring-elasticsearch │ ├── .gitignore │ ├── elastic-es-sed.values.yaml │ ├── productsearch-elastic-es-sed-binding.yaml │ ├── productsearch-elasticsearch-binding.yaml │ └── patch │ │ └── pom.xml.patch │ └── spring-petclinic │ ├── petclinic-postgresql-binding.yaml │ ├── petclinic-pgcluster-binding.yaml │ └── petclinic-mysqlcluster-binding.yaml ├── setup.cfg ├── version └── version.go ├── Makefile ├── assets ├── icon │ └── sbo-logo.png ├── operator-hub-pgo-screenshot.png ├── operator-hub-sbo-screenshot.png ├── import-node-todo-app-screenshot.png ├── operator-hub-awsrdso-screenshot.png └── operator-hub-ibmcloudop-screenshot.png ├── hack ├── deploy-sbo-operator-hub.sh ├── check-python │ ├── requirements.txt │ ├── measure-maintainability-index.sh │ ├── measure-cyclomatic-complexity.sh │ └── prepare-env.sh ├── perf │ ├── run.sh │ ├── env.sh │ └── reset.sh ├── stop-sbo-local.sh ├── test-cleanup.sh ├── boilerplate.go.txt └── start-minikube.sh ├── charts └── service-binding-operator │ ├── templates │ ├── service-account.yaml │ ├── issuer.yaml │ ├── service.yaml │ ├── rolebinding.yaml │ ├── certificate.yaml │ └── configMap.yaml │ ├── values.yaml │ └── .helmignore ├── .github ├── actions │ └── setup-podman │ │ ├── setup-local-registry.sh │ │ ├── registries_template.conf │ │ ├── setup-podman-wrapper.sh │ │ ├── opm │ │ └── podman ├── ISSUE_TEMPLATE │ └── bug_report.md └── workflows │ └── pr-labels.yaml ├── OWNERS ├── apis ├── spec │ └── v1beta1 │ │ └── suite_test.go ├── binding │ └── v1alpha1 │ │ └── suite_test.go └── webhooks │ └── suite_test.go ├── pkg ├── binding │ └── value.go ├── reconcile │ └── pipeline │ │ ├── context │ │ ├── suite_test.go │ │ └── service │ │ │ └── suite_test.go │ │ ├── builder │ │ └── suite_test.go │ │ └── handler │ │ ├── mapping │ │ └── suite_test.go │ │ ├── naming │ │ └── suite_test.go │ │ ├── collect │ │ └── suite_test.go │ │ └── project │ │ └── suite_test.go ├── util │ └── util.go └── client │ └── kubernetes │ └── api.go ├── make ├── test.mk └── docs.mk ├── tools └── tools.go ├── Dockerfile ├── .editorconfig └── contributors.txt /test/performance/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/acceptance/features/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/acceptance/features/steps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/_projects/api-client/.gitignore: -------------------------------------------------------------------------------- 1 | go.sum 2 | main -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/_projects/api-controller/.gitignore: -------------------------------------------------------------------------------- 1 | go.sum 2 | main -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/.goconvey: -------------------------------------------------------------------------------- 1 | ignore -------------------------------------------------------------------------------- /vendor/github.com/go-logr/zapr/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.swp 3 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | 3 | -------------------------------------------------------------------------------- /docs/devguide/modules/ROOT/nav.adoc: -------------------------------------------------------------------------------- 1 | * xref:architecture.adoc[] -------------------------------------------------------------------------------- /docs/userguide/modules/ROOT/nav.adoc: -------------------------------------------------------------------------------- 1 | * xref:intro.adoc[] 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonpointer/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | test 3 | out 4 | bin 5 | testbin 6 | config 7 | -------------------------------------------------------------------------------- /config/prometheus/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - monitor.yaml 3 | -------------------------------------------------------------------------------- /samples/apps/spring-elasticsearch/.gitignore: -------------------------------------------------------------------------------- 1 | watcher_encryption_key 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonreference/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | /.glide 3 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .test/ 3 | examples/_* -------------------------------------------------------------------------------- /docs/devguide/modules/release-to-cr/nav.adoc: -------------------------------------------------------------------------------- 1 | * xref:release-to-cr.adoc[] 2 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [pycodestyle] 2 | max-line-length = 160 3 | statistics = True 4 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/pkg/util/proto/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - apelisse 3 | -------------------------------------------------------------------------------- /docs/devguide/modules/ROOT/examples/common.go: -------------------------------------------------------------------------------- 1 | ../../../../../controllers/common.go -------------------------------------------------------------------------------- /docs/devguide/modules/acceptance-tests/nav.adoc: -------------------------------------------------------------------------------- 1 | * xref:acceptance-tests.adoc[] 2 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/Srcfile: -------------------------------------------------------------------------------- 1 | {"SkipDirs": ["examples"]} 2 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.gitattributes: -------------------------------------------------------------------------------- 1 | go.sum linguist-generated 2 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | 4 | .idea/ 5 | -------------------------------------------------------------------------------- /version/version.go: -------------------------------------------------------------------------------- 1 | package version 2 | 3 | var ( 4 | Version = "0.0.1" 5 | ) 6 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/.gitignore: -------------------------------------------------------------------------------- 1 | cover.dat 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.gitignore: -------------------------------------------------------------------------------- 1 | /testdata/fixtures/ 2 | /fixtures 3 | -------------------------------------------------------------------------------- /vendor/go.uber.org/multierr/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | cover.html 3 | cover.out 4 | /bin 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | vendor 3 | Godeps 4 | .idea 5 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/pkg/validation/spec/.gitignore: -------------------------------------------------------------------------------- 1 | secrets.yml 2 | coverage.out 3 | -------------------------------------------------------------------------------- /test/acceptance/openshift-htpass: -------------------------------------------------------------------------------- 1 | acceptance-tests-dev:$apr1$EF8DoOa4$qUqgKPnDLuUM.6Po2Drum1 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/.gitignore: -------------------------------------------------------------------------------- 1 | command-line-arguments.test 2 | -------------------------------------------------------------------------------- /test/performance/.gitignore: -------------------------------------------------------------------------------- 1 | metrics* 2 | out 3 | resource-list* 4 | results* 5 | toolchain-e2e.git 6 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) 2 | 3 | include make/*.mk 4 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.test 3 | . 4 | .idea 5 | gomega.iml 6 | TODO 7 | .vscode -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2012 Matt T. Proud (matt.proud@gmail.com) 2 | -------------------------------------------------------------------------------- /docs/userguide/modules/projecting-binding-data/nav.adoc: -------------------------------------------------------------------------------- 1 | * Projecting binding data 2 | ** xref:projecting-binding-data.adoc[] -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/coverage.sh: -------------------------------------------------------------------------------- 1 | go test -coverprofile=coverage.out 2 | go tool cover -html=coverage.out -------------------------------------------------------------------------------- /assets/icon/sbo-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/assets/icon/sbo-logo.png -------------------------------------------------------------------------------- /config/certmanager/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - certificate.yaml 3 | 4 | configurations: 5 | - kustomizeconfig.yaml 6 | -------------------------------------------------------------------------------- /docs/userguide/modules/ROOT/examples/percona_mongodb_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | ../../../../../config/rbac/percona_mongodb_clusterrole.yaml -------------------------------------------------------------------------------- /docs/userguide/modules/using-projected-bindings/nav.adoc: -------------------------------------------------------------------------------- 1 | * Using Projected Bindings 2 | ** xref:using-projected-bindings.adoc[] -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | TODO 3 | tmp/**/* 4 | *.coverprofile 5 | .vscode 6 | .idea/ 7 | *.log 8 | -------------------------------------------------------------------------------- /vendor/k8s.io/utils/pointer/README.md: -------------------------------------------------------------------------------- 1 | # Pointer 2 | 3 | This package provides some functions for pointer-based operations. 4 | -------------------------------------------------------------------------------- /config/rbac/service_account.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: operator 5 | namespace: system -------------------------------------------------------------------------------- /test/acceptance/features/requirements.txt: -------------------------------------------------------------------------------- 1 | behave==1.2.6 2 | requests==2.31.0 3 | polling2==0.5.0 4 | PyYAML==6.0.1 5 | semver==3.0.2 -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.gitattributes: -------------------------------------------------------------------------------- 1 | # gofmt always uses LF, whereas Git uses CRLF on Windows. 2 | *.go text eol=lf 3 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/openapi/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - apelisse 5 | -------------------------------------------------------------------------------- /test/performance/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3==1.23.10 2 | botocore==1.26.10 3 | requests==2.31.0 4 | opensearch-py==2.1.1 5 | PyYAML==6.0 6 | -------------------------------------------------------------------------------- /config/webhook/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - manifests.yaml 3 | - service.yaml 4 | 5 | configurations: 6 | - kustomizeconfig.yaml 7 | -------------------------------------------------------------------------------- /hack/deploy-sbo-operator-hub.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # FIXME: This is a placeholder for installing SBO via operator hub 4 | echo "FAILED" 5 | -------------------------------------------------------------------------------- /assets/operator-hub-pgo-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/assets/operator-hub-pgo-screenshot.png -------------------------------------------------------------------------------- /assets/operator-hub-sbo-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/assets/operator-hub-sbo-screenshot.png -------------------------------------------------------------------------------- /vendor/github.com/evanphx/json-patch/.gitignore: -------------------------------------------------------------------------------- 1 | # editor and IDE paraphernalia 2 | .idea 3 | .vscode 4 | 5 | # macOS paraphernalia 6 | .DS_Store 7 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/json/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - deads2k 5 | - lavalamp 6 | - liggitt 7 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/attachments/petclinic-deployment.yaml: -------------------------------------------------------------------------------- 1 | ../../../../../../samples/apps/spring-petclinic/petclinic-deployment.yaml -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/attachments/pgcluster-deployment.yaml: -------------------------------------------------------------------------------- 1 | ../../../../../../samples/apps/spring-petclinic/pgcluster-deployment.yaml -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/attachments/postgresql-deployment.yaml: -------------------------------------------------------------------------------- 1 | ../../../../../../samples/apps/spring-petclinic/postgresql-deployment.yaml -------------------------------------------------------------------------------- /hack/check-python/requirements.txt: -------------------------------------------------------------------------------- 1 | pydocstyle==6.3.0 2 | pyflakes==3.1.0 3 | vulture==2.10 4 | radon==6.0.1 5 | flake8_polyfill==1.0.2 6 | PyYAML==6.0.1 7 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.gitignore: -------------------------------------------------------------------------------- 1 | # go test -c output 2 | *.test 3 | *.test.exe 4 | 5 | # Output of go build ./cmd/fsnotify 6 | /fsnotify 7 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/tools/metrics/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - wojtek-t 5 | - jayunit100 6 | -------------------------------------------------------------------------------- /assets/import-node-todo-app-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/assets/import-node-todo-app-screenshot.png -------------------------------------------------------------------------------- /assets/operator-hub-awsrdso-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/assets/operator-hub-awsrdso-screenshot.png -------------------------------------------------------------------------------- /docs/devguide/modules/install-sbo/nav.adoc: -------------------------------------------------------------------------------- 1 | * Install 2 | 3 | ** xref:install-on-minikube.adoc[On Minikube] 4 | ** xref:install-on-openshift.adoc[On Openshift] 5 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | * Johannes 'fish' Ziemke @discordianfish 2 | * Paul Gier @pgier 3 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /vendor/k8s.io/utils/clock/README.md: -------------------------------------------------------------------------------- 1 | # Clock 2 | 3 | This package provides an interface for time-based operations. It allows 4 | mocking time for testing. 5 | -------------------------------------------------------------------------------- /assets/operator-hub-ibmcloudop-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/assets/operator-hub-ibmcloudop-screenshot.png -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/attachments/petclinic-pgcluster-binding.yaml: -------------------------------------------------------------------------------- 1 | ../../../../../../samples/apps/spring-petclinic/petclinic-pgcluster-binding.yaml -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/attachments/petclinic-postgresql-binding.yaml: -------------------------------------------------------------------------------- 1 | ../../../../../../samples/apps/spring-petclinic/petclinic-postgresql-binding.yaml -------------------------------------------------------------------------------- /vendor/github.com/google/gnostic-models/jsonschema/README.md: -------------------------------------------------------------------------------- 1 | # jsonschema 2 | 3 | This directory contains code for reading, writing, and manipulating JSON 4 | schemas. 5 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/testrunner/build_args.go: -------------------------------------------------------------------------------- 1 | // +build go1.10 2 | 3 | package testrunner 4 | 5 | var ( 6 | buildArgs = []string{"test", "-c"} 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.mailmap: -------------------------------------------------------------------------------- 1 | Chris Howey 2 | Nathan Youngman <4566+nathany@users.noreply.github.com> 3 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/mergepatch/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - pwittrock 5 | reviewers: 6 | - apelisse 7 | -------------------------------------------------------------------------------- /test/acceptance/features/steps/subscription_install_mode.py: -------------------------------------------------------------------------------- 1 | from enum import Enum 2 | 3 | 4 | class InstallMode(Enum): 5 | Automatic = "Automatic" 6 | Manual = "Manual" 7 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/testrunner/build_args_old.go: -------------------------------------------------------------------------------- 1 | // +build !go1.10 2 | 3 | package testrunner 4 | 5 | var ( 6 | buildArgs = []string{"test", "-c", "-i"} 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/gopkg.in/tomb.v1/README.md: -------------------------------------------------------------------------------- 1 | Installation and usage 2 | ---------------------- 3 | 4 | See [gopkg.in/tomb.v1](https://gopkg.in/tomb.v1) for documentation and usage details. 5 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/util/keyutil/OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - sig-auth-certificates-approvers 3 | reviewers: 4 | - sig-auth-certificates-reviewers 5 | labels: 6 | - sig/auth 7 | -------------------------------------------------------------------------------- /config/samples/operators_v1alpha1_bindablekinds.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: binding.operators.coreos.com/v1alpha1 2 | kind: BindableKinds 3 | metadata: 4 | name: bindable-kinds 5 | spec: {} 6 | -------------------------------------------------------------------------------- /vendor/github.com/google/gnostic-models/compiler/README.md: -------------------------------------------------------------------------------- 1 | # Compiler support code 2 | 3 | This directory contains compiler support code used by Gnostic and Gnostic 4 | extensions. 5 | -------------------------------------------------------------------------------- /vendor/github.com/google/gofuzz/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - master 8 | 9 | script: 10 | - go test -cover 11 | -------------------------------------------------------------------------------- /vendor/github.com/josharian/intern/README.md: -------------------------------------------------------------------------------- 1 | Docs: https://godoc.org/github.com/josharian/intern 2 | 3 | See also [Go issue 5160](https://golang.org/issue/5160). 4 | 5 | License: MIT 6 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/third_party/forked/golang/json/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - pwittrock 5 | reviewers: 6 | - apelisse 7 | -------------------------------------------------------------------------------- /test/acceptance/Dockerfile.allure: -------------------------------------------------------------------------------- 1 | FROM quay.io/pmacik/yhxue911-python-allure 2 | 3 | COPY entrypoint.sh /entrypoint.sh 4 | 5 | EXPOSE 8080 6 | 7 | ENTRYPOINT [ "/entrypoint.sh" ] 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/interrupthandler/sigquit_swallower_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package interrupthandler 4 | 5 | func SwallowSigQuit() { 6 | //noop 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go: -------------------------------------------------------------------------------- 1 | package node 2 | 3 | type Node struct { 4 | ID int 5 | Value interface{} 6 | } 7 | 8 | type NodeOrderedSet []Node 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "math" 4 | 5 | func Odd(n int) bool { 6 | return math.Mod(float64(n), 2.0) == 1.0 7 | } 8 | -------------------------------------------------------------------------------- /config/scorecard/bases/config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: scorecard.operatorframework.io/v1alpha3 2 | kind: Configuration 3 | metadata: 4 | name: config 5 | stages: 6 | - parallel: true 7 | tests: [] 8 | -------------------------------------------------------------------------------- /docs/userguide/modules/ROOT/assets/images/intro-bindings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/docs/userguide/modules/ROOT/assets/images/intro-bindings.png -------------------------------------------------------------------------------- /test/charts/service-binding-operator/secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Secret 3 | metadata: 4 | name: provisioned-secret-1 5 | stringData: 6 | username: foo 7 | password: bar 8 | type: db -------------------------------------------------------------------------------- /charts/service-binding-operator/templates/service-account.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: service-binding-operator 6 | namespace: {{.Release.Namespace}} -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/json/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/Makefile: -------------------------------------------------------------------------------- 1 | all: test 2 | 3 | test: 4 | go vet . 5 | go test -cover -v . 6 | 7 | ex: 8 | find ./examples -type f -name "*.go" | xargs -I {} go build -o /tmp/ignore {} -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## v1.0.0-rc1 4 | 5 | This is the first logged release. Major changes (including breaking changes) 6 | have occurred since earlier tags. 7 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | cover: 4 | go test -cover -v -coverprofile=cover.dat ./... 5 | go tool cover -func cover.dat 6 | 7 | .PHONY: cover 8 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/ratelimiter/storage.go: -------------------------------------------------------------------------------- 1 | package ratelimiter 2 | 3 | type Storage interface { 4 | GetBucketFor(string) (*LeakyBucket, error) 5 | SetBucketFor(string, LeakyBucket) error 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/operator-framework/api/pkg/operators/doc.go: -------------------------------------------------------------------------------- 1 | // +kubebuilder:skip 2 | 3 | // Package operators contains all resource types of the operators.coreos.com API group. 4 | package operators 5 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/tools/record/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - sig-instrumentation-reviewers 5 | approvers: 6 | - sig-instrumentation-approvers 7 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/transport/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - smarterclayton 5 | - wojtek-t 6 | - deads2k 7 | - liggitt 8 | - caesarxuchao 9 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/images/ocp_operathub.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/docs/userguide/modules/getting-started/assets/images/ocp_operathub.png -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Prometheus Community Code of Conduct 2 | 3 | Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/controller-runtime/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Kubernetes Community Code of Conduct 2 | 3 | Please refer to our [Kubernetes Community Code of Conduct](https://git.k8s.io/community/code-of-conduct.md) 4 | -------------------------------------------------------------------------------- /config/rbac/auth_proxy_client_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: metrics-reader 5 | rules: 6 | - nonResourceURLs: ["/metrics"] 7 | verbs: ["get"] 8 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/images/sbo_post_install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/docs/userguide/modules/getting-started/assets/images/sbo_post_install.png -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/images/sbo_intall_landing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/docs/userguide/modules/getting-started/assets/images/sbo_intall_landing.png -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/nav.adoc: -------------------------------------------------------------------------------- 1 | * Getting started 2 | ** xref:installing-service-binding.adoc[] 3 | ** xref:quick-start.adoc[] 4 | ** xref:petclinic-postgresql.adoc[] 5 | ** xref:petclinic-pgcluster.adoc[] 6 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/k8s.io/utils/pointer/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - apelisse 5 | - stewart-yu 6 | - thockin 7 | reviewers: 8 | - apelisse 9 | - stewart-yu 10 | - thockin 11 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/images/pgcluster-spring-boot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/docs/userguide/modules/getting-started/assets/images/pgcluster-spring-boot.png -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/images/sbo_install_options.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/docs/userguide/modules/getting-started/assets/images/sbo_install_options.png -------------------------------------------------------------------------------- /hack/perf/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -x 2 | 3 | pushd $(dirname $0) 4 | source ./env.sh 5 | pushd ../../ 6 | time make clean test-performance test-performance-collect-kpi -o deploy-from-index-image 7 | popd 8 | popd 9 | -------------------------------------------------------------------------------- /vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/.import-restrictions: -------------------------------------------------------------------------------- 1 | inverseRules: 2 | # Allow use of this package in all k8s.io packages. 3 | - selectorRegexp: k8s[.]io 4 | allowedPrefixes: 5 | - '' 6 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/assets/images/postgresql-spring-boot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/redhat-developer/service-binding-operator/HEAD/docs/userguide/modules/getting-started/assets/images/postgresql-spring-boot.png -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/Taskfile.yml: -------------------------------------------------------------------------------- 1 | # https://taskfile.dev 2 | 3 | version: '2' 4 | 5 | tasks: 6 | default: 7 | cmds: 8 | - task: test 9 | 10 | test: 11 | cmds: 12 | - go test -v . 13 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/README.md: -------------------------------------------------------------------------------- 1 | See [![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang/prometheus.svg)](https://pkg.go.dev/github.com/prometheus/client_golang/prometheus). 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_model/NOTICE: -------------------------------------------------------------------------------- 1 | Data model artifacts for Prometheus. 2 | Copyright 2012-2015 The Prometheus Authors 3 | 4 | This product includes software developed at 5 | SoundCloud Ltd. (http://soundcloud.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/.import-restrictions: -------------------------------------------------------------------------------- 1 | inverseRules: 2 | # Allow use of this package in all k8s.io packages. 3 | - selectorRegexp: k8s[.]io 4 | allowedPrefixes: 5 | - '' 6 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/util/cert/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - sig-auth-certificates-approvers 5 | reviewers: 6 | - sig-auth-certificates-reviewers 7 | labels: 8 | - sig/auth 9 | -------------------------------------------------------------------------------- /charts/service-binding-operator/templates/issuer.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: cert-manager.io/v1 3 | kind: Issuer 4 | metadata: 5 | name: service-binding-selfsigned-issuer 6 | namespace: {{.Release.Namespace}} 7 | spec: 8 | selfSigned: {} -------------------------------------------------------------------------------- /vendor/github.com/prometheus/common/NOTICE: -------------------------------------------------------------------------------- 1 | Common libraries shared by Prometheus Go components. 2 | Copyright 2015 The Prometheus Authors 3 | 4 | This product includes software developed at 5 | SoundCloud Ltd. (http://soundcloud.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting a security issue 2 | 3 | The Prometheus security policy, including how to report vulnerabilities, can be 4 | found here: 5 | 6 | 7 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/tools/auth/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - sig-auth-authenticators-approvers 5 | reviewers: 6 | - sig-auth-authenticators-reviewers 7 | labels: 8 | - sig/auth 9 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/util/strategicpatch/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - apelisse 5 | - pwittrock 6 | reviewers: 7 | - apelisse 8 | emeritus_approvers: 9 | - mengqiy 10 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.golangci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | linters: 3 | enable: 4 | - godot 5 | - revive 6 | 7 | linter-settings: 8 | godot: 9 | capital: true 10 | exclude: 11 | # Ignore "See: URL" 12 | - 'See:' 13 | -------------------------------------------------------------------------------- /.github/actions/setup-podman/setup-local-registry.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -x 4 | 5 | mkdir -p ${GITHUB_WORKSPACE}/registry 6 | 7 | podman run -d -p 5000:5000 --rm -v ${GITHUB_WORKSPACE}/registry:/var/lib/registry:Z --name reg registry:2.7 8 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/mergo/.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | test_patterns = [ 4 | "*_test.go" 5 | ] 6 | 7 | [[analyzers]] 8 | name = "go" 9 | enabled = true 10 | 11 | [analyzers.meta] 12 | import_path = "github.com/imdario/mergo" -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/plugin/pkg/client/auth/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - sig-auth-authenticators-approvers 5 | reviewers: 6 | - sig-auth-authenticators-reviewers 7 | labels: 8 | - sig/auth 9 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/resource/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - derekwaynecarr 8 | - mikedanese 9 | - saad-ali 10 | - janetkuo 11 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/partials/scenario-diagram-description-postgresql.adoc: -------------------------------------------------------------------------------- 1 | [NOTE] 2 | ==== 3 | The PostgreSQL database in this scenario is deployed using Kubernetes `Deployment` of the https://hub.docker.com/_/postgres[postgres] container image. 4 | ==== -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } 5 | t.FailNow() 6 | } 7 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/k8s.io/kube-openapi/pkg/internal/third_party/go-json-experiment/json/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md 2 | 3 | approvers: 4 | - baijum 5 | - sadlerap 6 | - dperaza4dustbit 7 | - filariow 8 | 9 | reviewers: 10 | - baijum 11 | - sadlerap 12 | - dperaza4dustbit 13 | - filariow 14 | -------------------------------------------------------------------------------- /apis/spec/v1beta1/suite_test.go: -------------------------------------------------------------------------------- 1 | package v1beta1 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestAPI(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "API Suite") 13 | } 14 | -------------------------------------------------------------------------------- /docs/devguide/modules/install-sbo/partials/openshift/external-cr/setup-openshift.adoc: -------------------------------------------------------------------------------- 1 | First of all, follow the instructions at link:../release-to-cr/release-to-cr.html[Release to a Container Registry] to login to an external Container Registry and configure the shell. 2 | 3 | -------------------------------------------------------------------------------- /hack/perf/env.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export WAIT_BEFORE=${WAIT_BEFORE:-120s} 4 | export WAIT_AFTER=${WAIT_AFTER:-300s} 5 | export TEST_PERFORMANCE_USERS_PER_SCENARIO=${TEST_PERFORMANCE_USERS_PER_SCENARIO:-50} 6 | export SKIP_RESOURCE_COUNTS=${SKIP_RESOURCE_COUNTS:-true} 7 | -------------------------------------------------------------------------------- /pkg/binding/value.go: -------------------------------------------------------------------------------- 1 | package binding 2 | 3 | type Value interface { 4 | Get() interface{} 5 | } 6 | 7 | type value struct { 8 | v interface{} 9 | } 10 | 11 | var _ Value = (*value)(nil) 12 | 13 | func (v *value) Get() interface{} { 14 | return v.v 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/json.go: -------------------------------------------------------------------------------- 1 | // +build !jsoniter 2 | 3 | package restful 4 | 5 | import "encoding/json" 6 | 7 | var ( 8 | MarshalIndent = json.MarshalIndent 9 | NewDecoder = json.NewDecoder 10 | NewEncoder = json.NewEncoder 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/system_darwin.go: -------------------------------------------------------------------------------- 1 | //go:build darwin 2 | // +build darwin 3 | 4 | package fsnotify 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // note: this constant is not defined on BSD 9 | const openMode = unix.O_EVTONLY | unix.O_CLOEXEC 10 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /.github/actions/setup-podman/registries_template.conf: -------------------------------------------------------------------------------- 1 | unqualified-search-registries = ['docker.io'] 2 | 3 | [[registry]] 4 | prefix = "REGISTRY_PREFIX" 5 | insecure = true 6 | location = "localhost:5000" 7 | 8 | [[registry.mirror]] 9 | location = "REGISTRY_PREFIX" 10 | -------------------------------------------------------------------------------- /apis/binding/v1alpha1/suite_test.go: -------------------------------------------------------------------------------- 1 | package v1alpha1 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestAPI(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "API Suite") 13 | } 14 | -------------------------------------------------------------------------------- /test/acceptance/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -xe 2 | if [ $1 == "generate" ]; then 3 | allure generate /allure/results -o /allure/report --clean 4 | elif [ $1 == "serve" ]; then 5 | allure serve -p 8080 /allure/results 6 | else 7 | echo "Usage: $0 (generate|serve)" 8 | fi -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/tools/leaderelection/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - mikedanese 5 | reviewers: 6 | - wojtek-t 7 | - deads2k 8 | - mikedanese 9 | - ingvagabund 10 | emeritus_approvers: 11 | - timothysc 12 | -------------------------------------------------------------------------------- /config/rbac/servicebinding_controller_role.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: controller-role 5 | aggregationRule: 6 | clusterRoleSelectors: 7 | - matchLabels: 8 | servicebinding.io/controller: "true" 9 | rules: [] 10 | -------------------------------------------------------------------------------- /test/acceptance/resources/apps/sbo-generic-test-app/env.sh: -------------------------------------------------------------------------------- 1 | echo "Content-Type: application/json" 2 | 3 | env_var=$(echo $PATH_INFO | cut -c2-) 4 | value=$(jq -e ".${env_var}" /tmp/env.json) 5 | if [ $? != 0 ]; then 6 | echo -e "Status: 404 Not Found\n" 7 | else 8 | echo -e "\n$value" 9 | fi -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/system_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd || openbsd || netbsd || dragonfly 2 | // +build freebsd openbsd netbsd dragonfly 3 | 4 | package fsnotify 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const openMode = unix.O_NONBLOCK | unix.O_RDONLY | unix.O_CLOEXEC 9 | -------------------------------------------------------------------------------- /vendor/github.com/munnerz/goautoneg/Makefile: -------------------------------------------------------------------------------- 1 | include $(GOROOT)/src/Make.inc 2 | 3 | TARG=bitbucket.org/ww/goautoneg 4 | GOFILES=autoneg.go 5 | 6 | include $(GOROOT)/src/Make.pkg 7 | 8 | format: 9 | gofmt -w *.go 10 | 11 | docs: 12 | gomake clean 13 | godoc ${TARG} > README.txt 14 | -------------------------------------------------------------------------------- /pkg/reconcile/pipeline/context/suite_test.go: -------------------------------------------------------------------------------- 1 | package context 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestContext(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Context Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.x 5 | 6 | before_install: 7 | - go test -v 8 | 9 | script: 10 | - go test -race -coverprofile=coverage.txt -covermode=atomic 11 | 12 | after_success: 13 | - bash <(curl -s https://codecov.io/bash) -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/pkg/apis/clientauthentication/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | # approval on api packages bubbles to api-approvers 4 | reviewers: 5 | - sig-auth-authenticators-approvers 6 | - sig-auth-authenticators-reviewers 7 | labels: 8 | - sig/auth 9 | -------------------------------------------------------------------------------- /apis/webhooks/suite_test.go: -------------------------------------------------------------------------------- 1 | package webhooks_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestBindingHandlers(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Binding Handlers Suite") 13 | } 14 | -------------------------------------------------------------------------------- /docs/userguide/modules/binding-workloads-using-sbo/nav.adoc: -------------------------------------------------------------------------------- 1 | * Binding workloads using Service Binding Operator 2 | ** xref:api-differences.adoc[] 3 | ** xref:creating-service-binding.adoc[] 4 | ** xref:binding-options.adoc[] 5 | ** xref:custom-path-injection.adoc[] 6 | ** xref:unbinding-workloads.adoc[] 7 | -------------------------------------------------------------------------------- /pkg/reconcile/pipeline/builder/suite_test.go: -------------------------------------------------------------------------------- 1 | package builder_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestBuilder(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Builder Suite") 13 | } 14 | -------------------------------------------------------------------------------- /pkg/reconcile/pipeline/context/service/suite_test.go: -------------------------------------------------------------------------------- 1 | package service 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestService(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Service Suite") 13 | } 14 | -------------------------------------------------------------------------------- /pkg/reconcile/pipeline/handler/mapping/suite_test.go: -------------------------------------------------------------------------------- 1 | package mapping_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestApi(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Handler Suite") 13 | } 14 | -------------------------------------------------------------------------------- /pkg/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | func MergeMaps(dest map[string]string, src map[string]string) map[string]string { 4 | if dest == nil { 5 | return src 6 | } 7 | if src == nil { 8 | return dest 9 | } 10 | for k, v := range src { 11 | dest[k] = v 12 | } 13 | return dest 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*.go] 4 | indent_style = tab 5 | indent_size = 4 6 | insert_final_newline = true 7 | 8 | [*.{yml,yaml}] 9 | indent_style = space 10 | indent_size = 2 11 | insert_final_newline = true 12 | trim_trailing_whitespace = true 13 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/NOTICE: -------------------------------------------------------------------------------- 1 | procfs provides functions to retrieve system, kernel and process 2 | metrics from the pseudo-filesystem proc. 3 | 4 | Copyright 2014-2015 The Prometheus Authors 5 | 6 | This product includes software developed at 7 | SoundCloud Ltd. (http://soundcloud.com/). 8 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/rest/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - caesarxuchao 7 | - wojtek-t 8 | - deads2k 9 | - liggitt 10 | - sttts 11 | - luxas 12 | - dims 13 | - cjcullen 14 | - lojies 15 | -------------------------------------------------------------------------------- /make/test.mk: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | ## Run unit and integration tests 3 | test: generate fmt vet manifests 4 | $(GO) test ./... -covermode=atomic -coverprofile cover.out 5 | 6 | # Run go fmt against code 7 | fmt: 8 | $(GO) fmt ./... 9 | 10 | # Run go vet against code 11 | vet: 12 | $(GO) vet ./... 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package internal contains support packages for oauth2 package. 6 | package internal 7 | -------------------------------------------------------------------------------- /config/webhook/service.yaml: -------------------------------------------------------------------------------- 1 | 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: webhook-service 6 | namespace: system 7 | spec: 8 | ports: 9 | - port: 443 10 | protocol: TCP 11 | targetPort: 9443 12 | selector: 13 | control-plane: service-binding-controller-manager 14 | -------------------------------------------------------------------------------- /docs/userguide/modules/exposing-binding-data/nav.adoc: -------------------------------------------------------------------------------- 1 | * Exposing binding data 2 | ** xref:intro-expose-binding.adoc[] 3 | ** xref:rbac-requirements.adoc[] 4 | ** xref:provisioned-service.adoc[] 5 | ** xref:direct-secret-reference.adoc[] 6 | ** xref:adding-annotation.adoc[] 7 | ** xref:detect-bindings.adoc[] 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | reviewers: 3 | - harshanarayana 4 | - pohly 5 | approvers: 6 | - dims 7 | - thockin 8 | - serathius 9 | emeritus_approvers: 10 | - brancz 11 | - justinsb 12 | - lavalamp 13 | - piosz 14 | - tallclair 15 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/internal/clock/README.md: -------------------------------------------------------------------------------- 1 | # Clock 2 | 3 | This package provides an interface for time-based operations. It allows 4 | mocking time for testing. 5 | 6 | This is a copy of k8s.io/utils/clock. We have to copy it to avoid a circular 7 | dependency (k8s.io/klog -> k8s.io/utils -> k8s.io/klog). 8 | -------------------------------------------------------------------------------- /config/scorecard/patches/basic.config.yaml: -------------------------------------------------------------------------------- 1 | - op: add 2 | path: /stages/0/tests/- 3 | value: 4 | entrypoint: 5 | - scorecard-test 6 | - basic-check-spec 7 | image: quay.io/operator-framework/scorecard-test:v1.3.0 8 | labels: 9 | suite: basic 10 | test: basic-check-spec-test 11 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/network.go: -------------------------------------------------------------------------------- 1 | package sprig 2 | 3 | import ( 4 | "math/rand" 5 | "net" 6 | ) 7 | 8 | func getHostByName(name string) string { 9 | addrs, _ := net.LookupHost(name) 10 | //TODO: add error handing when release v3 comes out 11 | return addrs[rand.Intn(len(addrs))] 12 | } 13 | -------------------------------------------------------------------------------- /pkg/reconcile/pipeline/handler/naming/suite_test.go: -------------------------------------------------------------------------------- 1 | package naming_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestNamingHandler(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Naming Handlers Suite") 13 | } 14 | -------------------------------------------------------------------------------- /samples/apps/spring-elasticsearch/elastic-es-sed.values.yaml: -------------------------------------------------------------------------------- 1 | elasticsearch: 2 | sed: 3 | hostname: elastic-es-master.product-search.svc.cluster.local 4 | port: 9200 5 | cluster: elastic-es 6 | user: 'elastic' 7 | password: 'passwhat?' 8 | clusterHealthCheckParams: "wait_for_status=green&timeout=1s" 9 | -------------------------------------------------------------------------------- /pkg/reconcile/pipeline/handler/collect/suite_test.go: -------------------------------------------------------------------------------- 1 | package collect_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestBindingHandlers(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Binding Handlers Suite") 13 | } 14 | -------------------------------------------------------------------------------- /pkg/reconcile/pipeline/handler/project/suite_test.go: -------------------------------------------------------------------------------- 1 | package project_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestProjectionHandlers(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Inject Handlers Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | insert_final_newline = true 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | indent_style = tab 10 | indent_size = 8 11 | 12 | [*.{md,yml,yaml,json}] 13 | indent_style = space 14 | indent_size = 2 15 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/meta/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - derekwaynecarr 9 | - caesarxuchao 10 | - mikedanese 11 | - liggitt 12 | - janetkuo 13 | - ncdc 14 | - dims 15 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # OSX trash 5 | .DS_Store 6 | 7 | # Eclipse files 8 | .classpath 9 | .project 10 | .settings/** 11 | 12 | # Files generated by JetBrains IDEs, e.g. IntelliJ IDEA 13 | .idea/ 14 | *.iml 15 | 16 | # Vscode files 17 | .vscode 18 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.9.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/pages/petclinic-postgresql.adoc: -------------------------------------------------------------------------------- 1 | [#connecting-petclinic-app-to-postgresql-db] 2 | = Connecting PetClinic application to PostgreSQL database 3 | :quickstart-namespace: my-petclinic 4 | :quickstart-db: postgresql 5 | :quickstart-db-showname: a PostgreSQL database 6 | 7 | include::partial$petclinic-db.adoc[] -------------------------------------------------------------------------------- /tools/tools.go: -------------------------------------------------------------------------------- 1 | // +build tools 2 | 3 | package tools 4 | 5 | import ( 6 | _ "github.com/golang/mock/mockgen/model" 7 | _ "github.com/onsi/ginkgo/ginkgo" 8 | ) 9 | 10 | // This file imports packages that are used when running go generate, or used 11 | // during the development process but not otherwise depended on by built code. 12 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - "1.4.x" 5 | - "1.5.x" 6 | - "1.6.x" 7 | - "1.7.x" 8 | - "1.8.x" 9 | - "1.9.x" 10 | - "1.10.x" 11 | - "1.11.x" 12 | - "1.12.x" 13 | - "1.13.x" 14 | - "1.14.x" 15 | - "tip" 16 | 17 | go_import_path: gopkg.in/yaml.v2 18 | -------------------------------------------------------------------------------- /config/rbac/role_binding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: manager-rolebinding 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: manager-role 9 | subjects: 10 | - kind: ServiceAccount 11 | name: operator 12 | namespace: system 13 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix zos 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TCGETS 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /config/manager/controller_manager_config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 2 | kind: ControllerManagerConfig 3 | health: 4 | healthProbeBindAddress: :8081 5 | metrics: 6 | bindAddress: 127.0.0.1:8080 7 | webhook: 8 | port: 9443 9 | leaderElection: 10 | leaderElect: true 11 | resourceName: 8fa65150.coreos.com 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/identity_flex.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Google LLC. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appenginevm 6 | 7 | package internal 8 | 9 | func init() { 10 | appengineFlex = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/apis/meta/v1/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - caesarxuchao 9 | - liggitt 10 | - sttts 11 | - luxas 12 | - janetkuo 13 | - justinsb 14 | - ncdc 15 | - soltysh 16 | - dims 17 | -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role_binding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: proxy-rolebinding 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: proxy-role 9 | subjects: 10 | - kind: ServiceAccount 11 | name: operator 12 | namespace: system 13 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/jsoniter.go: -------------------------------------------------------------------------------- 1 | // +build jsoniter 2 | 3 | package restful 4 | 5 | import "github.com/json-iterator/go" 6 | 7 | var ( 8 | json = jsoniter.ConfigCompatibleWithStandardLibrary 9 | MarshalIndent = json.MarshalIndent 10 | NewDecoder = json.NewDecoder 11 | NewEncoder = json.NewEncoder 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/prototext/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package prototext marshals and unmarshals protocol buffer messages as the 6 | // textproto format. 7 | package prototext 8 | -------------------------------------------------------------------------------- /.github/actions/setup-podman/setup-podman-wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -x 4 | 5 | mkdir -p $HOME/.config/containers 6 | sed -e "s,REGISTRY_PREFIX,${REGISTRY_PREFIX},g" ./.github/actions/setup-podman/registries_template.conf > $HOME/.config/containers/registries.conf 7 | cp -rvf ./.github/actions/setup-podman/podman ${GITHUB_WORKSPACE}/bin/podman 8 | -------------------------------------------------------------------------------- /charts/service-binding-operator/templates/service.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: service-binding-webhook-service 6 | namespace: {{.Release.Namespace}} 7 | spec: 8 | ports: 9 | - port: 443 10 | protocol: TCP 11 | targetPort: 9443 12 | selector: 13 | control-plane: service-binding-controller-manager -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/specrunner/random_id.go: -------------------------------------------------------------------------------- 1 | package specrunner 2 | 3 | import ( 4 | "crypto/rand" 5 | "fmt" 6 | ) 7 | 8 | func randomID() string { 9 | b := make([]byte, 8) 10 | _, err := rand.Read(b) 11 | if err != nil { 12 | return "" 13 | } 14 | return fmt.Sprintf("%x-%x-%x-%x", b[0:2], b[2:4], b[4:6], b[6:8]) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | 6 | install: 7 | - export GOPATH="$HOME/gopath" 8 | - mkdir -p "$GOPATH/src/golang.org/x" 9 | - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/golang.org/x/oauth2" 10 | - go get -v -t -d golang.org/x/oauth2/... 11 | 12 | script: 13 | - go test -v golang.org/x/oauth2/... 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build protolegacy 6 | // +build protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = true 11 | -------------------------------------------------------------------------------- /config/rbac/leader_election_role_binding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: RoleBinding 3 | metadata: 4 | name: leader-election-rolebinding 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: Role 8 | name: leader-election-role 9 | subjects: 10 | - kind: ServiceAccount 11 | name: operator 12 | namespace: system 13 | -------------------------------------------------------------------------------- /docs/devguide/modules/install-sbo/partials/minikube/setup-minikube.adoc: -------------------------------------------------------------------------------- 1 | 1. Run `minikube` using the script `./hack/start-minikube.sh` 2 | 3 | 2. Install `cert-manager` 4 | + 5 | [source,bash] 6 | ---- 7 | make deploy-cert-manager 8 | ---- 9 | 10 | 3. Configure current shell 11 | + 12 | [source,bash] 13 | ---- 14 | eval $(minikube docker-env) 15 | ---- 16 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !protolegacy 6 | // +build !protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = false 11 | -------------------------------------------------------------------------------- /vendor/k8s.io/apimachinery/pkg/api/errors/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | reviewers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - derekwaynecarr 9 | - caesarxuchao 10 | - mikedanese 11 | - liggitt 12 | - saad-ali 13 | - janetkuo 14 | - tallclair 15 | - dims 16 | - cjcullen 17 | -------------------------------------------------------------------------------- /vendor/k8s.io/component-base/config/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | # Disable inheritance as this is an api owners file 4 | options: 5 | no_parent_owners: true 6 | approvers: 7 | - api-approvers 8 | reviewers: 9 | - api-reviewers 10 | labels: 11 | - kind/api-change 12 | - sig/api-machinery 13 | - sig/scheduling 14 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM quay.io/redhat-developer/go-toolset:builder-golang-1.20 as builder 2 | 3 | WORKDIR /workspace 4 | COPY / /workspace/ 5 | 6 | # Build 7 | RUN make build 8 | 9 | FROM gcr.io/distroless/static:nonroot 10 | WORKDIR / 11 | COPY --from=builder /workspace/bin/manager . 12 | USER 65532:65532 13 | 14 | ENTRYPOINT ["/manager", "--zap-encoder=json"] 15 | -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: proxy-role 5 | rules: 6 | - apiGroups: ["authentication.k8s.io"] 7 | resources: 8 | - tokenreviews 9 | verbs: ["create"] 10 | - apiGroups: ["authorization.k8s.io"] 11 | resources: 12 | - subjectaccessreviews 13 | verbs: ["create"] 14 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/mergo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: 3 | - amd64 4 | - ppc64le 5 | install: 6 | - go get -t 7 | - go get golang.org/x/tools/cmd/cover 8 | - go get github.com/mattn/goveralls 9 | script: 10 | - go test -race -v ./... 11 | after_script: 12 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN 13 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/interrupthandler/sigquit_swallower_unix.go: -------------------------------------------------------------------------------- 1 | // +build freebsd openbsd netbsd dragonfly darwin linux solaris 2 | 3 | package interrupthandler 4 | 5 | import ( 6 | "os" 7 | "os/signal" 8 | "syscall" 9 | ) 10 | 11 | func SwallowSigQuit() { 12 | c := make(chan os.Signal, 1024) 13 | signal.Notify(c, syscall.SIGQUIT) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/klog_file_others.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package klog 5 | 6 | import ( 7 | "os/user" 8 | ) 9 | 10 | func getUserName() string { 11 | userNameOnce.Do(func() { 12 | current, err := user.Current() 13 | if err == nil { 14 | userName = current.Username 15 | } 16 | }) 17 | 18 | return userName 19 | } 20 | -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_spec_servicebindings.yaml: -------------------------------------------------------------------------------- 1 | # The following patch adds a directive for certmanager to inject CA into the CRD 2 | apiVersion: apiextensions.k8s.io/v1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | annotations: 6 | cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) 7 | name: servicebindings.servicebinding.io 8 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/testall.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -eu -o pipefail 3 | 4 | # Small convenience script for running the tests with various combinations of 5 | # arch/tags. This assumes we're running on amd64 and have qemu available. 6 | 7 | go test ./... 8 | go test -tags purego ./... 9 | GOARCH=arm64 go test 10 | GOARCH=arm64 go test -tags purego 11 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/main_common.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | // MainPath stores the file path of the main package. On App Engine Standard 4 | // using Go version 1.9 and below, this will be unset. On App Engine Flex and 5 | // App Engine Standard second-gen (Go 1.11 and above), this will be the 6 | // filepath to package main. 7 | var MainPath string 8 | -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_bindablekinds.yaml: -------------------------------------------------------------------------------- 1 | # The following patch adds a directive for certmanager to inject CA into the CRD 2 | apiVersion: apiextensions.k8s.io/v1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | annotations: 6 | cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) 7 | name: bindablekinds.binding.operators.coreos.com 8 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/partials/scenario-diagram-description-pgcluster.adoc: -------------------------------------------------------------------------------- 1 | [NOTE] 2 | ==== 3 | The PostgreSQL database in this scenario is deployed using the `PostgresCluster` resource provided by the https://operatorhub.io/operator/postgresql[Crunchy Postgres Operator from Crunchy Data] that requires the Operator Lifecycle Manager (OLM) to install and manage. 4 | ==== -------------------------------------------------------------------------------- /test/acceptance/resources/apps/sbo-generic-test-app/start_http: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ( 4 | echo "{" 5 | content="" 6 | for var in $(compgen -e); do 7 | [ ! -z "$content" ] && content+=",\n" 8 | content+="\"${var}\": \"${!var}\"" 9 | done 10 | echo -e "$content" 11 | echo "}" 12 | ) > /tmp/env.json 13 | 14 | exec /usr/sbin/lighttpd -D -f /etc/lighthttpd/lighthttpd.conf -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/code_location.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type CodeLocation struct { 8 | FileName string 9 | LineNumber int 10 | FullStackTrace string 11 | } 12 | 13 | func (codeLocation CodeLocation) String() string { 14 | return fmt.Sprintf("%s:%d", codeLocation.FileName, codeLocation.LineNumber) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/doc.go: -------------------------------------------------------------------------------- 1 | // +groupName=operators.coreos.com 2 | // +k8s:deepcopy-gen=package 3 | // +k8s:conversion-gen=github.com/operator-framework/operator-lifecycle-manager/pkg/api/apis/operators 4 | 5 | // Package v1alpha1 contains resources types for version v1alpha1 of the operators.coreos.com API group. 6 | package v1alpha1 7 | -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_servicebindings.yaml: -------------------------------------------------------------------------------- 1 | # The following patch adds a directive for certmanager to inject CA into the CRD 2 | apiVersion: apiextensions.k8s.io/v1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | annotations: 6 | cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) 7 | name: servicebindings.binding.operators.coreos.com 8 | -------------------------------------------------------------------------------- /config/rbac/opstree_redis_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: opstree-redis-viewer-role 5 | labels: 6 | servicebinding.io/controller: "true" 7 | rules: 8 | - apiGroups: 9 | - redis.redis.opstreelabs.in 10 | resources: 11 | - redis 12 | verbs: 13 | - get 14 | - list 15 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/controller-runtime/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md 2 | 3 | approvers: 4 | - controller-runtime-admins 5 | - controller-runtime-maintainers 6 | - controller-runtime-approvers 7 | reviewers: 8 | - controller-runtime-admins 9 | - controller-runtime-reviewers 10 | - controller-runtime-approvers 11 | -------------------------------------------------------------------------------- /config/rbac/percona_mysql_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: percona-mysql-viewer-role 5 | labels: 6 | servicebinding.io/controller: "true" 7 | rules: 8 | - apiGroups: 9 | - pxc.percona.com 10 | resources: 11 | - perconaxtradbclusters 12 | verbs: 13 | - get 14 | - list 15 | -------------------------------------------------------------------------------- /config/rbac/rabbitmq_operator_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: rabbitmq-operator-viewer-role 5 | labels: 6 | servicebinding.io/controller: "true" 7 | rules: 8 | - apiGroups: 9 | - rabbitmq.com 10 | resources: 11 | - rabbitmqclusters 12 | verbs: 13 | - get 14 | - list 15 | -------------------------------------------------------------------------------- /docs/userguide/modules/getting-started/pages/petclinic-pgcluster.adoc: -------------------------------------------------------------------------------- 1 | [#connecting-petclinic-app-to-oprtr-backd-postgresql-db] 2 | = Connecting PetClinic application to an Operator-backed PostgreSQL database 3 | :quickstart-namespace: my-petclinic 4 | :quickstart-db: pgcluster 5 | :quickstart-db-showname: an Operator-backed PostgreSQL database 6 | 7 | include::partial$petclinic-db.adoc[] 8 | -------------------------------------------------------------------------------- /test/charts/service-binding-operator/sbo.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: servicebinding.io/v1beta1 2 | kind: ServiceBinding 3 | metadata: 4 | name: test-sbo-chart-binding 5 | spec: 6 | workload: 7 | apiVersion: apps/v1 8 | kind: Deployment 9 | name: test-app 10 | service: 11 | apiVersion: v1 12 | kind: Secret 13 | name: provisioned-secret-1 14 | # end::service-binding[] -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: 1.15.x 8 | os: linux 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - cd ci 13 | - go run mage.go -v -w ../ crossBuild 14 | - go run mage.go -v -w ../ lint 15 | - go run mage.go -v -w ../ test 16 | -------------------------------------------------------------------------------- /test/operator-hub/subscription2.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: operators.coreos.com/v1alpha1 3 | kind: Subscription 4 | metadata: 5 | name: service-binding-operator 6 | namespace: openshift-operators 7 | spec: 8 | channel: 'beta' 9 | installPlanApproval: Automatic 10 | name: service-binding-operator 11 | source: community-operators 12 | sourceNamespace: openshift-marketplace 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /config/rbac/auth_proxy_service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | control-plane: service-binding-controller-manager 6 | name: controller-manager-metrics-service 7 | namespace: system 8 | spec: 9 | ports: 10 | - name: https 11 | port: 8443 12 | targetPort: https 13 | selector: 14 | control-plane: service-binding-controller-manager 15 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /config/rbac/cloud_native_postgres_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: cloud-native-postgres-viewer-role 5 | labels: 6 | servicebinding.io/controller: "true" 7 | rules: 8 | - apiGroups: 9 | - postgresql.k8s.enterprisedb.io 10 | resources: 11 | - clusters 12 | verbs: 13 | - get 14 | - list 15 | -------------------------------------------------------------------------------- /config/rbac/crunchy_postgres_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: crunchy-postgres-viewer-role 5 | labels: 6 | servicebinding.io/controller: "true" 7 | rules: 8 | - apiGroups: 9 | - postgres-operator.crunchydata.com 10 | resources: 11 | - postgresclusters 12 | verbs: 13 | - get 14 | - list 15 | -------------------------------------------------------------------------------- /config/samples/spec_v1alpha3_servicebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: servicebinding.io/v1alpha3 2 | kind: ServiceBinding 3 | metadata: 4 | name: servicebinding-sample 5 | spec: 6 | service: 7 | name: pg-instance 8 | apiVersion: postgresql.example.dev/v1alpha1 9 | kind: Database 10 | application: 11 | name: nodejs-rest-http-crud 12 | apiVersion: apps/v1 13 | kind: Deployment 14 | -------------------------------------------------------------------------------- /hack/check-python/measure-maintainability-index.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ./hack/check-python/prepare-env.sh 4 | 5 | [ "$NOVENV" == "1" ] || prepare_venv || exit 1 6 | 7 | SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )" 8 | 9 | for directory in ${SCRIPT_DIR}/.. $directories; do 10 | pushd "$directory" 11 | $PYTHON_VENV_DIR/bin/radon mi -s -i "$PYTHON_VENV_DIR" . 12 | popd 13 | done 14 | -------------------------------------------------------------------------------- /test/operator-hub/catalog_source.yaml: -------------------------------------------------------------------------------- 1 | # Ref. https://github.com/operator-framework/api/pkg/operators/v1alpha1 2 | apiVersion: operators.coreos.com/v1alpha1 3 | kind: CatalogSource 4 | metadata: 5 | name: my-catalog 6 | namespace: openshift-operator-lifecycle-manager 7 | spec: 8 | sourceType: grpc 9 | image: REPLACE_IMAGE 10 | displayName: Community Operators 11 | publisher: Red Hat 12 | -------------------------------------------------------------------------------- /vendor/github.com/spf13/pflag/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.9.x 7 | - 1.10.x 8 | - 1.11.x 9 | - tip 10 | 11 | matrix: 12 | allow_failures: 13 | - go: tip 14 | 15 | install: 16 | - go get golang.org/x/lint/golint 17 | - export PATH=$GOPATH/bin:$PATH 18 | - go install ./... 19 | 20 | script: 21 | - verify/all.sh -v 22 | - go test ./... 23 | -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_spec_clusterworkloadresourcemappings.yaml: -------------------------------------------------------------------------------- 1 | # The following patch adds a directive for certmanager to inject CA into the CRD 2 | apiVersion: apiextensions.k8s.io/v1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | annotations: 6 | cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) 7 | name: clusterworkloadresourcemappings.servicebinding.io 8 | -------------------------------------------------------------------------------- /hack/check-python/measure-cyclomatic-complexity.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . ./hack/check-python/prepare-env.sh 4 | 5 | [ "$NOVENV" == "1" ] || prepare_venv || exit 1 6 | 7 | SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )" 8 | 9 | for directory in ${SCRIPT_DIR}/.. $directories; do 10 | pushd "$directory" 11 | $PYTHON_VENV_DIR/bin/radon cc -s -a -i "$PYTHON_VENV_DIR" . 12 | popd 13 | done 14 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/checklicense.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | ERROR_COUNT=0 4 | while read -r file 5 | do 6 | case "$(head -1 "${file}")" in 7 | *"Copyright (c) "*" Uber Technologies, Inc.") 8 | # everything's cool 9 | ;; 10 | *) 11 | echo "$file is missing license header." 12 | (( ERROR_COUNT++ )) 13 | ;; 14 | esac 15 | done < <(git ls-files "*\.go") 16 | 17 | exit $ERROR_COUNT 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.12 6 | // +build !go1.12 7 | 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 9 | // and earlier (see https://golang.org/issue/23311). 10 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # Eclipse files 5 | .classpath 6 | .project 7 | .settings/** 8 | 9 | # Idea files 10 | .idea/** 11 | .idea/ 12 | 13 | # Emacs save files 14 | *~ 15 | 16 | # Vim-related files 17 | [._]*.s[a-w][a-z] 18 | [._]s[a-w][a-z] 19 | *.un~ 20 | Session.vim 21 | .netrwhist 22 | 23 | # Go test binaries 24 | *.test 25 | -------------------------------------------------------------------------------- /docs/devguide/modules/install-sbo/pages/install-on-minikube.adoc: -------------------------------------------------------------------------------- 1 | = Install on Minikube 2 | 3 | [#setup-minikube] 4 | include::partial$minikube/setup-minikube.adoc[] 5 | 6 | [#olm-install] 7 | include::partial$minikube/olm-install.adoc[] 8 | 9 | [#helm-install] 10 | include::partial$minikube/helm-install.adoc[] 11 | 12 | [#manifests-install] 13 | include::partial$minikube/manifests-install.adoc[] 14 | 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && go1.9 6 | // +build windows,go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/appengine/internal/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Google Inc. All rights reserved. 2 | // Use of this source code is governed by the Apache 2.0 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build appengine 6 | 7 | package internal 8 | 9 | import ( 10 | "appengine_internal" 11 | ) 12 | 13 | func Main() { 14 | MainPath = "" 15 | appengine_internal.Main() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: arm64 3 | dist: focal 4 | go: 1.15.x 5 | script: 6 | - diff -u <(echo -n) <(gofmt -d *.go) 7 | - diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON) 8 | - GO111MODULE=on go vet . 9 | - GO111MODULE=on go test -v -race ./... 10 | - git diff --exit-code 11 | install: 12 | - GO111MODULE=off go get golang.org/x/lint/golint 13 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/xxhash_asm.go: -------------------------------------------------------------------------------- 1 | //go:build (amd64 || arm64) && !appengine && gc && !purego 2 | // +build amd64 arm64 3 | // +build !appengine 4 | // +build gc 5 | // +build !purego 6 | 7 | package xxhash 8 | 9 | // Sum64 computes the 64-bit xxHash digest of b. 10 | // 11 | //go:noescape 12 | func Sum64(b []byte) uint64 13 | 14 | //go:noescape 15 | func writeBlocks(d *Digest, b []byte) int 16 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build !go1.18 8 | // +build !go1.18 9 | 10 | package idna 11 | 12 | const transitionalLookup = true 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.12 6 | // +build go1.12 7 | 8 | package impl 9 | 10 | import "reflect" 11 | 12 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } 13 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | 6 | end_of_line = LF 7 | insert_final_newline = true 8 | trim_trailing_whitespace = true 9 | 10 | indent_style = space 11 | indent_size = 4 12 | 13 | max_line_length = 101 14 | 15 | [*.yml,*.yaml,*.toml] 16 | indent_size = 2 17 | 18 | [*.md] 19 | indent_size = 2 20 | 21 | [*.go] 22 | indent_style = tab 23 | 24 | [Makefile] 25 | indent_style = tab 26 | -------------------------------------------------------------------------------- /config/samples/spec_v1beta1_servicebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: servicebinding.io/v1beta1 2 | kind: ServiceBinding 3 | metadata: 4 | name: servicebinding-sample 5 | spec: 6 | type: postgres 7 | service: 8 | name: pg-instance 9 | apiVersion: postgresql.example.dev/v1alpha1 10 | kind: Database 11 | workload: 12 | name: nodejs-rest-http-crud 13 | apiVersion: apps/v1 14 | kind: Deployment 15 | -------------------------------------------------------------------------------- /test/acceptance/resources/apps/sbo-generic-test-app/README.md: -------------------------------------------------------------------------------- 1 | Follow instructions on https://github.com/docker/buildx#building-multi-platform-images 2 | and https://docs.docker.com/buildx/working-with-buildx/ 3 | 4 | Build and push with 5 | 6 | ```shell 7 | docker buildx build --push \ 8 | --platform "linux/amd64,linux/ppc64le,linux/arm64,linux/s390x" \ 9 | -t quay.io/service-binding/generic-test-app:YYYYMMDD . 10 | ``` -------------------------------------------------------------------------------- /test/performance/user-workloads/valid/sbo-test.sbr.spec.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: servicebinding.io/v1beta1 3 | kind: ServiceBinding 4 | metadata: 5 | name: service-binding-cron-valid 6 | spec: 7 | type: busybox 8 | service: 9 | apiVersion: v1 10 | kind: Service 11 | name: sbo-perf-svc-valid 12 | workload: 13 | apiVersion: batch/v1 14 | kind: CronJob 15 | name: sbo-perf-cronjob-valid 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/output_interceptor.go: -------------------------------------------------------------------------------- 1 | package remote 2 | 3 | import "os" 4 | 5 | /* 6 | The OutputInterceptor is used by the ForwardingReporter to 7 | intercept and capture all stdin and stderr output during a test run. 8 | */ 9 | type OutputInterceptor interface { 10 | StartInterceptingOutput() error 11 | StopInterceptingAndReturnOutput() (string, error) 12 | StreamTo(*os.File) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.18 6 | // +build !go1.18 7 | 8 | package http2 9 | 10 | import ( 11 | "crypto/tls" 12 | "net" 13 | ) 14 | 15 | func tlsUnderlyingConn(tc *tls.Conn) net.Conn { 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /config/rbac/bindablekinds_viewer_rolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: bindablekinds-viewer-rolebinding 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: service-binding-bindablekinds-viewer-role 9 | subjects: 10 | - kind: Group 11 | name: system:authenticated 12 | apiGroup: rbac.authorization.k8s.io 13 | -------------------------------------------------------------------------------- /test/performance/user-workloads/invalid/sbo-test.sbr.spec.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: servicebinding.io/v1beta1 3 | kind: ServiceBinding 4 | metadata: 5 | name: service-binding-cron-invalid 6 | spec: 7 | type: busybox 8 | service: 9 | apiVersion: v1 10 | kind: Service 11 | name: sbo-perf-svc-invalid 12 | workload: 13 | apiVersion: batch/v1 14 | kind: CronJob 15 | name: sbo-perf-cronjob-invalid 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.18 6 | // +build go1.18 7 | 8 | package http2 9 | 10 | import ( 11 | "crypto/tls" 12 | "net" 13 | ) 14 | 15 | func tlsUnderlyingConn(tc *tls.Conn) net.Conn { 16 | return tc.NetConn() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/errors/is_go113.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.13 6 | // +build go1.13 7 | 8 | package errors 9 | 10 | import "errors" 11 | 12 | // Is is errors.Is. 13 | func Is(err, target error) bool { return errors.Is(err, target) } 14 | -------------------------------------------------------------------------------- /config/manager/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - manager.yaml 3 | 4 | generatorOptions: 5 | disableNameSuffixHash: true 6 | 7 | configMapGenerator: 8 | - files: 9 | - controller_manager_config.yaml 10 | name: manager-config 11 | apiVersion: kustomize.config.k8s.io/v1beta1 12 | kind: Kustomization 13 | images: 14 | - name: controller 15 | newName: quay.io/redhat-developer/servicebinding-operator 16 | newTag: e4860168 17 | -------------------------------------------------------------------------------- /config/manifests/manager_watch_namespace_patch.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: operator 5 | namespace: system 6 | spec: 7 | template: 8 | spec: 9 | containers: 10 | - name: manager 11 | env: 12 | - name: WATCH_NAMESPACE 13 | valueFrom: 14 | fieldRef: 15 | fieldPath: metadata.annotations['olm.targetNamespaces'] 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/oauth2/internal/client_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build appengine 6 | // +build appengine 7 | 8 | package internal 9 | 10 | import "google.golang.org/appengine/urlfetch" 11 | 12 | func init() { 13 | appengineClientHook = urlfetch.Client 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/japanese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /charts/service-binding-operator/values.yaml: -------------------------------------------------------------------------------- 1 | image: 2 | pullPolicy: IfNotPresent 3 | repository: quay.io/redhat-developer 4 | testRepository: quay.io/service-binding 5 | keepTestResources: false 6 | kubernetes: 7 | platform: vanilla 8 | # As part of helm test we clear up the deploymemt,service binding resource and secret created. If a user is interested to view them , then he has to install the chart with keepTestResources set to true. 9 | -------------------------------------------------------------------------------- /config/rbac/bindablekinds_editor_role.yaml: -------------------------------------------------------------------------------- 1 | # permissions for end users to edit bindablekinds. 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRole 4 | metadata: 5 | name: bindablekinds-editor-role 6 | rules: 7 | - apiGroups: 8 | - binding.operators.coreos.com 9 | resources: 10 | - bindablekinds 11 | verbs: 12 | - create 13 | - delete 14 | - get 15 | - list 16 | - patch 17 | - update 18 | - watch 19 | -------------------------------------------------------------------------------- /hack/stop-sbo-local.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | _killall(){ 4 | which killall &> /dev/null 5 | if [ $? -eq 0 ]; then 6 | killall $1 7 | else 8 | for i in "$(ps -l | grep $1)"; do if [ -n "$i" ]; then kill $(echo "$i" | sed -e 's,\s\+,#,g' | cut -d "#" -f4); fi; done 9 | fi 10 | } 11 | 12 | # Kill SBO running locally (no matter how it was started); 13 | _killall bin/manager 14 | _killall manager 15 | 16 | exit 0 -------------------------------------------------------------------------------- /config/rbac/percona_mongodb_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: percona-mongodb-view 5 | labels: 6 | servicebinding.io/controller: "true" 7 | rules: 8 | - apiGroups: 9 | - psmdb.percona.com 10 | resources: 11 | - perconaservermongodbs 12 | - perconaservermongodbs/status 13 | verbs: 14 | - get 15 | - watch 16 | - list 17 | -------------------------------------------------------------------------------- /docs/devguide/modules/install-sbo/partials/openshift/external-cr/manifests-install.adoc: -------------------------------------------------------------------------------- 1 | === Install with manifests 2 | 3 | 1. Build and push the operator's image 4 | + 5 | [source,bash] 6 | ---- 7 | export OPERATOR_REPO_REF=$REGISTRY/service-binding-operator/service-binding-operator 8 | make image push-image -o registry-login 9 | ---- 10 | 11 | 2. Deploy the operator 12 | + 13 | [source,bash] 14 | ---- 15 | make deploy 16 | ---- 17 | 18 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/bench_test.sh: -------------------------------------------------------------------------------- 1 | #go test -run=none -file bench_test.go -test.bench . -cpuprofile=bench_test.out 2 | 3 | go test -c 4 | ./go-restful.test -test.run=none -test.cpuprofile=tmp.prof -test.bench=BenchmarkMany 5 | ./go-restful.test -test.run=none -test.cpuprofile=curly.prof -test.bench=BenchmarkManyCurly 6 | 7 | #go tool pprof go-restful.test tmp.prof 8 | go tool pprof go-restful.test curly.prof 9 | 10 | 11 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/leafnodes/interfaces.go: -------------------------------------------------------------------------------- 1 | package leafnodes 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/types" 5 | ) 6 | 7 | type BasicNode interface { 8 | Type() types.SpecComponentType 9 | Run() (types.SpecState, types.SpecFailure) 10 | CodeLocation() types.CodeLocation 11 | } 12 | 13 | type SubjectNode interface { 14 | BasicNode 15 | 16 | Text() string 17 | Flag() types.FlagType 18 | Samples() int 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/typeparams/enabled_go117.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.18 6 | // +build !go1.18 7 | 8 | package typeparams 9 | 10 | // Enabled reports whether type parameters are enabled in the current build 11 | // environment. 12 | const Enabled = false 13 | -------------------------------------------------------------------------------- /config/rbac/bindablekinds_viewer_role.yaml: -------------------------------------------------------------------------------- 1 | # permissions for end users to view bindablekinds. 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRole 4 | metadata: 5 | labels: 6 | rbac.authorization.k8s.io/aggregate-to-view: "true" 7 | name: bindablekinds-viewer-role 8 | rules: 9 | - apiGroups: 10 | - binding.operators.coreos.com 11 | resources: 12 | - bindablekinds 13 | verbs: 14 | - get 15 | - list 16 | - watch 17 | -------------------------------------------------------------------------------- /config/samples/kustomization.yaml: -------------------------------------------------------------------------------- 1 | ## Append samples you want in your CSV to this file as resources ## 2 | resources: 3 | - operators_v1alpha1_bindablekinds.yaml 4 | - operators_v1alpha1_servicebinding.yaml 5 | - spec_v1alpha3_clusterworkloadresourcemapping.yaml 6 | - spec_v1alpha3_servicebinding.yaml 7 | - spec_v1beta1_clusterworkloadresourcemapping.yaml 8 | - spec_v1beta1_servicebinding.yaml 9 | # +kubebuilder:scaffold:manifestskustomizesamples 10 | -------------------------------------------------------------------------------- /hack/test-cleanup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -xe 2 | 3 | [ ! -z "$TEST_NAMESPACE" ] && [ -z "$(kubectl get ns "$TEST_NAMESPACE" -o jsonpath="{.metadata.name}" --ignore-not-found)" ] && exit 0 4 | 5 | HACK_DIR=${HACK_DIR:-$(dirname $0)} 6 | 7 | # Remove SBR finalizers 8 | NAMESPACE=$TEST_NAMESPACE $HACK_DIR/remove-sbr-finalizers.sh 9 | 10 | [ ! -z "$TEST_NAMESPACE" ] && kubectl delete namespace ${TEST_NAMESPACE} --ignore-not-found --timeout=45s --wait 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/simplifiedchinese/all.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.10 6 | // +build go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 12 | } 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /.github/actions/setup-podman/opm: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | opm=$(readlink -m bin/opm) 3 | podman="/usr/bin/podman" 4 | local_image="localhost:5000/sbo:bundle" 5 | 6 | case "$1" in 7 | render) 8 | img=$2 9 | "$podman" tag $img $local_image 10 | "$podman" push --tls-verify=false $local_image 11 | "$opm" render $local_image --output=yaml --use-http | sed -e "s,$local_image,$img,g" 12 | ;; 13 | *) 14 | "$opm" "$@" 15 | ;; 16 | esac 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/testsuite/vendor_check_go16.go: -------------------------------------------------------------------------------- 1 | // +build go1.6 2 | 3 | package testsuite 4 | 5 | import ( 6 | "os" 7 | "path" 8 | ) 9 | 10 | // in 1.6 the vendor directory became the default go behaviour, so now 11 | // check if its disabled. 12 | func vendorExperimentCheck(dir string) bool { 13 | vendorExperiment := os.Getenv("GO15VENDOREXPERIMENT") 14 | return vendorExperiment != "0" && path.Base(dir) == "vendor" 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || linux || solaris || zos 6 | // +build aix linux solaris zos 7 | 8 | package term 9 | 10 | import "golang.org/x/sys/unix" 11 | 12 | const ioctlReadTermios = unix.TCGETS 13 | const ioctlWriteTermios = unix.TCSETS 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /config/samples/operators_v1alpha1_servicebinding.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: binding.operators.coreos.com/v1alpha1 3 | kind: ServiceBinding 4 | metadata: 5 | name: example-servicebinding 6 | spec: 7 | services: 8 | - name: pg-instance 9 | group: postgresql.example.dev 10 | kind: Database 11 | version: v1alpha1 12 | application: 13 | name: nodejs-rest-http-crud 14 | group: apps 15 | version: v1 16 | resource: deployments 17 | -------------------------------------------------------------------------------- /contributors.txt: -------------------------------------------------------------------------------- 1 | Contributors to the Service Binding Operator Project (in alphabetic order) 2 | 3 | Ben Aissi, Akram 4 | Bhattacharya, Pradeepto 5 | Bobade, Vibhav 6 | Bose, Shoubhik 7 | Charan Kundu, Bama 8 | DiMaggio, Len 9 | Fernandes, Otávio 10 | Jagrut, Pratik 11 | Macik, Pavel 12 | Muthukadan, Baiju 13 | Sadeghianfar, Siamak 14 | Sharma, Avni 15 | Shikhar, Dhriti 16 | Shinde, Akash 17 | Singh, Jitendar 18 | Sutton, Igor 19 | Varakantam, Ranjith 20 | -------------------------------------------------------------------------------- /vendor/github.com/golang/mock/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoMock authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Alex Reece 12 | Google Inc. 13 | -------------------------------------------------------------------------------- /vendor/github.com/emicklei/go-restful/v3/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | | Version | Supported | 6 | | ------- | ------------------ | 7 | | v3.7.x | :white_check_mark: | 8 | | < v3.0.1 | :x: | 9 | 10 | ## Reporting a Vulnerability 11 | 12 | Create an Issue and put the label `[security]` in the title of the issue. 13 | Valid reported security issues are expected to be solved within a week. 14 | -------------------------------------------------------------------------------- /config/samples/spec_v1alpha3_clusterworkloadresourcemapping.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: servicebinding.io/v1alpha3 2 | kind: ClusterWorkloadResourceMapping 3 | metadata: 4 | name: cronjobs.batch 5 | spec: 6 | versions: 7 | - version: "*" 8 | volumes: .spec.jobTemplate.spec.template.spec.volumes 9 | containers: 10 | - path: .spec.jobTemplate.spec.template.spec.containers[*] 11 | - path: .spec.jobTemplate.spec.template.spec.initContainers[*] 12 | -------------------------------------------------------------------------------- /config/samples/spec_v1beta1_clusterworkloadresourcemapping.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: servicebinding.io/v1beta1 2 | kind: ClusterWorkloadResourceMapping 3 | metadata: 4 | name: cronjobs.batch 5 | spec: 6 | versions: 7 | - version: "*" 8 | volumes: .spec.jobTemplate.spec.template.spec.volumes 9 | containers: 10 | - path: .spec.jobTemplate.spec.template.spec.containers[*] 11 | - path: .spec.jobTemplate.spec.template.spec.initContainers[*] 12 | -------------------------------------------------------------------------------- /hack/perf/reset.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -x 2 | 3 | pushd $(dirname $0) 4 | source ./env.sh 5 | 6 | if [ -d ../../test/performance/toolchain-e2e.git ]; then 7 | pushd ../../test/performance/toolchain-e2e.git 8 | make clean-e2e-resources; 9 | popd; 10 | fi 11 | 12 | oc delete pod $(oc get pods -n openshift-operators -o json| jq -rc '.items[] | select(.metadata.name | startswith("service-binding-operator")).metadata.name') -n openshift-operators 13 | popd 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | // +build generate 7 | 8 | package windows 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 11 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/yaml_go110.go: -------------------------------------------------------------------------------- 1 | // This file contains changes that are only compatible with go 1.10 and onwards. 2 | 3 | // +build go1.10 4 | 5 | package yaml 6 | 7 | import "encoding/json" 8 | 9 | // DisallowUnknownFields configures the JSON decoder to error out if unknown 10 | // fields come along, instead of dropping them by default. 11 | func DisallowUnknownFields(d *json.Decoder) *json.Decoder { 12 | d.DisallowUnknownFields() 13 | return d 14 | } 15 | -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_bindablekinds.yaml: -------------------------------------------------------------------------------- 1 | # The following patch enables a conversion webhook for the CRD 2 | apiVersion: apiextensions.k8s.io/v1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | name: bindablekinds.binding.operators.coreos.com 6 | spec: 7 | conversion: 8 | strategy: Webhook 9 | webhook: 10 | clientConfig: 11 | service: 12 | namespace: system 13 | name: webhook-service 14 | path: /convert 15 | -------------------------------------------------------------------------------- /docs/devguide/modules/install-sbo/partials/openshift/intro.adoc: -------------------------------------------------------------------------------- 1 | You can use a https://developers.redhat.com/products/openshift/getting-started[managed Openshift cluster, window="_blank"] or a https://github.com/code-ready/crc[locally installed one, window="_blank"]. 2 | 3 | NOTE: You need _Administrator_ access to the cluster. 4 | 5 | You may prefer to use the Openshift's internal Container Registry or an external one. 6 | In the following, you find instructions for both. 7 | 8 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /charts/service-binding-operator/templates/rolebinding.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: RoleBinding 4 | metadata: 5 | name: service-binding-leader-election-rolebinding 6 | namespace: {{.Release.Namespace}} 7 | roleRef: 8 | apiGroup: rbac.authorization.k8s.io 9 | kind: Role 10 | name: service-binding-leader-election-role 11 | subjects: 12 | - kind: ServiceAccount 13 | name: service-binding-operator 14 | namespace: {{.Release.Namespace}} -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_servicebindings.yaml: -------------------------------------------------------------------------------- 1 | # The following patch enables a conversion webhook for the CRD 2 | apiVersion: apiextensions.k8s.io/v1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | name: servicebindings.binding.operators.coreos.com 6 | spec: 7 | conversion: 8 | strategy: Webhook 9 | webhook: 10 | clientConfig: 11 | service: 12 | namespace: system 13 | name: webhook-service 14 | path: /convert 15 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/error.go: -------------------------------------------------------------------------------- 1 | package jlexer 2 | 3 | import "fmt" 4 | 5 | // LexerError implements the error interface and represents all possible errors that can be 6 | // generated during parsing the JSON data. 7 | type LexerError struct { 8 | Reason string 9 | Offset int 10 | Data string 11 | } 12 | 13 | func (l *LexerError) Error() string { 14 | return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/attributes_slice.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "encoding/xml" 5 | "strings" 6 | ) 7 | 8 | type attributesSlice []xml.Attr 9 | 10 | func (attrs attributesSlice) Len() int { return len(attrs) } 11 | func (attrs attributesSlice) Less(i, j int) bool { 12 | return strings.Compare(attrs[i].Name.Local, attrs[j].Name.Local) == -1 13 | } 14 | func (attrs attributesSlice) Swap(i, j int) { attrs[i], attrs[j] = attrs[j], attrs[i] } 15 | -------------------------------------------------------------------------------- /.github/actions/setup-podman/podman: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cmd="/usr/bin/podman" 3 | case "$1" in 4 | push) 5 | prefix=${2%/*} 6 | img=${2#${prefix}} 7 | "$cmd" push --tls-verify=false $2 docker://localhost:5000${img} 8 | ;; 9 | inspect) 10 | prefix=${3%/*} 11 | img=${3#${prefix}} 12 | echo $prefix${img%:*}@$(skopeo inspect --tls-verify=false docker://localhost:5000${img} | jq -r .Digest) 13 | ;; 14 | *) 15 | "$cmd" "$@" 16 | ;; 17 | esac 18 | -------------------------------------------------------------------------------- /config/rbac/clusterworkloadresourcemappings_viewer_rolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: clusterworkloadresourcemappings-viewer-rolebinding 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: service-binding-clusterworkloadresourcemappings-viewer-role 9 | subjects: 10 | - kind: Group 11 | name: system:authenticated 12 | apiGroup: rbac.authorization.k8s.io 13 | -------------------------------------------------------------------------------- /config/scorecard/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - bases/config.yaml 3 | patchesJson6902: 4 | - path: patches/basic.config.yaml 5 | target: 6 | group: scorecard.operatorframework.io 7 | version: v1alpha3 8 | kind: Configuration 9 | name: config 10 | - path: patches/olm.config.yaml 11 | target: 12 | group: scorecard.operatorframework.io 13 | version: v1alpha3 14 | kind: Configuration 15 | name: config 16 | # +kubebuilder:scaffold:patchesJson6902 17 | -------------------------------------------------------------------------------- /test/operator-hub/subscription.yaml: -------------------------------------------------------------------------------- 1 | # Ref. https://github.com/operator-framework/api/pkg/operators/v1alpha1 2 | apiVersion: operators.coreos.com/v1alpha1 3 | kind: Subscription 4 | metadata: 5 | name: service-binding-operator 6 | namespace: openshift-operators 7 | spec: 8 | channel: alpha 9 | installPlanApproval: Manual 10 | name: service-binding-operator 11 | source: example-operators 12 | sourceNamespace: openshift-marketplace 13 | startingCSV: REPLACE_CSV_VERSION 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - dims 5 | - lavalamp 6 | - smarterclayton 7 | - deads2k 8 | - sttts 9 | - liggitt 10 | - caesarxuchao 11 | reviewers: 12 | - dims 13 | - thockin 14 | - lavalamp 15 | - smarterclayton 16 | - wojtek-t 17 | - deads2k 18 | - derekwaynecarr 19 | - caesarxuchao 20 | - mikedanese 21 | - liggitt 22 | - gmarek 23 | - sttts 24 | - ncdc 25 | - tallclair 26 | labels: 27 | - sig/api-machinery 28 | -------------------------------------------------------------------------------- /charts/service-binding-operator/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /config/rbac/clusterworkloadresourcemappings_viewer_role.yaml: -------------------------------------------------------------------------------- 1 | # permissions for end users to view bindablekinds. 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRole 4 | metadata: 5 | labels: 6 | rbac.authorization.k8s.io/aggregate-to-view: "true" 7 | name: clusterworkloadresourcemappings-viewer-role 8 | rules: 9 | - apiGroups: 10 | - servicebinding.io 11 | resources: 12 | - clusterworkloadresourcemappings 13 | verbs: 14 | - get 15 | - list 16 | - watch 17 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.go: -------------------------------------------------------------------------------- 1 | // This file is included to the build if any of the buildtags below 2 | // are defined. Refer to README notes for more details. 3 | 4 | //+build easyjson_nounsafe appengine 5 | 6 | package jlexer 7 | 8 | // bytesToStr creates a string normally from []byte 9 | // 10 | // Note that this method is roughly 1.5x slower than using the 'unsafe' method. 11 | func bytesToStr(data []byte) string { 12 | return string(data) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/global/init.go: -------------------------------------------------------------------------------- 1 | package global 2 | 3 | import ( 4 | "time" 5 | 6 | "github.com/onsi/ginkgo/internal/failer" 7 | "github.com/onsi/ginkgo/internal/suite" 8 | ) 9 | 10 | const DefaultTimeout = time.Duration(1 * time.Second) 11 | 12 | var Suite *suite.Suite 13 | var Failer *failer.Failer 14 | 15 | func init() { 16 | InitializeGlobals() 17 | } 18 | 19 | func InitializeGlobals() { 20 | Failer = failer.New() 21 | Suite = suite.New(Failer) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd openbsd solaris 7 | 8 | package unix 9 | 10 | var mapper = &mmapper{ 11 | active: make(map[*byte][]byte), 12 | mmap: mmap, 13 | munmap: munmap, 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin || dragonfly || freebsd || netbsd || openbsd 6 | // +build darwin dragonfly freebsd netbsd openbsd 7 | 8 | package term 9 | 10 | import "golang.org/x/sys/unix" 11 | 12 | const ioctlReadTermios = unix.TIOCGETA 13 | const ioctlWriteTermios = unix.TIOCSETA 14 | -------------------------------------------------------------------------------- /config/certmanager/kustomizeconfig.yaml: -------------------------------------------------------------------------------- 1 | # This configuration is for teaching kustomize how to update name ref and var substitution 2 | nameReference: 3 | - kind: Issuer 4 | group: cert-manager.io 5 | fieldSpecs: 6 | - kind: Certificate 7 | group: cert-manager.io 8 | path: spec/issuerRef/name 9 | 10 | varReference: 11 | - kind: Certificate 12 | group: cert-manager.io 13 | path: spec/commonName 14 | - kind: Certificate 15 | group: cert-manager.io 16 | path: spec/dnsNames 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.10 6 | // +build !go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | if !t.isRTL() { 12 | return true 13 | } 14 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 15 | } 16 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/controller-runtime/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # editor and IDE paraphernalia 15 | .idea 16 | *.swp 17 | *.swo 18 | *~ 19 | 20 | # Vscode files 21 | .vscode 22 | 23 | # Tools binaries. 24 | hack/tools/bin 25 | 26 | junit-report.xml 27 | /artifacts -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname resolveTypeOff reflect.resolveTypeOff 10 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 11 | 12 | //go:linkname makemap reflect.makemap 13 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 14 | 15 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 16 | return makemap(rtype, cap) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/go.uber.org/zap/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | vendor 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | *.pprof 27 | *.out 28 | *.log 29 | 30 | /bin 31 | cover.out 32 | cover.html 33 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/controller-runtime/pkg/internal/httpserver/server.go: -------------------------------------------------------------------------------- 1 | package httpserver 2 | 3 | import ( 4 | "net/http" 5 | "time" 6 | ) 7 | 8 | // New returns a new server with sane defaults. 9 | func New(handler http.Handler) *http.Server { 10 | return &http.Server{ 11 | Handler: handler, 12 | MaxHeaderBytes: 1 << 20, 13 | IdleTimeout: 90 * time.Second, // matches http.DefaultTransport keep-alive timeout 14 | ReadHeaderTimeout: 32 * time.Second, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build go1.18 8 | // +build go1.18 9 | 10 | package idna 11 | 12 | // Transitional processing is disabled by default in Go 1.18. 13 | // https://golang.org/issue/47510 14 | const transitionalLookup = false 15 | -------------------------------------------------------------------------------- /hack/check-python/prepare-env.sh: -------------------------------------------------------------------------------- 1 | directories=${directories:-"test/acceptance/features test/performance"} 2 | pass=0 3 | fail=0 4 | 5 | export PYTHON_VENV_DIR=${PYTHON_VENV_DIR:-venv} 6 | 7 | function prepare_venv() { 8 | python3 -m venv "$PYTHON_VENV_DIR" && source "$PYTHON_VENV_DIR/bin/activate" 9 | for req in $(find . -name 'requirements.txt'); do 10 | python3 "$(which pip3)" install -q -r $req; 11 | done 12 | python3 "$(which pip3)" install -q -r $(dirname $0)/requirements.txt 13 | } 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package genid contains constants for declarations in descriptor.proto 6 | // and the well-known types. 7 | package genid 8 | 9 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" 12 | -------------------------------------------------------------------------------- /samples/apps/spring-elasticsearch/productsearch-elastic-es-sed-binding.yaml: -------------------------------------------------------------------------------- 1 | # tag::service-binding[] 2 | apiVersion: binding.operators.coreos.com/v1alpha1 3 | kind: ServiceBinding 4 | metadata: 5 | name: productsearch-elastic-es-sed 6 | spec: 7 | application: 8 | group: apps 9 | name: productsearch 10 | resource: deployments 11 | version: v1 12 | services: 13 | - group: '' 14 | kind: Secret 15 | name: io.servicebinding.elastic-es-sed 16 | version: v1 17 | # end::service-binding[] 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func NewColorable(file *os.File) io.Writer { 11 | if file == nil { 12 | panic("nil passed instead of *os.File to NewColorable()") 13 | } 14 | 15 | return file 16 | } 17 | 18 | func NewColorableStdout() io.Writer { 19 | return os.Stdout 20 | } 21 | 22 | func NewColorableStderr() io.Writer { 23 | return os.Stderr 24 | } 25 | -------------------------------------------------------------------------------- /samples/apps/spring-petclinic/petclinic-postgresql-binding.yaml: -------------------------------------------------------------------------------- 1 | # tag::service-binding[] 2 | apiVersion: binding.operators.coreos.com/v1alpha1 3 | kind: ServiceBinding 4 | metadata: 5 | name: 6 | spring-petclinic-postgresql 7 | spec: 8 | services: 9 | - group: apps 10 | version: v1 11 | kind: Deployment 12 | name: spring-petclinic-postgresql 13 | application: 14 | name: spring-petclinic 15 | group: apps 16 | version: v1 17 | resource: deployments 18 | # end::service-binding[] 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | // SysvShmCtl performs control operations on the shared memory segment 11 | // specified by id. 12 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 13 | return shmctl(id, cmd, desc) 14 | } 15 | -------------------------------------------------------------------------------- /charts/service-binding-operator/templates/certificate.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: cert-manager.io/v1 3 | kind: Certificate 4 | metadata: 5 | name: service-binding-service-cert 6 | namespace: {{.Release.Namespace}} 7 | spec: 8 | dnsNames: 9 | - service-binding-webhook-service.service-binding-operator.svc 10 | - service-binding-webhook-service.service-binding-operator.svc.cluster.local 11 | issuerRef: 12 | kind: Issuer 13 | name: service-binding-selfsigned-issuer 14 | secretName: service-binding-operator-service-cert -------------------------------------------------------------------------------- /test/acceptance/resources/apps/sbo-generic-test-app/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.12 2 | 3 | RUN apk update && \ 4 | apk add --no-cache \ 5 | lighttpd \ 6 | bash \ 7 | postgresql-client \ 8 | mysql-client \ 9 | jq && \ 10 | rm -rf /var/cache/apk/* 11 | 12 | RUN chmod -R go+rwx /run /var 13 | 14 | COPY conf/* /etc/lighthttpd/ 15 | COPY start_http /bin/ 16 | COPY env.sh /bin/ 17 | COPY postgres-ready.sh /bin/ 18 | COPY mysql-ready.sh /bin/ 19 | 20 | EXPOSE 8080 21 | 22 | ENTRYPOINT ["/bin/start_http"] 23 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/xxhash_safe.go: -------------------------------------------------------------------------------- 1 | //go:build appengine 2 | // +build appengine 3 | 4 | // This file contains the safe implementations of otherwise unsafe-using code. 5 | 6 | package xxhash 7 | 8 | // Sum64String computes the 64-bit xxHash digest of s. 9 | func Sum64String(s string) uint64 { 10 | return Sum64([]byte(s)) 11 | } 12 | 13 | // WriteString adds more data to d. It always returns len(s), nil. 14 | func (d *Digest) WriteString(s string) (n int, err error) { 15 | return d.Write([]byte(s)) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.5 6 | // +build go1.5 7 | 8 | package plan9 9 | 10 | import "syscall" 11 | 12 | func fixwd() { 13 | syscall.Fixwd() 14 | } 15 | 16 | func Getwd() (wd string, err error) { 17 | return syscall.Getwd() 18 | } 19 | 20 | func Chdir(path string) error { 21 | return syscall.Chdir(path) 22 | } 23 | -------------------------------------------------------------------------------- /samples/apps/spring-elasticsearch/productsearch-elasticsearch-binding.yaml: -------------------------------------------------------------------------------- 1 | # tag::service-binding[] 2 | apiVersion: binding.operators.coreos.com/v1alpha1 3 | kind: ServiceBinding 4 | metadata: 5 | name: productsearch-elasticsearch 6 | spec: 7 | application: 8 | group: apps 9 | name: productsearch 10 | resource: deployments 11 | version: v1 12 | services: 13 | - group: elasticsearch.k8s.elastic.co 14 | kind: Elasticsearch 15 | name: productsearch-es 16 | version: v1 17 | # end::service-binding[] 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 1m 3 | tests: true 4 | 5 | linters: 6 | disable-all: true 7 | enable: 8 | - asciicheck 9 | - errcheck 10 | - forcetypeassert 11 | - gocritic 12 | - gofmt 13 | - goimports 14 | - gosimple 15 | - govet 16 | - ineffassign 17 | - misspell 18 | - revive 19 | - staticcheck 20 | - typecheck 21 | - unused 22 | 23 | issues: 24 | exclude-use-default: false 25 | max-issues-per-linter: 0 26 | max-same-issues: 10 27 | -------------------------------------------------------------------------------- /vendor/github.com/google/gnostic-models/extensions/README.md: -------------------------------------------------------------------------------- 1 | # Extensions 2 | 3 | **Extension Support is experimental.** 4 | 5 | This directory contains support code for building Gnostic extensio handlers and 6 | associated examples. 7 | 8 | Extension handlers can be used to compile vendor or specification extensions 9 | into protocol buffer structures. 10 | 11 | Like plugins, extension handlers are built as separate executables. Extension 12 | bodies are written to extension handlers as serialized 13 | ExtensionHandlerRequests. 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/testsuite/vendor_check_go15.go: -------------------------------------------------------------------------------- 1 | // +build !go1.6 2 | 3 | package testsuite 4 | 5 | import ( 6 | "os" 7 | "path" 8 | ) 9 | 10 | // "This change will only be enabled if the go command is run with 11 | // GO15VENDOREXPERIMENT=1 in its environment." 12 | // c.f. the vendor-experiment proposal https://goo.gl/2ucMeC 13 | func vendorExperimentCheck(dir string) bool { 14 | vendorExperiment := os.Getenv("GO15VENDOREXPERIMENT") 15 | return vendorExperiment == "1" && path.Base(dir) == "vendor" 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/spec_iterator/spec_iterator.go: -------------------------------------------------------------------------------- 1 | package spec_iterator 2 | 3 | import ( 4 | "errors" 5 | 6 | "github.com/onsi/ginkgo/internal/spec" 7 | ) 8 | 9 | var ErrClosed = errors.New("no more specs to run") 10 | 11 | type SpecIterator interface { 12 | Next() (*spec.Spec, error) 13 | NumberOfSpecsPriorToIteration() int 14 | NumberOfSpecsToProcessIfKnown() (int, bool) 15 | NumberOfSpecsThatWillBeRunIfKnown() (int, bool) 16 | } 17 | 18 | type Counter struct { 19 | Index int `json:"index"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.17 2 | // +build !go1.17 3 | 4 | // TODO: once support for Go 1.16 is dropped, this file can be 5 | // merged/removed with assertion_compare_go1.17_test.go and 6 | // assertion_compare_can_convert.go 7 | 8 | package assert 9 | 10 | import "reflect" 11 | 12 | // Older versions of Go does not have the reflect.Value.CanConvert 13 | // method. 14 | func canConvert(value reflect.Value, to reflect.Type) bool { 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /samples/apps/spring-petclinic/petclinic-pgcluster-binding.yaml: -------------------------------------------------------------------------------- 1 | # tag::service-binding[] 2 | apiVersion: binding.operators.coreos.com/v1alpha1 3 | kind: ServiceBinding 4 | metadata: 5 | name: 6 | spring-petclinic-pgcluster 7 | spec: 8 | services: 9 | - group: postgres-operator.crunchydata.com 10 | version: v1beta1 11 | kind: PostgresCluster 12 | name: hippo 13 | application: 14 | name: spring-petclinic 15 | group: apps 16 | version: v1 17 | resource: deployments 18 | # end::service-binding[] 19 | -------------------------------------------------------------------------------- /test/performance/user-workloads/valid/sbo-test.sbr.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: binding.operators.coreos.com/v1alpha1 3 | kind: ServiceBinding 4 | metadata: 5 | name: service-binding-valid 6 | spec: 7 | services: 8 | - group: route.openshift.io 9 | version: v1 10 | kind: Route 11 | name: sbo-perf-svc-valid 12 | - group: "" 13 | version: v1 14 | kind: Service 15 | name: sbo-perf-svc-valid 16 | application: 17 | name: sbo-perf-app-valid 18 | group: apps 19 | version: v1 20 | kind: Deployment 21 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_compare_can_convert.go: -------------------------------------------------------------------------------- 1 | //go:build go1.17 2 | // +build go1.17 3 | 4 | // TODO: once support for Go 1.16 is dropped, this file can be 5 | // merged/removed with assertion_compare_go1.17_test.go and 6 | // assertion_compare_legacy.go 7 | 8 | package assert 9 | 10 | import "reflect" 11 | 12 | // Wrapper around reflect.Value.CanConvert, for compatibility 13 | // reasons. 14 | func canConvert(value reflect.Value, to reflect.Type) bool { 15 | return value.CanConvert(to) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /samples/apps/spring-petclinic/petclinic-mysqlcluster-binding.yaml: -------------------------------------------------------------------------------- 1 | # tag::service-binding[] 2 | apiVersion: binding.operators.coreos.com/v1alpha1 3 | kind: ServiceBinding 4 | metadata: 5 | name: 6 | spring-petclinic-mysqlcluster 7 | spec: 8 | services: 9 | - group: pxc.percona.com 10 | version: v1-10-0 11 | kind: PerconaXtraDBCluster 12 | name: minimal-cluster 13 | application: 14 | name: spring-petclinic 15 | group: apps 16 | version: v1 17 | resource: deployments 18 | # end::service-binding[] 19 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !cmp_debug 6 | // +build !cmp_debug 7 | 8 | package diff 9 | 10 | var debug debugger 11 | 12 | type debugger struct{} 13 | 14 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 15 | return f 16 | } 17 | func (debugger) Update() {} 18 | func (debugger) Finish() {} 19 | -------------------------------------------------------------------------------- /config/default/webhookcainjection_patch.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: admissionregistration.k8s.io/v1 2 | kind: ValidatingWebhookConfiguration 3 | metadata: 4 | name: validating-webhook-configuration 5 | annotations: 6 | cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) 7 | --- 8 | apiVersion: admissionregistration.k8s.io/v1 9 | kind: MutatingWebhookConfiguration 10 | metadata: 11 | name: mutating-webhook-configuration 12 | annotations: 13 | cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) 14 | -------------------------------------------------------------------------------- /test/performance/user-workloads/invalid/sbo-test.sbr.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: binding.operators.coreos.com/v1alpha1 3 | kind: ServiceBinding 4 | metadata: 5 | name: service-binding-invalid 6 | spec: 7 | services: 8 | - group: route.openshift.io 9 | version: v1 10 | kind: Route 11 | name: sbo-perf-svc-invalid 12 | - group: "" 13 | version: v1 14 | kind: Service 15 | name: sbo-perf-svc-invalid 16 | application: 17 | name: sbo-perf-app-invalid 18 | group: apps 19 | version: v1 20 | kind: Deployment 21 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /test/_projects/api-client/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | bindingapi "github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1" 5 | 6 | specv1alpha2 "github.com/redhat-developer/service-binding-operator/apis/spec/v1beta1" 7 | "k8s.io/apimachinery/pkg/runtime" 8 | ) 9 | 10 | var ( 11 | scheme = runtime.NewScheme() 12 | ) 13 | 14 | 15 | func main() { 16 | binding := &bindingapi.ServiceBinding{} 17 | binding.Name = "sb1" 18 | 19 | specBinding := &specv1alpha2.ServiceBinding{} 20 | specBinding.Name = "sb2" 21 | 22 | } -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/ptypes/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package ptypes provides functionality for interacting with well-known types. 6 | // 7 | // Deprecated: Well-known types have specialized functionality directly 8 | // injected into the generated packages for each message type. 9 | // See the deprecation notice for each function for the suggested alternative. 10 | package ptypes 11 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/reporter.go: -------------------------------------------------------------------------------- 1 | package reporters 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/config" 5 | "github.com/onsi/ginkgo/types" 6 | ) 7 | 8 | type Reporter interface { 9 | SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) 10 | BeforeSuiteDidRun(setupSummary *types.SetupSummary) 11 | SpecWillRun(specSummary *types.SpecSummary) 12 | SpecDidComplete(specSummary *types.SpecSummary) 13 | AfterSuiteDidRun(setupSummary *types.SetupSummary) 14 | SpecSuiteDidEnd(summary *types.SuiteSummary) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/wrappers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field name and number for messages in wrappers.proto. 10 | const ( 11 | WrapperValue_Value_field_name protoreflect.Name = "value" 12 | WrapperValue_Value_field_number protoreflect.FieldNumber = 1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/k8s.io/client-go/tools/cache/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs at https://go.k8s.io/owners 2 | 3 | approvers: 4 | - thockin 5 | - smarterclayton 6 | - wojtek-t 7 | - deads2k 8 | - caesarxuchao 9 | - liggitt 10 | - ncdc 11 | reviewers: 12 | - thockin 13 | - smarterclayton 14 | - wojtek-t 15 | - deads2k 16 | - derekwaynecarr 17 | - caesarxuchao 18 | - mikedanese 19 | - liggitt 20 | - janetkuo 21 | - justinsb 22 | - soltysh 23 | - jsafrane 24 | - dims 25 | - ingvagabund 26 | - ncdc 27 | emeritus_approvers: 28 | - lavalamp 29 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `klog` is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/tail_posix.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 FOSS contributors of https://github.com/nxadm/tail 2 | // +build !windows 3 | 4 | package tail 5 | 6 | import ( 7 | "os" 8 | ) 9 | 10 | // Deprecated: this function is only useful internally and, as such, 11 | // it will be removed from the API in a future major release. 12 | // 13 | // OpenFile proxies a os.Open call for a file so it can be correctly tailed 14 | // on POSIX and non-POSIX OSes like MS Windows. 15 | func OpenFile(name string) (file *os.File, err error) { 16 | return os.Open(name) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.5 6 | // +build !go1.5 7 | 8 | package plan9 9 | 10 | func fixwd() { 11 | } 12 | 13 | func Getwd() (wd string, err error) { 14 | fd, err := open(".", O_RDONLY) 15 | if err != nil { 16 | return "", err 17 | } 18 | defer Close(fd) 19 | return Fd2path(fd) 20 | } 21 | 22 | func Chdir(path string) error { 23 | return chdir(path) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/sigs.k8s.io/yaml/RELEASE.md: -------------------------------------------------------------------------------- 1 | # Release Process 2 | 3 | The `yaml` Project is released on an as-needed basis. The process is as follows: 4 | 5 | 1. An issue is proposing a new release with a changelog since the last release 6 | 1. All [OWNERS](OWNERS) must LGTM this release 7 | 1. An OWNER runs `git tag -s $VERSION` and inserts the changelog and pushes the tag with `git push $VERSION` 8 | 1. The release issue is closed 9 | 1. An announcement email is sent to `kubernetes-dev@googlegroups.com` with the subject `[ANNOUNCE] kubernetes-template-project $VERSION is released` 10 | -------------------------------------------------------------------------------- /test/acceptance/features/steps/util.py: -------------------------------------------------------------------------------- 1 | import os 2 | from string import Template 3 | 4 | 5 | def scenario_id(context): 6 | return f"{os.path.basename(os.path.splitext(context.scenario.filename)[0]).lower()}-{context.scenario.line}" 7 | 8 | 9 | def substitute_scenario_id(context, text="$scenario_id"): 10 | return Template(text).substitute(scenario_id=scenario_id(context)) 11 | 12 | 13 | def get_env(env): 14 | value = os.getenv(env) 15 | assert env is not None, f"{env} environment variable needs to be set" 16 | print(f"{env} = {value}") 17 | return value 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/crypto.go: -------------------------------------------------------------------------------- 1 | package sprig 2 | 3 | import ( 4 | "crypto/sha1" 5 | "crypto/sha256" 6 | "encoding/hex" 7 | "fmt" 8 | "hash/adler32" 9 | ) 10 | 11 | func sha256sum(input string) string { 12 | hash := sha256.Sum256([]byte(input)) 13 | return hex.EncodeToString(hash[:]) 14 | } 15 | 16 | func sha1sum(input string) string { 17 | hash := sha1.Sum([]byte(input)) 18 | return hex.EncodeToString(hash[:]) 19 | } 20 | 21 | func adler32sum(input string) string { 22 | hash := adler32.Checksum([]byte(input)) 23 | return fmt.Sprintf("%d", hash) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This remvoves the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /charts/service-binding-operator/templates/configMap.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | data: 4 | controller_manager_config.yaml: | 5 | apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 6 | kind: ControllerManagerConfig 7 | health: 8 | healthProbeBindAddress: :8081 9 | metrics: 10 | bindAddress: 127.0.0.1:8080 11 | webhook: 12 | port: 9443 13 | leaderElection: 14 | leaderElect: true 15 | resourceName: 8fa65150.coreos.com 16 | kind: ConfigMap 17 | metadata: 18 | name: service-binding-manager-config 19 | namespace: {{.Release.Namespace}} -------------------------------------------------------------------------------- /vendor/github.com/nxadm/tail/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang 2 | 3 | RUN mkdir -p $GOPATH/src/github.com/nxadm/tail/ 4 | ADD . $GOPATH/src/github.com/nxadm/tail/ 5 | 6 | # expecting to fetch dependencies successfully. 7 | RUN go get -v github.com/nxadm/tail 8 | 9 | # expecting to run the test successfully. 10 | RUN go test -v github.com/nxadm/tail 11 | 12 | # expecting to install successfully 13 | RUN go install -v github.com/nxadm/tail 14 | RUN go install -v github.com/nxadm/tail/cmd/gotail 15 | 16 | RUN $GOPATH/bin/gotail -h || true 17 | 18 | ENV PATH $GOPATH/bin:$PATH 19 | CMD ["gotail"] 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/typeparams/enabled_go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.18 6 | // +build go1.18 7 | 8 | package typeparams 9 | 10 | // Note: this constant is in a separate file as this is the only acceptable 11 | // diff between the <1.18 API of this package and the 1.18 API. 12 | 13 | // Enabled reports whether type parameters are enabled in the current build 14 | // environment. 15 | const Enabled = true 16 | -------------------------------------------------------------------------------- /make/docs.mk: -------------------------------------------------------------------------------- 1 | SHELL = /usr/bin/env bash -o pipefail 2 | SHELLFLAGS = -ec 3 | 4 | 5 | # Source for generating docs (one of `local` and `github`) 6 | SITE_SOURCE ?= local 7 | 8 | .PHONY: site 9 | ## render site 10 | site: 11 | ifeq ($(SITE_SOURCE),local) 12 | SITE_URL=${PWD}/out/site envsubst < antora-playbook.local.yaml.tmpl > antora-playbook.local.yaml 13 | endif 14 | $(CONTAINER_RUNTIME) run \ 15 | -u $(shell id -u) \ 16 | -e CI=true \ 17 | -e HOME=${PWD} \ 18 | -v ${PWD}:/${PWD}:Z \ 19 | --rm \ 20 | -t antora/antora:3.1.1 \ 21 | ${PWD}/antora-playbook.$(SITE_SOURCE).yaml 22 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | var kernel32 = syscall.NewLazyDLL("kernel32.dll") 12 | var procGetConsoleMode = kernel32.NewProc("GetConsoleMode") 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var st uint32 17 | r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) 18 | return r != 0 && e == 0 19 | } 20 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | labels: 'kind/bug' 5 | assignees: '' 6 | 7 | --- 8 | 9 | ### What is the environment (Minikube, Openshift)? 10 | 11 | 12 | ### What is the SBO version used? 13 | 14 | 15 | ### What are the steps to reproduce this issue? 16 | 1. 17 | 2. 18 | 3. 19 | 4. 20 | 21 | 22 | ### What is the expected behaviour? 23 | 24 | 25 | ### What is the actual behaviour? 26 | 27 | 28 | ### Service Binding Operator Logs 29 | 30 | 31 | ### Additional Information (Screenshots, etc) 32 | 33 | -------------------------------------------------------------------------------- /config/default/manager_config_patch.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: controller-manager 5 | namespace: system 6 | spec: 7 | template: 8 | spec: 9 | containers: 10 | - name: manager 11 | args: 12 | - "--config=controller_manager_config.yaml" 13 | volumeMounts: 14 | - name: manager-config 15 | mountPath: /controller_manager_config.yaml 16 | subPath: controller_manager_config.yaml 17 | volumes: 18 | - name: manager-config 19 | configMap: 20 | name: manager-config 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat < $HOST_TOKEN_PATH <= 10 { 17 | buf[i] = byte(val%10 + '0') 18 | i-- 19 | val /= 10 20 | } 21 | buf[i] = byte(val + '0') 22 | return string(buf[i:]) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_reflect.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build protoreflect 7 | // +build protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = false 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /config/default/manager_webhook_patch.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: operator 5 | namespace: system 6 | spec: 7 | template: 8 | spec: 9 | containers: 10 | - name: manager 11 | ports: 12 | - containerPort: 9443 13 | name: webhook-server 14 | protocol: TCP 15 | volumeMounts: 16 | - mountPath: /tmp/k8s-webhook-server/serving-certs 17 | name: cert 18 | readOnly: true 19 | volumes: 20 | - name: cert 21 | secret: 22 | defaultMode: 420 23 | secretName: service-binding-operator-service-cert 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_unsafe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !purego && !appengine 6 | // +build !purego,!appengine 7 | 8 | package impl 9 | 10 | // When using unsafe pointers, we can just treat enum values as int32s. 11 | 12 | var ( 13 | coderEnumNoZero = coderInt32NoZero 14 | coderEnum = coderInt32 15 | coderEnumPtr = coderInt32Ptr 16 | coderEnumSlice = coderInt32Slice 17 | coderEnumPackedSlice = coderInt32PackedSlice 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + itoa(-val) 13 | } 14 | var buf [32]byte // big enough for int64 15 | i := len(buf) - 1 16 | for val >= 10 { 17 | buf[i] = byte(val%10 + '0') 18 | i-- 19 | val /= 10 20 | } 21 | buf[i] = byte(val + '0') 22 | return string(buf[i:]) 23 | } 24 | -------------------------------------------------------------------------------- /.github/workflows/pr-labels.yaml: -------------------------------------------------------------------------------- 1 | name: "Manage acceptance-tests-skipped label" 2 | 3 | on: 4 | pull_request_target: 5 | branches: 6 | - master 7 | - 'release-v**.x' 8 | 9 | jobs: 10 | acceptance-tests-skipped-label: 11 | name: "Manage acceptance-tests-skipped label" 12 | runs-on: ubuntu-20.04 13 | 14 | steps: 15 | - name: Checkout Git Repository 16 | uses: actions/checkout@v4 17 | 18 | - name: Check if acceptance tests can be skipped 19 | id: check-skip-acceptance 20 | uses: ./.github/actions/check-skip-acceptance-tests 21 | with: 22 | set-label: acceptance-tests-skipped 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/not_go111.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.11 6 | // +build !go1.11 7 | 8 | package http2 9 | 10 | import ( 11 | "net/http/httptrace" 12 | "net/textproto" 13 | ) 14 | 15 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } 16 | 17 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} 18 | 19 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 20 | return nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_methods.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build !protoreflect 7 | // +build !protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = true 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return m.ProtoMethods() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_118.go: -------------------------------------------------------------------------------- 1 | //+build !go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | return &UnsafeMapIterator{ 17 | hiter: mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)), 18 | pKeyRType: type2.pKeyRType, 19 | pElemRType: type2.pElemRType, 20 | } 21 | } -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_windows.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,windows 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | "golang.org/x/sys/windows" 10 | ) 11 | 12 | func checkIfTerminal(w io.Writer) bool { 13 | switch v := w.(type) { 14 | case *os.File: 15 | handle := windows.Handle(v.Fd()) 16 | var mode uint32 17 | if err := windows.GetConsoleMode(handle, &mode); err != nil { 18 | return false 19 | } 20 | mode |= windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 21 | if err := windows.SetConsoleMode(handle, mode); err != nil { 22 | return false 23 | } 24 | return true 25 | } 26 | return false 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | // +build linux 7 | 8 | package unix 9 | 10 | import "runtime" 11 | 12 | // SysvShmCtl performs control operations on the shared memory segment 13 | // specified by id. 14 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 15 | if runtime.GOARCH == "arm" || 16 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 17 | cmd |= ipc_64 18 | } 19 | 20 | return shmctl(id, cmd, desc) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/map_entry.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field names and numbers for synthetic map entry messages. 10 | const ( 11 | MapEntry_Key_field_name protoreflect.Name = "key" 12 | MapEntry_Value_field_name protoreflect.Name = "value" 13 | 14 | MapEntry_Key_field_number protoreflect.FieldNumber = 1 15 | MapEntry_Value_field_number protoreflect.FieldNumber = 2 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/watch/delta.go: -------------------------------------------------------------------------------- 1 | package watch 2 | 3 | import "sort" 4 | 5 | type Delta struct { 6 | ModifiedPackages []string 7 | 8 | NewSuites []*Suite 9 | RemovedSuites []*Suite 10 | modifiedSuites []*Suite 11 | } 12 | 13 | type DescendingByDelta []*Suite 14 | 15 | func (a DescendingByDelta) Len() int { return len(a) } 16 | func (a DescendingByDelta) Swap(i, j int) { a[i], a[j] = a[j], a[i] } 17 | func (a DescendingByDelta) Less(i, j int) bool { return a[i].Delta() > a[j].Delta() } 18 | 19 | func (d Delta) ModifiedSuites() []*Suite { 20 | sort.Sort(DescendingByDelta(d.modifiedSuites)) 21 | return d.modifiedSuites 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/imdario/mergo/.gitignore: -------------------------------------------------------------------------------- 1 | #### joe made this: http://goel.io/joe 2 | 3 | #### go #### 4 | # Binaries for programs and plugins 5 | *.exe 6 | *.dll 7 | *.so 8 | *.dylib 9 | 10 | # Test binary, build with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 17 | .glide/ 18 | 19 | #### vim #### 20 | # Swap 21 | [._]*.s[a-v][a-z] 22 | [._]*.sw[a-p] 23 | [._]s[a-v][a-z] 24 | [._]sw[a-p] 25 | 26 | # Session 27 | Session.vim 28 | 29 | # Temporary 30 | .netrwhist 31 | *~ 32 | # Auto-generated tag files 33 | tags 34 | -------------------------------------------------------------------------------- /config/rbac/servicebinding_editor_role.yaml: -------------------------------------------------------------------------------- 1 | # permissions for end users to edit servicebindings. 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRole 4 | metadata: 5 | labels: 6 | rbac.authorization.k8s.io/aggregate-to-edit: "true" 7 | name: editor-role 8 | rules: 9 | - apiGroups: 10 | - binding.operators.coreos.com 11 | - servicebinding.io 12 | resources: 13 | - servicebindings 14 | verbs: 15 | - create 16 | - delete 17 | - get 18 | - list 19 | - patch 20 | - update 21 | - watch 22 | - apiGroups: 23 | - binding.operators.coreos.com 24 | - servicebinding.io 25 | resources: 26 | - servicebindings/status 27 | verbs: 28 | - get 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/synchronization.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type RemoteBeforeSuiteState int 8 | 9 | const ( 10 | RemoteBeforeSuiteStateInvalid RemoteBeforeSuiteState = iota 11 | 12 | RemoteBeforeSuiteStatePending 13 | RemoteBeforeSuiteStatePassed 14 | RemoteBeforeSuiteStateFailed 15 | RemoteBeforeSuiteStateDisappeared 16 | ) 17 | 18 | type RemoteBeforeSuiteData struct { 19 | Data []byte 20 | State RemoteBeforeSuiteState 21 | } 22 | 23 | func (r RemoteBeforeSuiteData) ToJSON() []byte { 24 | data, _ := json.Marshal(r) 25 | return data 26 | } 27 | 28 | type RemoteAfterSuiteData struct { 29 | CanRun bool 30 | } 31 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/empty_gen.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Code generated by generate-protos. DO NOT EDIT. 6 | 7 | package genid 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" 14 | 15 | // Names for google.protobuf.Empty. 16 | const ( 17 | Empty_message_name protoreflect.Name = "Empty" 18 | Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" 19 | ) 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Logr is open to pull-requests, provided they fit within the intended scope of 4 | the project. Specifically, this library aims to be VERY small and minimalist, 5 | with no external dependencies. 6 | 7 | ## Compatibility 8 | 9 | This project intends to follow [semantic versioning](http://semver.org) and 10 | is very strict about compatibility. Any proposed changes MUST follow those 11 | rules. 12 | 13 | ## Performance 14 | 15 | As a logging library, logr must be as light-weight as possible. Any proposed 16 | code change must include results of running the [benchmark](./benchmark) 17 | before and after the change. 18 | -------------------------------------------------------------------------------- /config/rbac/leader_election_role.yaml: -------------------------------------------------------------------------------- 1 | # permissions to do leader election. 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: Role 4 | metadata: 5 | name: leader-election-role 6 | rules: 7 | - apiGroups: 8 | - "" 9 | resources: 10 | - configmaps 11 | - leases 12 | verbs: 13 | - get 14 | - list 15 | - watch 16 | - create 17 | - update 18 | - patch 19 | - delete 20 | - apiGroups: 21 | - coordination.k8s.io 22 | resources: 23 | - leases 24 | verbs: 25 | - get 26 | - list 27 | - watch 28 | - create 29 | - update 30 | - patch 31 | - delete 32 | - apiGroups: 33 | - "" 34 | resources: 35 | - events 36 | verbs: 37 | - create 38 | - patch 39 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/swag/.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | end_of_line = lf 7 | insert_final_newline = true 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | 12 | # Set default charset 13 | [*.{js,py,go,scala,rb,java,html,css,less,sass,md}] 14 | charset = utf-8 15 | 16 | # Tab indentation (no size specified) 17 | [*.go] 18 | indent_style = tab 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | 23 | # Matches the exact files either package.json or .travis.yml 24 | [{package.json,.travis.yml}] 25 | indent_style = space 26 | indent_size = 2 27 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_118.go: -------------------------------------------------------------------------------- 1 | //+build go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | var it hiter 17 | mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it) 18 | return &UnsafeMapIterator{ 19 | hiter: &it, 20 | pKeyRType: type2.pKeyRType, 21 | pElemRType: type2.pElemRType, 22 | } 23 | } -------------------------------------------------------------------------------- /samples/apps/spring-elasticsearch/patch/pom.xml.patch: -------------------------------------------------------------------------------- 1 | diff --git a/spring-boot/spring-boot-elasticsearch/pom.xml b/spring-boot/spring-boot-elasticsearch/pom.xml 2 | index b0dcb44..1473b7b 100644 3 | --- a/spring-boot/spring-boot-elasticsearch/pom.xml 4 | +++ b/spring-boot/spring-boot-elasticsearch/pom.xml 5 | @@ -32,6 +32,12 @@ 6 | org.springframework.boot 7 | spring-boot-starter-web 8 | 9 | + 10 | + com.nebhale.bindings 11 | + client-java 12 | + 1.0.0 13 | + 14 | + 15 | 16 | 17 | org.projectlombok 18 | -------------------------------------------------------------------------------- /test/acceptance/features/steps/rabbitmq_operator.py: -------------------------------------------------------------------------------- 1 | from olm import Operator 2 | from behave import given 3 | 4 | 5 | class RabbitMqOperator(Operator): 6 | 7 | def __init__(self, name="rabbitmq-cluster-operator"): 8 | super().__init__(name=name) 9 | 10 | 11 | @given(u'RabbitMQ operator is running') 12 | def install(_context): 13 | operator = RabbitMqOperator() 14 | operator.operator_namespace = "rabbitmq-system" 15 | if not operator.is_running(): 16 | operator.openshift.apply_yaml_file("https://github.com/rabbitmq/cluster-operator/releases/download/v1.9.0/cluster-operator.yml") 17 | operator.is_running(wait=True) 18 | print("RabbitMQ operator is running") 19 | -------------------------------------------------------------------------------- /vendor/github.com/go-openapi/jsonpointer/.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | # Unix-style newlines with a newline ending every file 5 | [*] 6 | end_of_line = lf 7 | insert_final_newline = true 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | 12 | # Set default charset 13 | [*.{js,py,go,scala,rb,java,html,css,less,sass,md}] 14 | charset = utf-8 15 | 16 | # Tab indentation (no size specified) 17 | [*.go] 18 | indent_style = tab 19 | 20 | [*.md] 21 | trim_trailing_whitespace = false 22 | 23 | # Matches the exact files either package.json or .travis.yml 24 | [{package.json,.travis.yml}] 25 | indent_style = space 26 | indent_size = 2 27 | -------------------------------------------------------------------------------- /vendor/k8s.io/klog/v2/SECURITY_CONTACTS: -------------------------------------------------------------------------------- 1 | # Defined below are the security contacts for this repo. 2 | # 3 | # They are the contact point for the Product Security Committee to reach out 4 | # to for triaging and handling of incoming issues. 5 | # 6 | # The below names agree to abide by the 7 | # [Embargo Policy](https://git.k8s.io/security/private-distributors-list.md#embargo-policy) 8 | # and will be removed and replaced if they violate that agreement. 9 | # 10 | # DO NOT REPORT SECURITY VULNERABILITIES DIRECTLY TO THESE NAMES, FOLLOW THE 11 | # INSTRUCTIONS AT https://kubernetes.io/security/ 12 | 13 | dims 14 | thockin 15 | justinsb 16 | tallclair 17 | piosz 18 | brancz 19 | DirectXMan12 20 | lavalamp 21 | --------------------------------------------------------------------------------