├── .dockerignore ├── .gitignore ├── Dockerfile ├── Makefile ├── PROJECT ├── README.md ├── api └── v1alpha1 │ ├── groupversion_info.go │ ├── scalein_types.go │ ├── scaleout_types.go │ ├── trainingjob_types.go │ └── zz_generated.deepcopy.go ├── config ├── certmanager │ ├── certificate.yaml │ ├── kustomization.yaml │ └── kustomizeconfig.yaml ├── crd │ ├── bases │ │ ├── kai.alibabacloud.com_scaleins.yaml │ │ ├── kai.alibabacloud.com_scaleouts.yaml │ │ └── kai.alibabacloud.com_trainingjobs.yaml │ ├── kustomization.yaml │ ├── kustomizeconfig.yaml │ └── patches │ │ ├── cainjection_in_scaleins.yaml │ │ ├── cainjection_in_scaleouts.yaml │ │ ├── cainjection_in_trainingjobs.yaml │ │ ├── webhook_in_scaleins.yaml │ │ ├── webhook_in_scaleouts.yaml │ │ └── webhook_in_trainingjobs.yaml ├── default │ ├── kustomization.yaml │ ├── manager_auth_proxy_patch.yaml │ ├── manager_webhook_patch.yaml │ └── webhookcainjection_patch.yaml ├── deploy.yaml ├── manager │ ├── kustomization.yaml │ └── manager.yaml ├── prometheus │ ├── kustomization.yaml │ └── monitor.yaml ├── rbac │ ├── auth_proxy_role.yaml │ ├── auth_proxy_role_binding.yaml │ ├── auth_proxy_service.yaml │ ├── kustomization.yaml │ ├── leader_election_role.yaml │ ├── leader_election_role_binding.yaml │ ├── role.yaml │ └── role_binding.yaml └── webhook │ ├── kustomization.yaml │ ├── kustomizeconfig.yaml │ ├── manifests.yaml │ └── service.yaml ├── docs └── images │ ├── scalein.png │ ├── scaleout.png │ ├── trainingjob-resource.png │ └── trainingjob.png ├── examples ├── scale_in_count.yaml ├── scale_in_pod.yaml ├── scale_out.yaml └── training_job.yaml ├── go.mod ├── go.sum ├── hack ├── boilerplate.go.txt ├── crd_gen │ └── main.go ├── tools.go ├── update-codegen.sh └── verify-codegen.sh ├── main.go └── pkg ├── config └── config.go ├── controllers ├── api │ └── v1 │ │ ├── constants.go │ │ ├── doc.go │ │ ├── types.go │ │ └── zz_generated.deepcopy.go ├── common.go ├── interface.go ├── launcher.go ├── resource.go ├── scalein.go ├── scalein_controller.go ├── scaleout.go ├── scaleout_controller.go ├── scaler.go ├── status.go ├── suite_test.go ├── trainingjob_controller.go └── worker.go └── util ├── exec.go ├── home.go ├── runtime.go └── ssh.go /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/.dockerignore -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/Dockerfile -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/Makefile -------------------------------------------------------------------------------- /PROJECT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/PROJECT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/README.md -------------------------------------------------------------------------------- /api/v1alpha1/groupversion_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/api/v1alpha1/groupversion_info.go -------------------------------------------------------------------------------- /api/v1alpha1/scalein_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/api/v1alpha1/scalein_types.go -------------------------------------------------------------------------------- /api/v1alpha1/scaleout_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/api/v1alpha1/scaleout_types.go -------------------------------------------------------------------------------- /api/v1alpha1/trainingjob_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/api/v1alpha1/trainingjob_types.go -------------------------------------------------------------------------------- /api/v1alpha1/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/api/v1alpha1/zz_generated.deepcopy.go -------------------------------------------------------------------------------- /config/certmanager/certificate.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/certmanager/certificate.yaml -------------------------------------------------------------------------------- /config/certmanager/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/certmanager/kustomization.yaml -------------------------------------------------------------------------------- /config/certmanager/kustomizeconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/certmanager/kustomizeconfig.yaml -------------------------------------------------------------------------------- /config/crd/bases/kai.alibabacloud.com_scaleins.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/bases/kai.alibabacloud.com_scaleins.yaml -------------------------------------------------------------------------------- /config/crd/bases/kai.alibabacloud.com_scaleouts.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/bases/kai.alibabacloud.com_scaleouts.yaml -------------------------------------------------------------------------------- /config/crd/bases/kai.alibabacloud.com_trainingjobs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/bases/kai.alibabacloud.com_trainingjobs.yaml -------------------------------------------------------------------------------- /config/crd/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/kustomization.yaml -------------------------------------------------------------------------------- /config/crd/kustomizeconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/kustomizeconfig.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_scaleins.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/patches/cainjection_in_scaleins.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_scaleouts.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/patches/cainjection_in_scaleouts.yaml -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_trainingjobs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/patches/cainjection_in_trainingjobs.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_scaleins.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/patches/webhook_in_scaleins.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_scaleouts.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/patches/webhook_in_scaleouts.yaml -------------------------------------------------------------------------------- /config/crd/patches/webhook_in_trainingjobs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/crd/patches/webhook_in_trainingjobs.yaml -------------------------------------------------------------------------------- /config/default/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/default/kustomization.yaml -------------------------------------------------------------------------------- /config/default/manager_auth_proxy_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/default/manager_auth_proxy_patch.yaml -------------------------------------------------------------------------------- /config/default/manager_webhook_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/default/manager_webhook_patch.yaml -------------------------------------------------------------------------------- /config/default/webhookcainjection_patch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/default/webhookcainjection_patch.yaml -------------------------------------------------------------------------------- /config/deploy.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/deploy.yaml -------------------------------------------------------------------------------- /config/manager/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/manager/kustomization.yaml -------------------------------------------------------------------------------- /config/manager/manager.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/manager/manager.yaml -------------------------------------------------------------------------------- /config/prometheus/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - monitor.yaml 3 | -------------------------------------------------------------------------------- /config/prometheus/monitor.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/prometheus/monitor.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/rbac/auth_proxy_role.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/rbac/auth_proxy_role_binding.yaml -------------------------------------------------------------------------------- /config/rbac/auth_proxy_service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/rbac/auth_proxy_service.yaml -------------------------------------------------------------------------------- /config/rbac/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/rbac/kustomization.yaml -------------------------------------------------------------------------------- /config/rbac/leader_election_role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/rbac/leader_election_role.yaml -------------------------------------------------------------------------------- /config/rbac/leader_election_role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/rbac/leader_election_role_binding.yaml -------------------------------------------------------------------------------- /config/rbac/role.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/rbac/role.yaml -------------------------------------------------------------------------------- /config/rbac/role_binding.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/rbac/role_binding.yaml -------------------------------------------------------------------------------- /config/webhook/kustomization.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/webhook/kustomization.yaml -------------------------------------------------------------------------------- /config/webhook/kustomizeconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/webhook/kustomizeconfig.yaml -------------------------------------------------------------------------------- /config/webhook/manifests.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/webhook/service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/config/webhook/service.yaml -------------------------------------------------------------------------------- /docs/images/scalein.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/docs/images/scalein.png -------------------------------------------------------------------------------- /docs/images/scaleout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/docs/images/scaleout.png -------------------------------------------------------------------------------- /docs/images/trainingjob-resource.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/docs/images/trainingjob-resource.png -------------------------------------------------------------------------------- /docs/images/trainingjob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/docs/images/trainingjob.png -------------------------------------------------------------------------------- /examples/scale_in_count.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/examples/scale_in_count.yaml -------------------------------------------------------------------------------- /examples/scale_in_pod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/examples/scale_in_pod.yaml -------------------------------------------------------------------------------- /examples/scale_out.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/examples/scale_out.yaml -------------------------------------------------------------------------------- /examples/training_job.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/examples/training_job.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/go.sum -------------------------------------------------------------------------------- /hack/boilerplate.go.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/hack/boilerplate.go.txt -------------------------------------------------------------------------------- /hack/crd_gen/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/hack/crd_gen/main.go -------------------------------------------------------------------------------- /hack/tools.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/hack/tools.go -------------------------------------------------------------------------------- /hack/update-codegen.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/hack/update-codegen.sh -------------------------------------------------------------------------------- /hack/verify-codegen.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/hack/verify-codegen.sh -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/main.go -------------------------------------------------------------------------------- /pkg/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/config/config.go -------------------------------------------------------------------------------- /pkg/controllers/api/v1/constants.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/api/v1/constants.go -------------------------------------------------------------------------------- /pkg/controllers/api/v1/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/api/v1/doc.go -------------------------------------------------------------------------------- /pkg/controllers/api/v1/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/api/v1/types.go -------------------------------------------------------------------------------- /pkg/controllers/api/v1/zz_generated.deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/api/v1/zz_generated.deepcopy.go -------------------------------------------------------------------------------- /pkg/controllers/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/common.go -------------------------------------------------------------------------------- /pkg/controllers/interface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/interface.go -------------------------------------------------------------------------------- /pkg/controllers/launcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/launcher.go -------------------------------------------------------------------------------- /pkg/controllers/resource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/resource.go -------------------------------------------------------------------------------- /pkg/controllers/scalein.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/scalein.go -------------------------------------------------------------------------------- /pkg/controllers/scalein_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/scalein_controller.go -------------------------------------------------------------------------------- /pkg/controllers/scaleout.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/scaleout.go -------------------------------------------------------------------------------- /pkg/controllers/scaleout_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/scaleout_controller.go -------------------------------------------------------------------------------- /pkg/controllers/scaler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/scaler.go -------------------------------------------------------------------------------- /pkg/controllers/status.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/status.go -------------------------------------------------------------------------------- /pkg/controllers/suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/suite_test.go -------------------------------------------------------------------------------- /pkg/controllers/trainingjob_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/trainingjob_controller.go -------------------------------------------------------------------------------- /pkg/controllers/worker.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/controllers/worker.go -------------------------------------------------------------------------------- /pkg/util/exec.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/util/exec.go -------------------------------------------------------------------------------- /pkg/util/home.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/util/home.go -------------------------------------------------------------------------------- /pkg/util/runtime.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/util/runtime.go -------------------------------------------------------------------------------- /pkg/util/ssh.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AliyunContainerService/et-operator/HEAD/pkg/util/ssh.go --------------------------------------------------------------------------------