-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2339 from cliveseldon/1675_k8s_1.18
k8s 1.18 fix
- Loading branch information
Showing
14 changed files
with
43,577 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16,301 changes: 16,301 additions & 0 deletions
16,301
...or/templates/customresourcedefinition_v1_seldondeployments.machinelearning.seldon.io.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25,115 changes: 25,115 additions & 0 deletions
25,115
operator/config/crd_v1/bases/machinelearning.seldon.io_seldondeployments.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This kustomization.yaml is not intended to be run by itself, | ||
# since it depends on service name and namespace that are out of this kustomize package. | ||
# It should be run by config/default | ||
resources: | ||
- bases/machinelearning.seldon.io_seldondeployments.yaml | ||
# +kubebuilder:scaffold:crdkustomizeresource | ||
|
||
patchesStrategicMerge: | ||
# Seldon: Add webhook conversion when we move to v1 of the API | ||
# | ||
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix. | ||
# patches here are for enabling the conversion webhook for each CRD | ||
#- patches/webhook_in_seldondeployments.yaml | ||
# +kubebuilder:scaffold:crdkustomizewebhookpatch | ||
|
||
# [CERTMANAGER] To enable webhook, uncomment all the sections with [CERTMANAGER] prefix. | ||
# patches here are for enabling the CA injection for each CRD | ||
- patches/cainjection_in_seldondeployments.yaml | ||
# +kubebuilder:scaffold:crdkustomizecainjectionpatch | ||
|
||
patchesJson6902: | ||
# Ensure multiple levels of graph defn in OpenAPISpec as you can't have references let alone recursive refs | ||
# https://github.com/kubernetes/kubernetes/issues/54579 | ||
- target: | ||
group: apiextensions.k8s.io | ||
version: v1 | ||
kind: CustomResourceDefinition | ||
name: seldondeployments.machinelearning.seldon.io | ||
path: patches/graph_children.yaml | ||
# kubebuilder/k8s has an issues that Protocol from core types is not fully specied w.r.t OpenAPISchema | ||
# https://github.com/kubernetes/kubernetes/issues/91395 | ||
# This fixes that by adding a TCP default | ||
- target: | ||
group: apiextensions.k8s.io | ||
version: v1 | ||
kind: CustomResourceDefinition | ||
name: seldondeployments.machinelearning.seldon.io | ||
path: patches/protocol.yaml | ||
|
||
# the following config is for teaching kustomize how to do kustomization for CRDs. | ||
configurations: | ||
- kustomizeconfig.yaml | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file is for teaching kustomize how to substitute name and namespace reference in CRD | ||
nameReference: | ||
- kind: Service | ||
version: v1 | ||
fieldSpecs: | ||
- kind: CustomResourceDefinition | ||
group: apiextensions.k8s.io | ||
path: spec/conversion/webhookClientConfig/service/name | ||
|
||
namespace: | ||
- kind: CustomResourceDefinition | ||
group: apiextensions.k8s.io | ||
path: spec/conversion/webhookClientConfig/service/namespace | ||
create: false | ||
|
||
varReference: | ||
- path: metadata/annotations |
8 changes: 8 additions & 0 deletions
8
operator/config/crd_v1/patches/cainjection_in_seldondeployments.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# The following patch adds a directive for certmanager to inject CA into the CRD | ||
# CRD conversion requires k8s 1.13 or later. | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) | ||
name: seldondeployments.machinelearning.seldon.io |
Oops, something went wrong.