Skip to content

Commit

Permalink
Issue #54 Delete the v1beta1.metrics.k8s.io apiservice
Browse files Browse the repository at this point in the history
On CRC side when a user create a new project/namespace and want to delete,
it goes to hanging state forever. Looking on the kubernetes side and found out
it is occur because of CRD's [0][1], as part of our CRC creation we scale down
the cluster wide monitoring operator[2] which serve 'v1beta1.metrics.k8s.io`.

[0] kubernetes/kubernetes#60807
[1] kubernetes/kubernetes#60807 (comment)
[2] https://github.com/code-ready/snc/blob/master/snc.sh#L184-L186
  • Loading branch information
praveenkumar committed Jun 27, 2019
1 parent 4a1790c commit f661f17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,7 @@ ${OC} patch --patch='{"spec": {"replicas": 1}}' --type=merge ingresscontroller/d

# Set default route for registry CRD from false to true.
${OC} patch config.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge

# Delete the v1beta1.metrics.k8s.io apiservice since we are already scale down cluster wide monitioring.
# Since this CRD block namespace deletion forever.
${OC} delete apiservice v1beta1.metrics.k8s.io

0 comments on commit f661f17

Please sign in to comment.