mirror of
https://github.com/hanzo-ml/katib.git
synced 2026-09-24 00:31:27 +00:00
* ran kustomize edit fix for katib-cert-manager Signed-off-by: Vikas Saxena <[email protected]> * ran kustomize edit fix for katib-external-db Signed-off-by: Vikas Saxena <[email protected]> * fixed up comments Signed-off-by: Vikas Saxena <[email protected]> * fixed build error with katib-cert-maanager Signed-off-by: Vikas Saxena <[email protected]> * fixed up comments in katib-external-db Signed-off-by: Vikas Saxena <[email protected]> * fixed warnings in katib-leader-election Signed-off-by: Vikas Saxena <[email protected]> * fixed warnings in katib-openshift Signed-off-by: Vikas Saxena <[email protected]> * fixed warnings in katib-standalone-postgres Signed-off-by: Vikas Saxena <[email protected]> * fixed warnings in katib-with-kubeflow Signed-off-by: Vikas Saxena <[email protected]> * fixed up comments Signed-off-by: Vikas Saxena <[email protected]> * fixing diffs errors in the updated code Signed-off-by: Vikas Saxena <[email protected]> --------- Signed-off-by: Vikas Saxena <[email protected]>
70 lines
2.3 KiB
YAML
70 lines
2.3 KiB
YAML
# This kustomization copies the `katib-standalone` one with following exclusions:
|
|
# - No Job is spawned to generate TLS key for `katib-controller` Service
|
|
# - Instead, the Service and WebhookConfigurations linked to it are annotated
|
|
# for OpenShift service controller to handle TLS certification.
|
|
#
|
|
# Requires OpenShift version: 4.4+
|
|
#
|
|
# To achieve this, run:
|
|
#
|
|
# `kustomize build ./manifests/v1beta1/installs/katib-openshift | oc apply -f - -l type!=local`
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
namespace: kubeflow
|
|
resources:
|
|
# Namespace.
|
|
- ../../components/namespace/
|
|
# Katib controller.
|
|
- ../../components/controller/
|
|
# Katib CRDs.
|
|
- ../../components/crd/
|
|
# Katib DB manager.
|
|
- ../../components/db-manager/
|
|
# Katib DB mysql.
|
|
- ../../components/mysql/
|
|
# Katib UI.
|
|
- ../../components/ui/
|
|
# Katib webhooks.
|
|
- ../../components/webhook/
|
|
images:
|
|
- name: ghcr.io/kubeflow/katib/katib-controller
|
|
newName: ghcr.io/kubeflow/katib/katib-controller
|
|
newTag: latest
|
|
- name: ghcr.io/kubeflow/katib/katib-db-manager
|
|
newName: ghcr.io/kubeflow/katib/katib-db-manager
|
|
newTag: latest
|
|
- name: ghcr.io/kubeflow/katib/katib-ui
|
|
newName: ghcr.io/kubeflow/katib/katib-ui
|
|
newTag: latest
|
|
|
|
configMapGenerator:
|
|
- behavior: create
|
|
files:
|
|
- katib-config.yaml
|
|
name: katib-config
|
|
options:
|
|
disableNameSuffixHash: true
|
|
patches:
|
|
# Annotate Service to delegate TLS-secret generation to OpenShift service controller
|
|
# https://docs.openshift.com/container-platform/4.6/security/certificates/service-serving-certificate.html#add-service-certificate_service-serving-certificate
|
|
- path: patches/service-serving-cert.yaml
|
|
target:
|
|
kind: Service
|
|
name: katib-controller
|
|
namespace: kubeflow
|
|
version: v1
|
|
# Annotate WebhookConfigurations to delegate `caBundle` population to OpenShift service controller
|
|
# https://docs.openshift.com/container-platform/4.6/security/certificates/service-serving-certificate.html#add-service-certificate-mutating-webhook_service-serving-certificate
|
|
- path: patches/webhook-inject-cabundle.yaml
|
|
target:
|
|
group: admissionregistration.k8s.io
|
|
kind: ValidatingWebhookConfiguration
|
|
name: katib.kubeflow.org
|
|
version: v1
|
|
- path: patches/webhook-inject-cabundle.yaml
|
|
target:
|
|
group: admissionregistration.k8s.io
|
|
kind: MutatingWebhookConfiguration
|
|
name: katib.kubeflow.org
|
|
version: v1
|