├── .dockerignore ├── .github └── workflows │ ├── docker-image.yaml │ └── release.yml ├── .gitignore ├── Dockerfile ├── Makefile ├── PROJECT ├── README.md ├── api └── v1alpha1 │ ├── groupversion_info.go │ ├── natsaccount_types.go │ ├── natsoperator_types.go │ ├── natsuser_types.go │ └── zz_generated.deepcopy.go ├── charts └── nats-jwt-operator │ ├── .helmignore │ ├── Chart.yaml │ ├── crds │ ├── natsaccount-crd.yaml │ ├── natsoperator-crd.yaml │ └── natsuser-crd.yaml │ ├── templates │ ├── _helpers.tpl │ ├── deployment.yaml │ ├── leader-election-rbac.yaml │ ├── manager-rbac.yaml │ ├── metrics-reader-rbac.yaml │ ├── metrics-service.yaml │ └── proxy-rbac.yaml │ └── values.yaml ├── cmd ├── account-server │ └── main.go └── operator │ └── main.go ├── config ├── crd │ ├── bases │ │ ├── nats.deinstapel.de_natsaccounts.yaml │ │ ├── nats.deinstapel.de_natsoperators.yaml │ │ └── nats.deinstapel.de_natsusers.yaml │ ├── kustomization.yaml │ ├── kustomizeconfig.yaml │ └── patches │ │ ├── cainjection_in_natsaccounts.yaml │ │ ├── cainjection_in_natsoperators.yaml │ │ ├── cainjection_in_natsusers.yaml │ │ ├── webhook_in_natsaccounts.yaml │ │ ├── webhook_in_natsoperators.yaml │ │ └── webhook_in_natsusers.yaml ├── default │ ├── kustomization.yaml │ ├── manager_auth_proxy_patch.yaml │ └── manager_config_patch.yaml ├── manager │ ├── kustomization.yaml │ └── manager.yaml ├── manifests │ └── kustomization.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 │ ├── natsaccount_editor_role.yaml │ ├── natsaccount_viewer_role.yaml │ ├── natsoperator_editor_role.yaml │ ├── natsoperator_viewer_role.yaml │ ├── natsuser_editor_role.yaml │ ├── natsuser_viewer_role.yaml │ ├── role.yaml │ ├── role_binding.yaml │ └── service_account.yaml ├── samples │ ├── kustomization.yaml │ ├── nats_v1alpha1_natsaccount.yaml │ ├── nats_v1alpha1_natsoperator.yaml │ └── nats_v1alpha1_natsuser.yaml └── scorecard │ ├── bases │ └── config.yaml │ ├── kustomization.yaml │ └── patches │ ├── basic.config.yaml │ └── olm.config.yaml ├── controllers ├── account_server.go ├── common.go ├── natsaccount_controller.go ├── natsoperator_controller.go ├── natsuser_controller.go └── suite_test.go ├── go.mod ├── go.sum └── hack └── boilerplate.go.txt /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/.dockerignore -------------------------------------------------------------------------------- /.github/workflows/docker-image.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/.github/workflows/docker-image.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/Dockerfile -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/Makefile -------------------------------------------------------------------------------- /PROJECT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/PROJECT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/README.md -------------------------------------------------------------------------------- /api/v1alpha1/groupversion_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/api/v1alpha1/groupversion_info.go -------------------------------------------------------------------------------- /api/v1alpha1/natsaccount_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/api/v1alpha1/natsaccount_types.go -------------------------------------------------------------------------------- /api/v1alpha1/natsoperator_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/api/v1alpha1/natsoperator_types.go -------------------------------------------------------------------------------- /api/v1alpha1/natsuser_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/api/v1alpha1/natsuser_types.go -------------------------------------------------------------------------------- /api/v1alpha1/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/api/v1alpha1/zz_generated.deepcopy.go -------------------------------------------------------------------------------- /charts/nats-jwt-operator/.helmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/.helmignore -------------------------------------------------------------------------------- /charts/nats-jwt-operator/Chart.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/Chart.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/crds/natsaccount-crd.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/crds/natsaccount-crd.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/crds/natsoperator-crd.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/crds/natsoperator-crd.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/crds/natsuser-crd.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/crds/natsuser-crd.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/templates/_helpers.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/templates/_helpers.tpl -------------------------------------------------------------------------------- /charts/nats-jwt-operator/templates/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/templates/deployment.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/templates/leader-election-rbac.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/templates/leader-election-rbac.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/templates/manager-rbac.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/templates/manager-rbac.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/templates/metrics-reader-rbac.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/templates/metrics-reader-rbac.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/templates/metrics-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/templates/metrics-service.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/templates/proxy-rbac.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/templates/proxy-rbac.yaml -------------------------------------------------------------------------------- /charts/nats-jwt-operator/values.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/charts/nats-jwt-operator/values.yaml -------------------------------------------------------------------------------- /cmd/account-server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/cmd/account-server/main.go -------------------------------------------------------------------------------- /cmd/operator/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/cmd/operator/main.go -------------------------------------------------------------------------------- /config/crd/bases/nats.deinstapel.de_natsaccounts.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/bases/nats.deinstapel.de_natsaccounts.yaml -------------------------------------------------------------------------------- /config/crd/bases/nats.deinstapel.de_natsoperators.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/bases/nats.deinstapel.de_natsoperators.yaml -------------------------------------------------------------------------------- /config/crd/bases/nats.deinstapel.de_natsusers.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/bases/nats.deinstapel.de_natsusers.yaml -------------------------------------------------------------------------------- /config/crd/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/kustomization.yaml -------------------------------------------------------------------------------- /config/crd/kustomizeconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/kustomizeconfig.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_natsaccounts.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/patches/cainjection_in_natsaccounts.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_natsoperators.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/patches/cainjection_in_natsoperators.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_natsusers.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/patches/cainjection_in_natsusers.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_natsaccounts.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/patches/webhook_in_natsaccounts.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_natsoperators.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/patches/webhook_in_natsoperators.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_natsusers.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/crd/patches/webhook_in_natsusers.yaml -------------------------------------------------------------------------------- /config/default/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/default/kustomization.yaml -------------------------------------------------------------------------------- /config/default/manager_auth_proxy_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/default/manager_auth_proxy_patch.yaml -------------------------------------------------------------------------------- /config/default/manager_config_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/default/manager_config_patch.yaml -------------------------------------------------------------------------------- /config/manager/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - manager.yaml 3 | -------------------------------------------------------------------------------- /config/manager/manager.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/manager/manager.yaml -------------------------------------------------------------------------------- /config/manifests/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/manifests/kustomization.yaml -------------------------------------------------------------------------------- /config/prometheus/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - monitor.yaml 3 | -------------------------------------------------------------------------------- /config/prometheus/monitor.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/prometheus/monitor.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_client_clusterrole.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/auth_proxy_client_clusterrole.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/auth_proxy_role.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/auth_proxy_role_binding.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/auth_proxy_service.yaml -------------------------------------------------------------------------------- /config/rbac/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/kustomization.yaml -------------------------------------------------------------------------------- /config/rbac/leader_election_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/leader_election_role.yaml -------------------------------------------------------------------------------- /config/rbac/leader_election_role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/leader_election_role_binding.yaml -------------------------------------------------------------------------------- /config/rbac/natsaccount_editor_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/natsaccount_editor_role.yaml -------------------------------------------------------------------------------- /config/rbac/natsaccount_viewer_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/natsaccount_viewer_role.yaml -------------------------------------------------------------------------------- /config/rbac/natsoperator_editor_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/natsoperator_editor_role.yaml -------------------------------------------------------------------------------- /config/rbac/natsoperator_viewer_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/natsoperator_viewer_role.yaml -------------------------------------------------------------------------------- /config/rbac/natsuser_editor_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/natsuser_editor_role.yaml -------------------------------------------------------------------------------- /config/rbac/natsuser_viewer_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/natsuser_viewer_role.yaml -------------------------------------------------------------------------------- /config/rbac/role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/role.yaml -------------------------------------------------------------------------------- /config/rbac/role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/role_binding.yaml -------------------------------------------------------------------------------- /config/rbac/service_account.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/rbac/service_account.yaml -------------------------------------------------------------------------------- /config/samples/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/samples/kustomization.yaml -------------------------------------------------------------------------------- /config/samples/nats_v1alpha1_natsaccount.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/samples/nats_v1alpha1_natsaccount.yaml -------------------------------------------------------------------------------- /config/samples/nats_v1alpha1_natsoperator.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/samples/nats_v1alpha1_natsoperator.yaml -------------------------------------------------------------------------------- /config/samples/nats_v1alpha1_natsuser.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/samples/nats_v1alpha1_natsuser.yaml -------------------------------------------------------------------------------- /config/scorecard/bases/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/scorecard/bases/config.yaml -------------------------------------------------------------------------------- /config/scorecard/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/scorecard/kustomization.yaml -------------------------------------------------------------------------------- /config/scorecard/patches/basic.config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/scorecard/patches/basic.config.yaml -------------------------------------------------------------------------------- /config/scorecard/patches/olm.config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/config/scorecard/patches/olm.config.yaml -------------------------------------------------------------------------------- /controllers/account_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/controllers/account_server.go -------------------------------------------------------------------------------- /controllers/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/controllers/common.go -------------------------------------------------------------------------------- /controllers/natsaccount_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/controllers/natsaccount_controller.go -------------------------------------------------------------------------------- /controllers/natsoperator_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/controllers/natsoperator_controller.go -------------------------------------------------------------------------------- /controllers/natsuser_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/controllers/natsuser_controller.go -------------------------------------------------------------------------------- /controllers/suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/controllers/suite_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/go.sum -------------------------------------------------------------------------------- /hack/boilerplate.go.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deinstapel/nats-jwt-operator/HEAD/hack/boilerplate.go.txt --------------------------------------------------------------------------------