Repository navigation
feat: get image build logs - #648
Conversation
|
You can access the deployment of this PR at https://renku-ci-ds-648.dev.renku.ch |
efd2978 to
21a8a83
Compare
eea39c8 to
3e69fd9
Compare
| build_model = build.dump() | ||
|
|
||
| if self.shipwright_client is None: | ||
| raise errors.MissingResourceError(message=f"Build with id '{build_id}' does not have logs.") |
There was a problem hiding this comment.
question: shouldn't this be a 5xx server error? this happening would mean the server is not set up correctly?
There was a problem hiding this comment.
For now, shipwright_client is meant to be None in two cases: when the feature is not enabled and when running tests. In the future, it would be nicer to setup mocks like in components/renku_data_services/k8s/clients.py to improve tests.
In #656 (not ready yet), it should not be possible to run code which would touch shipwright when the feature is not enabled (the routes are not enabled).
21a8a83 to
89ba296
Compare
3e69fd9 to
40f01df
Compare
|
Tearing down the temporary RenkuLab deplyoment for this PR. |
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec: ```yaml type: object # One can use x-kubernetes-preserve-unknown-fields: true # at the root of the schema (and inside any properties, additionalProperties) # to get the traditional CRD behaviour that nothing is pruned, despite # setting spec.preserveUnknownProperties: false. # # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ # See issue: knative/serving#912 x-kubernetes-preserve-unknown-fields: true ``` In other words, there is no API spec! (In openAPI format)
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec: ```yaml type: object # One can use x-kubernetes-preserve-unknown-fields: true # at the root of the schema (and inside any properties, additionalProperties) # to get the traditional CRD behaviour that nothing is pruned, despite # setting spec.preserveUnknownProperties: false. # # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ # See issue: knative/serving#912 x-kubernetes-preserve-unknown-fields: true ``` In other words, there is no API spec! (In openAPI format)
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec: ```yaml type: object # One can use x-kubernetes-preserve-unknown-fields: true # at the root of the schema (and inside any properties, additionalProperties) # to get the traditional CRD behaviour that nothing is pruned, despite # setting spec.preserveUnknownProperties: false. # # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ # See issue: knative/serving#912 x-kubernetes-preserve-unknown-fields: true ``` In other words, there is no API spec! (In openAPI format)
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec: ```yaml type: object # One can use x-kubernetes-preserve-unknown-fields: true # at the root of the schema (and inside any properties, additionalProperties) # to get the traditional CRD behaviour that nothing is pruned, despite # setting spec.preserveUnknownProperties: false. # # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ # See issue: knative/serving#912 x-kubernetes-preserve-unknown-fields: true ``` In other words, there is no API spec! (In openAPI format)
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec: ```yaml type: object # One can use x-kubernetes-preserve-unknown-fields: true # at the root of the schema (and inside any properties, additionalProperties) # to get the traditional CRD behaviour that nothing is pruned, despite # setting spec.preserveUnknownProperties: false. # # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ # See issue: knative/serving#912 x-kubernetes-preserve-unknown-fields: true ``` In other words, there is no API spec! (In openAPI format)
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec: ```yaml type: object # One can use x-kubernetes-preserve-unknown-fields: true # at the root of the schema (and inside any properties, additionalProperties) # to get the traditional CRD behaviour that nothing is pruned, despite # setting spec.preserveUnknownProperties: false. # # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ # See issue: knative/serving#912 x-kubernetes-preserve-unknown-fields: true ``` In other words, there is no API spec! (In openAPI format)
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec: ```yaml type: object # One can use x-kubernetes-preserve-unknown-fields: true # at the root of the schema (and inside any properties, additionalProperties) # to get the traditional CRD behaviour that nothing is pruned, despite # setting spec.preserveUnknownProperties: false. # # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ # See issue: knative/serving#912 x-kubernetes-preserve-unknown-fields: true ``` In other words, there is no API spec! (In openAPI format)
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec: ```yaml type: object # One can use x-kubernetes-preserve-unknown-fields: true # at the root of the schema (and inside any properties, additionalProperties) # to get the traditional CRD behaviour that nothing is pruned, despite # setting spec.preserveUnknownProperties: false. # # See https://kubernetes.io/blog/2019/06/20/crd-structural-schema/ # See issue: knative/serving#912 x-kubernetes-preserve-unknown-fields: true ``` In other words, there is no API spec! (In openAPI format)
PR Stack:
Important note: the code generator cannot be used for Tekton CRDs because this is what they use in the API spec:
In other words, there is no API spec! (In openAPI format)
/deploy #notest renku=build/session-env-builders renku-ui=leafty/session-env-builders-5 renku-notebooks=leafty/shipwright-buildrun-cache extra-values=dataService.imageBuilders.enabled=true,dataService.imageBuilders.outputImagePrefix=harbor.dev.renku.ch/flora-dev/,dataService.imageBuilders.pushSecretName=flora-docker-secret