{"id":21721418,"url":"https://github.com/informaticsmatters/operator-lazar","last_synced_at":"2026-05-04T11:34:04.607Z","repository":{"id":80605230,"uuid":"196203268","full_name":"InformaticsMatters/operator-lazar","owner":"InformaticsMatters","description":"An experimental operator for the lazar predictive toxicology service","archived":false,"fork":false,"pushed_at":"2019-07-10T16:54:08.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T18:43:20.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InformaticsMatters.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-10T12:41:32.000Z","updated_at":"2019-07-10T16:54:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"b3d7780f-a260-4f18-aa19-c9561a5867ee","html_url":"https://github.com/InformaticsMatters/operator-lazar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Foperator-lazar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Foperator-lazar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Foperator-lazar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Foperator-lazar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InformaticsMatters","download_url":"https://codeload.github.com/InformaticsMatters/operator-lazar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244693806,"owners_count":20494510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T02:16:44.029Z","updated_at":"2025-10-12T20:21:35.448Z","avatar_url":"https://github.com/InformaticsMatters.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# operator-lazar\nAn experimental Kubernetes [operator] for the [lazar] predictive toxicology\nservice. For an introduction to operators and the operator SDK your first\nport-of-call should be the Operator SDK [User Guide].\n\n\u003e   Here we use the **Ansible** variant of the operator framework,\n    which means we don't have to know anything about **Go**, only **Ansible**\n    and has its own [Ansible Operator Guide].\n\n## Prerequisites\nYou will need the Operator SDK if you are going to build\nthe operator (you don't need the SDK to use the operator).\n\nThere is an [installation guide] fop the SDK, on brew (OSX) you could run: -\n\n    $ brew install operator-sdk\n\n## Building the operator\nThe operator is built with the SDK and deployed to Docker Hub. The operator\nhas already been deployed so you only need to follow this step if you've\nchanged the operator or the lazar role.\n\n    $ operator-sdk build informaticsmatters/lazar-operator:0.0.1\n    $ docker push informaticsmatters/lazar-operator:0.0.1\n\n## Deploying the operator (OpenShift)\nYor user account will need admin privileges in the OpenShift cluster.\nThis is because you'll be creating a Role, Service Accounts Role Binding,\nand a Custom Resource Definition.\n\nStart with a new project: -\n\n    $ oc new-project lazar\n\nCreate the Custom Resource Definition and deploy the service-account\nrole, operator etc.: -\n\n    $ oc create -f deploy/crds/lazar_v1alpha1_lazar_crd.yaml \\\n                -f deploy/service_account.yaml \\\n                -f deploy/role.yaml \\\n                -f deploy/role_binding.yaml \\\n                -f deploy/operator.yaml\n\nThis operator requires **cluster-admin** and **anyuid** policies on\nthe service-account: -\n\n    $ oc adm policy add-role-to-user admin -z lazar-operator\n    $ oc adm policy add-cluster-role-to-user admin -z lazar-operator\n    $ oc adm policy add-scc-to-user anyuid -z lazar-operator\n    \nNow we can deploy lazar by _applying_ the Custom Resource: -\n\n    $ oc apply -f deploy/crds/lazar_v1alpha1_lazar_cr.yaml\n\nTo un-deploy lazar you can reply on the role's built-in ability to\ndelete the objects it created by setting the custom resource `state` value to\n`absent`: -\n\n    spec:\n      state: absent\n\nAnd then re-apply the resource: -\n\n    $ oc apply -f deploy/crds/lazar_v1alpha1_lazar_cr.yaml\n\n---\n\n[ansible operator guide]: https://github.com/operator-framework/operator-sdk/blob/master/doc/ansible/user-guide.md\n[installation guide]: https://github.com/operator-framework/operator-sdk/blob/master/doc/user/install-operator-sdk.md\n[lazar]: https://github.com/OpenRiskNet/home/tree/master/openshift/deployments/lazar\n[operator]: https://www.openshift.com/learn/topics/operators\n[user guide]: https://github.com/operator-framework/operator-sdk/blob/master/doc/user-guide.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finformaticsmatters%2Foperator-lazar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finformaticsmatters%2Foperator-lazar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finformaticsmatters%2Foperator-lazar/lists"}