Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dry run deployment config #2648

Closed
zakazai opened this issue Nov 16, 2020 · 1 comment · Fixed by #2651
Closed

Dry run deployment config #2648

zakazai opened this issue Nov 16, 2020 · 1 comment · Fixed by #2651
Assignees
Milestone

Comments

@zakazai
Copy link

zakazai commented Nov 16, 2020

Context

I'm trying to validate a deployment config at server

$ cat deploy_test.yaml
apiVersion: machinelearning.seldon.io/v1
kind: SeldonDeployment
metadata:
  name: iris-model-test
  namespace: seldon-service
spec:
  name: iris
  predictors:
  - graph:
      implementation: SKLEARN_SERVER
      modelUri: gs://seldon-models/sklearn/iris
      name: classifier
    name: default
    replicas: 1

and got this result

$ kubectl apply -f deploy_test.yaml --dry-run=server
Error from server (BadRequest): error when applying patch:
{"spec":{"predictors":[{"graph":{"implementation":"SKLEARN_SERVER","modelUri":"gs://seldon-models/sklearn/iris","name":"classifier"},"name":"default","replicas":1}]}}
to:
Resource: "machinelearning.seldon.io/v1, Resource=seldondeployments", GroupVersionKind: "machinelearning.seldon.io/v1, Kind=SeldonDeployment"
Name: "iris-model-test", Namespace: "seldon-service"
for: "deploy_test.yaml": admission webhook "v1.mseldondeployment.kb.io" does not support dry run

Currently I'm trying to create a CI test to validate my deployment config during pull request.
I'm not sure if this already possible or not.

Environments

  • minikube version: v1.15.0
  • seldon-core-operator-1.4.0
  • kubectl Client Version "v1.19.4", Server Version "v1.19.4"
@zakazai zakazai added the triage Needs to be triaged and prioritised accordingly label Nov 16, 2020
@ukclivecox
Copy link
Contributor

I think we are missing the sideEffects directive in the Webhook definitions. As its not there defaut to UnKnown and therefore dry run is rejected.
https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#mutatingwebhook-v1-admissionregistration-k8s-io

I think as we don't have sideEffects this could be changed.

@ukclivecox ukclivecox self-assigned this Nov 16, 2020
@ukclivecox ukclivecox added this to the 1.5 milestone Nov 16, 2020
@ukclivecox ukclivecox modified the milestones: 1.5, 1.6 Nov 26, 2020
@ukclivecox ukclivecox removed the triage Needs to be triaged and prioritised accordingly label Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants