├── .dockerignore ├── .gitignore ├── Dockerfile ├── LICENSE ├── Makefile ├── PROJECT ├── README.md ├── api └── v1alpha1 │ ├── groupversion_info.go │ ├── namespace_types.go │ ├── preauthkey_types.go │ ├── server_types.go │ └── zz_generated.deepcopy.go ├── config ├── crd │ ├── bases │ │ ├── headscale.barpilot.io_namespaces.yaml │ │ ├── headscale.barpilot.io_preauthkeys.yaml │ │ └── headscale.barpilot.io_servers.yaml │ ├── kustomization.yaml │ ├── kustomizeconfig.yaml │ └── patches │ │ ├── cainjection_in_namespaces.yaml │ │ ├── cainjection_in_preauthkeys.yaml │ │ ├── cainjection_in_servers.yaml │ │ ├── webhook_in_namespaces.yaml │ │ ├── webhook_in_preauthkeys.yaml │ │ └── webhook_in_servers.yaml ├── default │ ├── kustomization.yaml │ ├── manager_auth_proxy_patch.yaml │ └── manager_config_patch.yaml ├── manager │ ├── controller_manager_config.yaml │ ├── kustomization.yaml │ └── manager.yaml ├── prometheus │ ├── kustomization.yaml │ └── monitor.yaml ├── rbac │ ├── auth_proxy_client_clusterrole.yaml │ ├── auth_proxy_role.yaml │ ├── auth_proxy_role_binding.yaml │ ├── auth_proxy_service.yaml │ ├── kustomization.yaml │ ├── leader_election_role.yaml │ ├── leader_election_role_binding.yaml │ ├── namespace_editor_role.yaml │ ├── namespace_viewer_role.yaml │ ├── preauthkey_editor_role.yaml │ ├── preauthkey_viewer_role.yaml │ ├── role.yaml │ ├── role_binding.yaml │ ├── server_editor_role.yaml │ ├── server_viewer_role.yaml │ └── service_account.yaml └── samples │ ├── assests │ └── issuer.yaml │ ├── headscale_v1alpha1_namespace.yaml │ ├── headscale_v1alpha1_preauthkey.yaml │ └── headscale_v1alpha1_server.yaml ├── controllers ├── default.go ├── namespace_controller.go ├── preauthkey_controller.go ├── server_controller.go ├── server_controller_test.go ├── suite_test.go └── testing-assets │ └── crd │ └── cert-manager.1.8.0.crds.yaml ├── go.mod ├── go.sum ├── hack └── boilerplate.go.txt ├── main.go └── pkg ├── headscale ├── config.go └── zz_generated.deepcopy.go └── utils ├── grpc.go └── utils.go /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/.dockerignore -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/Makefile -------------------------------------------------------------------------------- /PROJECT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/PROJECT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/README.md -------------------------------------------------------------------------------- /api/v1alpha1/groupversion_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/api/v1alpha1/groupversion_info.go -------------------------------------------------------------------------------- /api/v1alpha1/namespace_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/api/v1alpha1/namespace_types.go -------------------------------------------------------------------------------- /api/v1alpha1/preauthkey_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/api/v1alpha1/preauthkey_types.go -------------------------------------------------------------------------------- /api/v1alpha1/server_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/api/v1alpha1/server_types.go -------------------------------------------------------------------------------- /api/v1alpha1/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/api/v1alpha1/zz_generated.deepcopy.go -------------------------------------------------------------------------------- /config/crd/bases/headscale.barpilot.io_namespaces.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/bases/headscale.barpilot.io_namespaces.yaml -------------------------------------------------------------------------------- /config/crd/bases/headscale.barpilot.io_preauthkeys.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/bases/headscale.barpilot.io_preauthkeys.yaml -------------------------------------------------------------------------------- /config/crd/bases/headscale.barpilot.io_servers.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/bases/headscale.barpilot.io_servers.yaml -------------------------------------------------------------------------------- /config/crd/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/kustomization.yaml -------------------------------------------------------------------------------- /config/crd/kustomizeconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/kustomizeconfig.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_namespaces.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/patches/cainjection_in_namespaces.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_preauthkeys.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/patches/cainjection_in_preauthkeys.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_servers.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/patches/cainjection_in_servers.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_namespaces.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/patches/webhook_in_namespaces.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_preauthkeys.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/patches/webhook_in_preauthkeys.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_servers.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/crd/patches/webhook_in_servers.yaml -------------------------------------------------------------------------------- /config/default/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/default/kustomization.yaml -------------------------------------------------------------------------------- /config/default/manager_auth_proxy_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/default/manager_auth_proxy_patch.yaml -------------------------------------------------------------------------------- /config/default/manager_config_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/default/manager_config_patch.yaml -------------------------------------------------------------------------------- /config/manager/controller_manager_config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/manager/controller_manager_config.yaml -------------------------------------------------------------------------------- /config/manager/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/manager/kustomization.yaml -------------------------------------------------------------------------------- /config/manager/manager.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/manager/manager.yaml -------------------------------------------------------------------------------- /config/prometheus/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - monitor.yaml 3 | -------------------------------------------------------------------------------- /config/prometheus/monitor.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/prometheus/monitor.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_client_clusterrole.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/auth_proxy_client_clusterrole.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/auth_proxy_role.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/auth_proxy_role_binding.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/auth_proxy_service.yaml -------------------------------------------------------------------------------- /config/rbac/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/kustomization.yaml -------------------------------------------------------------------------------- /config/rbac/leader_election_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/leader_election_role.yaml -------------------------------------------------------------------------------- /config/rbac/leader_election_role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/leader_election_role_binding.yaml -------------------------------------------------------------------------------- /config/rbac/namespace_editor_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/namespace_editor_role.yaml -------------------------------------------------------------------------------- /config/rbac/namespace_viewer_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/namespace_viewer_role.yaml -------------------------------------------------------------------------------- /config/rbac/preauthkey_editor_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/preauthkey_editor_role.yaml -------------------------------------------------------------------------------- /config/rbac/preauthkey_viewer_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/preauthkey_viewer_role.yaml -------------------------------------------------------------------------------- /config/rbac/role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/role.yaml -------------------------------------------------------------------------------- /config/rbac/role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/role_binding.yaml -------------------------------------------------------------------------------- /config/rbac/server_editor_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/server_editor_role.yaml -------------------------------------------------------------------------------- /config/rbac/server_viewer_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/server_viewer_role.yaml -------------------------------------------------------------------------------- /config/rbac/service_account.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/rbac/service_account.yaml -------------------------------------------------------------------------------- /config/samples/assests/issuer.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/samples/assests/issuer.yaml -------------------------------------------------------------------------------- /config/samples/headscale_v1alpha1_namespace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/samples/headscale_v1alpha1_namespace.yaml -------------------------------------------------------------------------------- /config/samples/headscale_v1alpha1_preauthkey.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/samples/headscale_v1alpha1_preauthkey.yaml -------------------------------------------------------------------------------- /config/samples/headscale_v1alpha1_server.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/config/samples/headscale_v1alpha1_server.yaml -------------------------------------------------------------------------------- /controllers/default.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/controllers/default.go -------------------------------------------------------------------------------- /controllers/namespace_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/controllers/namespace_controller.go -------------------------------------------------------------------------------- /controllers/preauthkey_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/controllers/preauthkey_controller.go -------------------------------------------------------------------------------- /controllers/server_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/controllers/server_controller.go -------------------------------------------------------------------------------- /controllers/server_controller_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/controllers/server_controller_test.go -------------------------------------------------------------------------------- /controllers/suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/controllers/suite_test.go -------------------------------------------------------------------------------- /controllers/testing-assets/crd/cert-manager.1.8.0.crds.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/controllers/testing-assets/crd/cert-manager.1.8.0.crds.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/go.sum -------------------------------------------------------------------------------- /hack/boilerplate.go.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/hack/boilerplate.go.txt -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/main.go -------------------------------------------------------------------------------- /pkg/headscale/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/pkg/headscale/config.go -------------------------------------------------------------------------------- /pkg/headscale/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/pkg/headscale/zz_generated.deepcopy.go -------------------------------------------------------------------------------- /pkg/utils/grpc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/pkg/utils/grpc.go -------------------------------------------------------------------------------- /pkg/utils/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guilhem/headscale-operator/HEAD/pkg/utils/utils.go --------------------------------------------------------------------------------