{"id":22243675,"url":"https://github.com/getporter/kubernetes-plugins","last_synced_at":"2025-07-28T01:33:07.336Z","repository":{"id":37102615,"uuid":"328725322","full_name":"getporter/kubernetes-plugins","owner":"getporter","description":"Kubernetes plug in for Porter, enables management of credentials as Kubernetes secrets","archived":false,"fork":false,"pushed_at":"2025-06-01T18:50:13.000Z","size":1115,"stargazers_count":4,"open_issues_count":13,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-02T05:06:56.234Z","etag":null,"topics":["kubernetes","plugins","porter"],"latest_commit_sha":null,"homepage":"https://getporter.org/plugins/kubernetes/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getporter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-11T16:30:31.000Z","updated_at":"2025-03-11T00:24:56.000Z","dependencies_parsed_at":"2024-06-19T05:28:37.719Z","dependency_job_id":"41432064-5ec9-4d09-9bb2-ab39d8d9473f","html_url":"https://github.com/getporter/kubernetes-plugins","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/getporter/kubernetes-plugins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getporter%2Fkubernetes-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getporter%2Fkubernetes-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getporter%2Fkubernetes-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getporter%2Fkubernetes-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getporter","download_url":"https://codeload.github.com/getporter/kubernetes-plugins/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getporter%2Fkubernetes-plugins/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267451073,"owners_count":24089291,"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-07-27T02:00:11.917Z","response_time":82,"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":["kubernetes","plugins","porter"],"created_at":"2024-12-03T04:28:26.865Z","updated_at":"2025-07-28T01:33:07.090Z","avatar_url":"https://github.com/getporter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes Plugins for Porter\n\nThis is a set of Kubernetes plugins for [Porter](https://github.com/getporter/porter).\n\n[![Build Status](https://dev.azure.com/getporter/porter/_apis/build/status/kubernetes-plugins-release?branchName=main)](https://dev.azure.com/getporter/porter/_build/latest?definitionId=23\u0026branchName=main)\n\nThe plugin enables Porter to use Kubernetes secrets as source for CredentialSets.\n\n## Installation\n\nThe plugin is distributed as a single binary, `kubernetes`. The following snippet will clone this repository, build the binary\nand install it to **~/.porter/plugins/**.\n\n```shell\ngo get get.porter.sh/plugin/azure/cmd/kubernetes-plugins\ncd $(go env GOPATH)/src/get.porter.sh/plugin/kubernetes-plugins\nmake build install\n```\n\n## Usage\n\nAfter installation, you must modify your porter configuration file.\nThe plugin supports secret values (secrets).\n\nThe plugin can be used when porter is running inside a Kubernetes cluster - in which case it will connect automatically, it can also be used from outside a cluster in which case it will either use the kubeconfig file sourced from the `KUBECONFIG` environment variable or `$HOME/.kube/config` if this is not set.\n\nWhen running outside a cluster the plugin requires configuration to specify which namespace it should store data in, when running inside a cluster it will use the namespace of the pod that porter is running in.\n\nThe plugin also requires that the user or service account that is being used with Kubernetes has `\"get\",\"list\",\"create\",\"delete\",` and `\"patch\"` permissions on secrets in the namespace.\n\nThe [Porter Operator](https://github.com/getporter/operator) is the primary use case\nfor running in Kubernetes which configures the necessary service accounts via \nit's `configureNamespace` custom action.\n\n```\nporter invoke porterops --action configureNamespace --param namespace=quickstart -c porterops\n```\n\n\n### Secrets\n\nThe `kubernetes.secrets` plugin enables resolution of credential or parameter values and storing sensitive data(parameter or output values) as secrets in Kubernetes via the Porter Operator.\n\n1. Create, `./porter-k8s-config.yaml`\n1. Add the following lines1:\n\n    ```yaml\n    default-secrets: \"kubernetes-secrets\"\n    secrets:\n    - name: \"kubernetes-secrets\"\n      plugin: \"kubernetes.secrets\"\n    ```\n1. Provide the Porter config to the `configureNamespace` operator bundle action\n\n    ```\n    porter invoke operator --action=configureNamespace --param namespace=\u003cnamespace name\u003e --param porterConfig=porter-k8s-config.toml -c kind -n=operator\n    ```\n\n* If the plugin is being used outside of a Kubernetes cluster then add the following lines to specify the namespace to be used to store data:\n\n    ```yaml\n    default-secrets: \"kubernetes-secrets\"\n    secrets:\n      - name: \"kubernetes-secrets\"\n        plugin: \"kubernetes.secrets\"\n        config:\n          namespace: \"\u003cnamespace name\u003e\"\n    ```\n\nIn both cases the Kubernetes secret must be created with a `credential` key\n```\nkubectl --namespace \"\u003cnamespace name\u003e\" create secret generic password --from-literal=credential=test \n```\n\nPorter credentials file `test-credentials.yaml`\n```\n---\nschemaType: CredentialSet\nschemaVersion: 1.0.1\nnamespace: ''\nname: kubernetes-plugin-test\ncredentials:\n- name: test-cred\n  source:\n    secret: password\n```\n\n```\nporter credentials apply test-credentials.yaml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetporter%2Fkubernetes-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetporter%2Fkubernetes-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetporter%2Fkubernetes-plugins/lists"}