use server side apply#4648
Conversation
1d833b3 to
2f9fca0
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadel The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
a4864ee to
c28be78
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadel The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@kadel, First off, I know that I myself don't entertain the "what about users who modify devfile by hand" discussions. So I'm not asking to tackle the scenario here. I'm just putting my thoughts, and we can very well handle it at a later stage. With the disclaimer in mind, should something change with regard to our approach for When I wrote that, I simply made sure to ignore the error. But if a user modified the service info (Kubernetes inlined thing) in devfile by hand, For example, I'm spinning up an EtcdCluster using below manifest: - kubernetes:
inlined: |
apiVersion: etcd.database.coreos.com/v1beta2
kind: EtcdCluster
metadata:
annotations:
etcd.database.coreos.com/scope: clusterwide
name: example
spec:
size: 3
version: 3.2.13
name: exampleI then modified size from |
yes, it should. SSA is not required for this. It should update the existing resources. |
|
/retest |
|
/retest |
1b9daef to
c28be78
Compare
|
done, managed to a resolved failing test. It was due to conflicts with #4671 |
|
/lgtm |
|
/hold |
|
Looks good to me. /hold cancel |
What type of PR is this?
/kind cleanup
/kind code-refactoring
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #4553
** Notes ***
There is a fallback for k8s < v1.16.0. On later versions, it falls back to not using server-side apply. This is ok, as the main reason for using SSA is SBO and SBO won't work on those k8s versions anyway.
I have executed
▶ make test-integration-devfileagainst ocp 3.11.Two tests are failing.
But the same two tests are failing on master as well. So this is not something that was introduced in this PR.
#4678
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer: