{"id":22423886,"url":"https://github.com/statcan/aaw-kubeflow-controller","last_synced_at":"2026-04-30T17:31:36.515Z","repository":{"id":42652281,"uuid":"252903367","full_name":"StatCan/aaw-kubeflow-controller","owner":"StatCan","description":"Kubeflow controller which sets PodDefaults + Vault policies for each Profile detected","archived":false,"fork":false,"pushed_at":"2023-10-17T18:23:06.000Z","size":310,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2026-03-10T23:38:57.179Z","etag":null,"topics":["aaw","controller","daaas","kubeflow","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StatCan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-04-04T03:55:57.000Z","updated_at":"2021-12-06T15:46:09.000Z","dependencies_parsed_at":"2025-03-27T05:42:05.557Z","dependency_job_id":"d23ebaba-b3f1-4a38-aa9d-67352057b26a","html_url":"https://github.com/StatCan/aaw-kubeflow-controller","commit_stats":null,"previous_names":["statcan/kubeflow-controller"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StatCan/aaw-kubeflow-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatCan%2Faaw-kubeflow-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatCan%2Faaw-kubeflow-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatCan%2Faaw-kubeflow-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatCan%2Faaw-kubeflow-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StatCan","download_url":"https://codeload.github.com/StatCan/aaw-kubeflow-controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StatCan%2Faaw-kubeflow-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32472396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aaw","controller","daaas","kubeflow","kubernetes"],"created_at":"2024-12-05T18:13:21.652Z","updated_at":"2026-04-30T17:31:36.510Z","avatar_url":"https://github.com/StatCan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubeflow-controller\n\nThis repository implements a simple controller for watching Profile resources as\ndefined with a CustomResourceDefinition (CRD).\n\n**Note:** go-get or vendor this package as `github.com/StatCan/kubeflow-controller`.\n\nThis particular example demonstrates how to perform basic operations such as:\n\n* How to register a new custom resource (custom resource type) of type `Profile` using a CustomResourceDefinition.\n* How to create/get/list instances of your new resource type `Profile`.\n* How to setup a controller on resource handling create/update/delete events.\n\nIt makes use of the generators in [k8s.io/code-generator](https://github.com/kubernetes/code-generator)\nto generate a typed client, informers, listers and deep-copy functions. You can\ndo this yourself using the `./hack/update-codegen.sh` script.\n\nThe `update-codegen` script will automatically generate the following files \u0026\ndirectories:\n\n* `pkg/apis/kubeflowcontroller/v1/zz_generated.deepcopy.go`\n* `pkg/generated/`\n\nChanges should not be made to these files manually, and when creating your own\ncontroller based off of this implementation you should not copy these files and\ninstead run the `update-codegen` script to generate your own.\n\n## Details\n\nThe kubeflow controller uses [client-go library](https://github.com/kubernetes/client-go/tree/master/tools/cache) extensively.\nThe details of interaction points of the kubeflow controller with various mechanisms from this library are\nexplained [here](docs/controller-client-go.md).\n\n## Fetch kubeflow-controller and its dependencies\n\nLike the rest of Kubernetes, kubeflow-controller has used\n[godep](https://github.com/tools/godep) and `$GOPATH` for years and is\nnow adopting go 1.11 modules.  There are thus two alternative ways to\ngo about fetching this demo and its dependencies.\n\n### Fetch with godep\n\nWhen NOT using go 1.11 modules, you can use the following commands.\n\n```sh\ngo get -d github.com/StatCan/kubeflow-controller\ncd $GOPATH/src/github.com/StatCan/kubeflow-controller\ngodep restore\n```\n\n### When using go 1.11 modules\n\nWhen using go 1.11 modules (`GO111MODULE=on`), issue the following\ncommands --- starting in whatever working directory you like.\n\n```sh\ngit clone https://github.com/statcan/kubeflow-controller.git\ncd kubeflow-controller\n```\n\nNote, however, that if you intend to\n[generate code](#changes-to-the-types) then you will also need the\ncode-generator repo to exist in an old-style location.  One easy way\nto do this is to use the command `go mod vendor` to create and\npopulate the `vendor` directory.\n\n## Purpose\n\nThis controller updates the state of Vault to allow access to secrets from OIDC users and from inside a profile's namespace.\n\n![Example object diagram](docs/images/kubeflow-controller.svg)\n\n## Running\n\n**Prerequisite**: Since the kubeflow-controller uses `apps/v1` deployments, the Kubernetes cluster version should be greater than 1.9.\n\n```sh\n# assumes you have a working kubeconfig, not required if operating in-cluster\ngo build -o kubeflow-controller .\n./kubeflow-controller -kubeconfig=$HOME/.kube/config\n\n# create a CustomResourceDefinition\nkubectl create -f artifacts/examples/crd.yaml\n\n# create a custom resource of type Profile\nkubectl create -f artifacts/examples/example-profile.yaml\n\n# check deployments created through the custom resource\nkubectl get deployments\n```\n\n## Use Cases\n\nCustomResourceDefinitions can be used to implement custom resource types for your Kubernetes cluster.\nThese act like most other Resources in Kubernetes, and may be `kubectl apply`'d, etc.\n\nSome example use cases:\n\n* Provisioning/Management of external datastores/databases (eg. CloudSQL/RDS instances)\n* Higher level abstractions around Kubernetes primitives (eg. a single Resource to define an etcd cluster, backed by a Service and a ReplicationController)\n\n## Cleanup\n\nYou can clean up the created CustomResourceDefinition with:\n\n```sh\n    kubectl delete crd profiles.kubeflow.org\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatcan%2Faaw-kubeflow-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatcan%2Faaw-kubeflow-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatcan%2Faaw-kubeflow-controller/lists"}