{"action":"created","issue":{"url":"https://api.github.com/repos/kubeless/kubeless/issues/905","repository_url":"https://api.github.com/repos/kubeless/kubeless","labels_url":"https://api.github.com/repos/kubeless/kubeless/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/kubeless/kubeless/issues/905/comments","events_url":"https://api.github.com/repos/kubeless/kubeless/issues/905/events","html_url":"https://github.com/kubeless/kubeless/issues/905","id":358069461,"node_id":"MDU6SXNzdWUzNTgwNjk0NjE=","number":905,"title":"Update an existing function via yaml","user":{"login":"AlessiaPileri","id":23658619,"node_id":"MDQ6VXNlcjIzNjU4NjE5","avatar_url":"https://avatars1.githubusercontent.com/u/23658619?v=4","gravatar_id":"","url":"https://api.github.com/users/AlessiaPileri","html_url":"https://github.com/AlessiaPileri","followers_url":"https://api.github.com/users/AlessiaPileri/followers","following_url":"https://api.github.com/users/AlessiaPileri/following{/other_user}","gists_url":"https://api.github.com/users/AlessiaPileri/gists{/gist_id}","starred_url":"https://api.github.com/users/AlessiaPileri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlessiaPileri/subscriptions","organizations_url":"https://api.github.com/users/AlessiaPileri/orgs","repos_url":"https://api.github.com/users/AlessiaPileri/repos","events_url":"https://api.github.com/users/AlessiaPileri/events{/privacy}","received_events_url":"https://api.github.com/users/AlessiaPileri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-07T13:34:54Z","updated_at":"2018-09-10T08:52:18Z","closed_at":"2018-09-10T08:52:18Z","author_association":"NONE","body":"**Is this a BUG REPORT or FEATURE REQUEST?**:\r\nSUPPORT\r\n\r\n**What happened**:\r\nI have some functions deployed on kubernetes cluster in a Continuous Deployment context.\r\nI package all my functions in a zip file, and I deploy it via .yaml  file.\r\nWhen I modify an existing function, I create a new zip package (the name of the package is always latest.zip) and reapply the yaml file, but the pod containing the function is always referencing the old one.\r\nHow can I ensure the update goes well?\r\nThe file I use to deploy functions is like this one:\r\n\r\n```\r\napiVersion: kubeless.io/v1beta1\r\nkind: Function\r\nmetadata:\r\n  name: store-user-position\r\n  labels:\r\n    app: *******\r\n    chart: *******\r\n    release: *******\r\n    heritage: Tiller\r\n    created-by: kubeless\r\n    function: name-of-my-func\r\n  namespace: kubeless\r\nspec:\r\n  deployment:\r\n    spec:\r\n      metadata:\r\n        annotations:\r\n          checksum/config-map: 6f780bf1c2b4180c18cbc85d0f77799c8af747177f49557b01fa14ae7fd20828\r\n          deployUuid: e09c33c2-14ac-4169-a68a-8709c889d0a2\r\n      template:\r\n        spec:\r\n          containers:\r\n          - imagePullPolicy: Always\r\n            name: name-of-my-func\r\n            envFrom:\r\n            - configMapRef:\r\n                name: name-of-my-func-cfg\r\n  function: https://*****.blob.core.windows.net/functions/latest.zip\r\n  function-content-type: url+zip\r\n  handler: index.name-of-my-func\r\n  runtime: nodejs8\r\n  service:\r\n    ports:\r\n    - name: http-function-port\r\n      port: 8080\r\n      protocol: TCP\r\n      targetPort: 8080\r\n    selector:\r\n      created-by: kubeless\r\n      function: store-user-position\r\n    type: ClusterIP\r\n  timeout: \"180\"\r\n```\r\n\r\nNote that I add and annotation 'deployUuid' trying to force the re-download of the zip, but it doesn't work."},"comment":{"url":"https://api.github.com/repos/kubeless/kubeless/issues/comments/419837845","html_url":"https://github.com/kubeless/kubeless/issues/905#issuecomment-419837845","issue_url":"https://api.github.com/repos/kubeless/kubeless/issues/905","id":419837845,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTgzNzg0NQ==","user":{"login":"AlessiaPileri","id":23658619,"node_id":"MDQ6VXNlcjIzNjU4NjE5","avatar_url":"https://avatars1.githubusercontent.com/u/23658619?v=4","gravatar_id":"","url":"https://api.github.com/users/AlessiaPileri","html_url":"https://github.com/AlessiaPileri","followers_url":"https://api.github.com/users/AlessiaPileri/followers","following_url":"https://api.github.com/users/AlessiaPileri/following{/other_user}","gists_url":"https://api.github.com/users/AlessiaPileri/gists{/gist_id}","starred_url":"https://api.github.com/users/AlessiaPileri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlessiaPileri/subscriptions","organizations_url":"https://api.github.com/users/AlessiaPileri/orgs","repos_url":"https://api.github.com/users/AlessiaPileri/repos","events_url":"https://api.github.com/users/AlessiaPileri/events{/privacy}","received_events_url":"https://api.github.com/users/AlessiaPileri/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T08:52:18Z","updated_at":"2018-09-10T08:52:18Z","author_association":"NONE","body":"Thank you @andresmgot, I'll update my .yaml file with checksum in order to trigger the update.\r\nI'm using the same name of the package .zip only in develop environment, with continuous deployment. In production environment funcions' package has the name of the release version, in order to rollback in case of problems."}}
{"actor":{"display_login":"AlessiaPileri"}}