{"id":21187572,"url":"https://github.com/pb82/serverless-operator","last_synced_at":"2025-09-02T11:06:13.254Z","repository":{"id":146898213,"uuid":"144481786","full_name":"pb82/serverless-operator","owner":"pb82","description":"An Operator to create Openwhisk Actions on Openshift or Kubernetes","archived":false,"fork":false,"pushed_at":"2018-08-13T22:31:47.000Z","size":27508,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T20:27:51.084Z","etag":null,"topics":["openshift","openwhisk","operator-sdk","operators","serverless"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pb82.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-12T16:15:32.000Z","updated_at":"2020-03-13T12:19:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"adbf8f68-d8a8-4cee-b678-b84ebe9adaaa","html_url":"https://github.com/pb82/serverless-operator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pb82/serverless-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb82%2Fserverless-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb82%2Fserverless-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb82%2Fserverless-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb82%2Fserverless-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pb82","download_url":"https://codeload.github.com/pb82/serverless-operator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb82%2Fserverless-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273272560,"owners_count":25075985,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["openshift","openwhisk","operator-sdk","operators","serverless"],"created_at":"2024-11-20T18:38:05.395Z","updated_at":"2025-09-02T11:06:13.231Z","avatar_url":"https://github.com/pb82.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Operator\n\nA Kubernetes / Openshift Operator, based on the [Operator SDK](https://github.com/operator-framework/operator-sdk)\nthat manages (creates and deletes) [Openwhisk](https://openwhisk.apache.org) actions.\n\n## Installation on Openshift\n\n*Prerequisite*: Openwhisk deployed to a namespace. You can follow the [instructions](https://github.com/projectodd/openwhisk-openshift) to set up Openwhisk.\n\nDownload the resources:\n\n```sh\n$ curl https://raw.githubusercontent.com/pb82/serverless-operator/master/deploy/operator.yaml \u003e operator.yaml\n$ curl https://raw.githubusercontent.com/pb82/serverless-operator/master/deploy/rbac.yaml \u003e rbac.yaml\n$ curl https://raw.githubusercontent.com/pb82/serverless-operator/master/deploy/crd.yaml \u003e crd.yaml\n```\n\nCreate the resources:\n\n```sh\n$ oc create -f rbac.yaml\n$ oc create -f crd.yaml\n$ oc create -f operator.yaml --namespace=\u003cNamespace containing Openwhisk\u003e\n```\n\n*NOTE*: You need to have admin permissions to create the role bindings and custom resource.\n\n## Usage\n\nYou interact with the Operator by creating instances of the following custom resource:\n\n```yaml\napiVersion: \"serverless.pb82.com/v1alpha1\"\nkind: \"ServerlessAction\"\nmetadata:\n  name: \"\u003cResource name\u003e\"\nspec:\n  name: \"\u003cAction name\u003e\"\n  kind: \"\u003cAction type, e.g. nodejs:6\u003e\"\n  code: \"\u003cCode for the Action\u003e\"\n  username: \"\u003cOpenwhisk Username\u003e\"\n  password: \"\u003cOpenwhisk Password\u003e\"\n  namespace: \"\u003cOpenwhisk Namespace\u003e\"\n```\n\nCreate a copy of the above and save it as `cr.yaml`. Make sure to fill out the fields, then run:\n\n```sh\n$ oc create -f cr.yaml\n```\n\nThis will trigger the operator to create the action. In order to delete the action from Openwhisk you delete\nthe custom resource:\n\n```sh\n$ oc delete -f cr.yaml\n```\n\n## Development\n\n*Prerequisite*: The Operator SDK needs to be installed on your machine. Follow [the docs](https://github.com/operator-framework/operator-sdk#quick-start) to set it up.\n\nYou can run the Operator without deploying it to your namespace by cloning this repository and running:\n\n```sh\n$ dep ensure\n$ operator-sdk build docker.io/pb82/serverless-operator\n$ operator-sdk up local --namespace=\u003cNamespace containing Openwhisk\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb82%2Fserverless-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpb82%2Fserverless-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb82%2Fserverless-operator/lists"}