• k8s-merge-robot's avatar
    Merge pull request #25196 from luxas/auto_create_kube_system · 667f5860
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Automatically create the kube-system namespace
    
    At the same time we ensure that the `default` namespace is present, it also creates `kube-system` if it doesn't exist.
    
    `kube-system` will now exist from the beginning, and will be recreated every 10s if deleted, in the same manner as the `default` ns
    
    This makes UX much better, no need for `kubectl`ing a `kube-system.yaml` file anymore for a function that is essential to Kubernetes (addons). For instance, this makes dashboard deployment much easier when there's no need to check for the `kube-system` ns first.
    
    A follow up in the future may remove places where logic to manually create the kube-system namespace is present.
    
    Also fixed a small bug where `CreateNamespaceIfNeeded` ignored the `ns` parameter and was hardcoded to `api.NamespaceDefault`.
    
    @davidopp @lavalamp @thockin @mikedanese @bryk @cheld @fgrzadkowski @smarterclayton @wojtek-t @dlorenc @vishh @dchen1107 @bgrant0607 @roberthbailey
    
    <!-- Reviewable:start -->
    ---
    This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/25196)
    <!-- Reviewable:end -->
    667f5860
Name
Last commit
Last update
..
admit Loading commit data...
alwayspullimages Loading commit data...
antiaffinity Loading commit data...
deny Loading commit data...
exec Loading commit data...
initialresources Loading commit data...
limitranger Loading commit data...
namespace Loading commit data...
persistentvolume/label Loading commit data...
resourcequota Loading commit data...
security Loading commit data...
securitycontext/scdeny Loading commit data...
serviceaccount Loading commit data...
OWNERS Loading commit data...