• Kubernetes Submit Queue's avatar
    Merge pull request #65719 from Cynerva/gkk/upgrade-resources · d62c08e7
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 65719, 65764). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    juju: Fix upgrade actions not working with resources
    
    **What this PR does / why we need it**:
    
    This fixes an issue with the kubernetes-master and kubernetes-worker charms, where running the `upgrade` action does not actually perform an upgrade when snaps are attached as resources.
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    
    https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/528
    
    **Special notes for your reviewer**:
    
    The underlying issue is that both layer-snap and the kubernetes layers are using `any_file_changed` to look for changes in the resources. This PR fixes it by removing the use of `any_file_changed` in the top-level layers, and implementing our own code for it instead.
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    d62c08e7
Name
Last commit
Last update
..
addons Loading commit data...
centos Loading commit data...
gce Loading commit data...
images Loading commit data...
juju Loading commit data...
kubemark Loading commit data...
kubernetes-anywhere Loading commit data...
local Loading commit data...
log-dump Loading commit data...
pre-existing Loading commit data...
skeleton Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
README.md Loading commit data...
clientbin.sh Loading commit data...
common.sh Loading commit data...
get-kube-binaries.sh Loading commit data...
get-kube-local.sh Loading commit data...
get-kube.sh Loading commit data...
kube-down.sh Loading commit data...
kube-up.sh Loading commit data...
kube-util.sh Loading commit data...
kubeadm.sh Loading commit data...
kubectl.sh Loading commit data...
restore-from-backup.sh Loading commit data...
test-e2e.sh Loading commit data...
test-network.sh Loading commit data...
test-smoke.sh Loading commit data...
update-storage-objects.sh Loading commit data...
validate-cluster.sh Loading commit data...