azure-databricks-operator/controllers/doc.go

32 строки
1.6 KiB
Go
Исходник Постоянная ссылка Обычный вид История

2019-05-15 13:59:15 +03:00
/*
The MIT License (MIT)
2019-05-15 13:59:15 +03:00
Copyright (c) 2019 Microsoft
2019-05-15 13:59:15 +03:00
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
2019-05-15 13:59:15 +03:00
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2019-05-15 13:59:15 +03:00
*/
Using native DataBricks API model (Job, Run, Secret) (#53) * Initial secret scopes kubebuilder create * add djob, generate manifests * start to implement job * implement basic job structure * Hydrating secret scope and implement submit secret scope * half way on run * Handle submitted SecretScopes with update implementation * upgrade sdk * fix job name reference * Add missing implementation to handle submitted secret scope in reconcile * handle run submit and run now * Secret scope implementation that works * better error handling and logging * fix minor inconsistency in djob and run * remove notebookjob type * add test coverage * adding tests, better naming consistency * add html cover report * Support referencing K8s secrets for DB secret scope secrets * add azure devops test coverage * install tooling for testing * add test files * make test pass for djob, adding kill and wait for gracefully shutting down manager * add run job test * adding testing for secretscope and support for byte value secrets * add event recorder to secretscope. fix sample * update recorder in test setup * fix name of test recorder * increasing timeout for secret scope test * further increase to scope test timeout * another increase to test timeout * Update README.md * export db client in tests to do cleanup before/after tests. * documentation update * adding deploy.md * updated readme.md resources.md and contributing.md * adding roadmap * Updating contributing.md * Updating contributing.md * extending job waiting time because databricks may not reconcile in time * fix typo, fix context to use Background, remove noteboojob reference in PROJECT * Change Principal
2019-07-23 04:26:20 +03:00
package controllers
2019-05-15 13:59:15 +03:00
// +kubebuilder:rbac:groups=databricks.microsoft.com,resources=events,verbs=get;list;watch;create;update;patch;delete
Using native DataBricks API model (Job, Run, Secret) (#53) * Initial secret scopes kubebuilder create * add djob, generate manifests * start to implement job * implement basic job structure * Hydrating secret scope and implement submit secret scope * half way on run * Handle submitted SecretScopes with update implementation * upgrade sdk * fix job name reference * Add missing implementation to handle submitted secret scope in reconcile * handle run submit and run now * Secret scope implementation that works * better error handling and logging * fix minor inconsistency in djob and run * remove notebookjob type * add test coverage * adding tests, better naming consistency * add html cover report * Support referencing K8s secrets for DB secret scope secrets * add azure devops test coverage * install tooling for testing * add test files * make test pass for djob, adding kill and wait for gracefully shutting down manager * add run job test * adding testing for secretscope and support for byte value secrets * add event recorder to secretscope. fix sample * update recorder in test setup * fix name of test recorder * increasing timeout for secret scope test * further increase to scope test timeout * another increase to test timeout * Update README.md * export db client in tests to do cleanup before/after tests. * documentation update * adding deploy.md * updated readme.md resources.md and contributing.md * adding roadmap * Updating contributing.md * Updating contributing.md * extending job waiting time because databricks may not reconcile in time * fix typo, fix context to use Background, remove noteboojob reference in PROJECT * Change Principal
2019-07-23 04:26:20 +03:00
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=apps,resources=deployments/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=events,verbs=get;list;watch;create;update;patch;delete