{"id":22314529,"url":"https://github.com/desuuuu/cluster-network-policy-operator","last_synced_at":"2025-03-26T02:46:27.580Z","repository":{"id":241939409,"uuid":"805778818","full_name":"Desuuuu/cluster-network-policy-operator","owner":"Desuuuu","description":"Deploy Kubernetes NetworkPolicy resources across namespaces.","archived":false,"fork":false,"pushed_at":"2024-05-30T18:01:59.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T00:19:13.193Z","etag":null,"topics":["cluster","kubernetes","network","network-policy","operator"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Desuuuu.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":"2024-05-25T12:37:30.000Z","updated_at":"2024-05-30T18:00:04.000Z","dependencies_parsed_at":"2024-05-30T20:57:46.620Z","dependency_job_id":"bd0bb963-a1b1-4d34-84e8-249afce71379","html_url":"https://github.com/Desuuuu/cluster-network-policy-operator","commit_stats":null,"previous_names":["desuuuu/cluster-network-policy-operator"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desuuuu%2Fcluster-network-policy-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desuuuu%2Fcluster-network-policy-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desuuuu%2Fcluster-network-policy-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Desuuuu%2Fcluster-network-policy-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Desuuuu","download_url":"https://codeload.github.com/Desuuuu/cluster-network-policy-operator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245579579,"owners_count":20638676,"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":["cluster","kubernetes","network","network-policy","operator"],"created_at":"2024-12-03T22:10:21.916Z","updated_at":"2025-03-26T02:46:27.558Z","avatar_url":"https://github.com/Desuuuu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClusterNetworkPolicy Operator\n\n## Overview\n\nThe operator watches `ClusterNetworkPolicy` resources, which are scoped to the\ncluster, and creates corresponding `NetworkPolicy` resources in the configured\nnamespaces. The `NetworkPolicy` resources are kept in-sync by the operator, any\nmanual change will be overwritten.\n\nIn case of a conflict with a `NetworkPolicy` that is not managed by the\noperator, it is left as-is and an error is logged. This\nbehavior can be modified by setting the `networking.desuuuu.com/conflict-policy`\nannotation to `replace` on the `NetworkPolicy`.\n\nBy default, the operator is configured to ignore its own namespace as well as\n`kube-*` namespaces, meaning it will never execute any operation in these\nnamespaces. This is configurable through CLI arguments.\n\n## Installation\n\n### Using Helm\n\nInstalling using Helm is documented in the [Helm chart README](helm/README.md).\n\n### Using kubectl\n\n```\nkubectl create namespace cluster-network-policy-operator\n\nkubectl apply -f https://github.com/Desuuuu/cluster-network-policy-operator/releases/latest/download/networking.desuuuu.com_clusternetworkpolicies.yaml\n\nkubectl apply -f https://github.com/Desuuuu/cluster-network-policy-operator/releases/latest/download/cluster-network-policy-operator.yaml\n```\n\n## Usage\n\n```yaml\napiVersion: networking.desuuuu.com/v1\nkind: ClusterNetworkPolicy\nmetadata:\n  name: my-network-policy\nspec:\n  labels:\n    my-label: value\n  annotations:\n    my-annotation: value\n  namespaceSelector:\n    matchLabels:\n      namespace-label: value\n  podSelector:\n    matchLabels:\n      role: db\n  policyTypes:\n  - Egress\n  egress:\n  - to:\n    - ipBlock:\n        cidr: \"10.0.0.0/24\"\n    ports:\n    - protocol: TCP\n      port: 5978\n```\n\nThe `spec` field of `ClusterNetworkPolicy` mirrors the `spec` field of\n`NetworkPolicy`, with the addition of the following optional fields:\n\n* `labels` - Labels to apply to the `NetworkPolicy` resources.\n* `annotations` - Annotations to apply to the `NetworkPolicy` resources.\n* `namespaceSelector` - Label selector to further restrict in which namespaces\nthe `NetworkPolicy` resources are created.\n\nPlease note that `namespaceSelector` cannot be used to target a namespace that\nis ignored by the operator.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesuuuu%2Fcluster-network-policy-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesuuuu%2Fcluster-network-policy-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesuuuu%2Fcluster-network-policy-operator/lists"}