Upgrade Gitea dependencies #141

Merged
luhahn merged 5 commits from refs/pull/141/head into master 2021-06-15 21:09:03 +00:00
luhahn commented 2021-04-12 11:01:24 +00:00 (Migrated from gitea.com)
  • postgresql 9.7.2 to 10.3.17
  • mariadb 8.0.0 to 9.3.6
  • memcached 4.2.20 to 5.9.0

Tested on my clusters.

- postgresql 9.7.2 to 10.3.17 - mariadb 8.0.0 to 9.3.6 - memcached 4.2.20 to 5.9.0 Tested on my clusters.
techknowlogick (Migrated from gitea.com) approved these changes 2021-04-16 13:17:26 +00:00
modzilla commented 2021-05-12 06:52:30 +00:00 (Migrated from gitea.com)

Worked fine for me as well, after deleting the postgres statefulset. It just did not want to upgrade that.

upgrade.go:123: [debug] preparing upgrade for gitea
upgrade.go:131: [debug] performing update for gitea
upgrade.go:303: [debug] creating upgraded release for gitea
client.go:201: [debug] checking 13 resources for changes
client.go:464: [debug] Looks like there are no changes for ServiceAccount "gitea-memcached"
client.go:464: [debug] Looks like there are no changes for Service "gitea-postgresql-headless"
client.go:464: [debug] Looks like there are no changes for Service "gitea-postgresql"
client.go:464: [debug] Looks like there are no changes for Service "gitea-http"
client.go:464: [debug] Looks like there are no changes for Service "gitea-ssh"
client.go:233: [debug] error updating the resource "gitea-postgresql":
         cannot patch "gitea-postgresql" with kind StatefulSet: StatefulSet.apps "gitea-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden
upgrade.go:369: [debug] warning: Upgrade "gitea" failed: cannot patch "gitea-postgresql" with kind StatefulSet: StatefulSet.apps "gitea-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden
Error: UPGRADE FAILED: cannot patch "gitea-postgresql" with kind StatefulSet: StatefulSet.apps "gitea-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden
helm.go:81: [debug] cannot patch "gitea-postgresql" with kind StatefulSet: StatefulSet.apps "gitea-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden
helm.sh/helm/v3/pkg/kube.(*Client).Update
        /home/circleci/helm.sh/helm/pkg/kube/client.go:246
helm.sh/helm/v3/pkg/action.(*Upgrade).performUpgrade
        /home/circleci/helm.sh/helm/pkg/action/upgrade.go:317
helm.sh/helm/v3/pkg/action.(*Upgrade).Run
        /home/circleci/helm.sh/helm/pkg/action/upgrade.go:132
main.newUpgradeCmd.func2
        /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:155
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895
main.main
        /home/circleci/helm.sh/helm/cmd/helm/helm.go:80
runtime.main
        /usr/local/go/src/runtime/proc.go:204
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1374
UPGRADE FAILED
main.newUpgradeCmd.func2
        /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:157
github.com/spf13/cobra.(*Command).execute
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850
github.com/spf13/cobra.(*Command).ExecuteC
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958
github.com/spf13/cobra.(*Command).Execute
        /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895
main.main
        /home/circleci/helm.sh/helm/cmd/helm/helm.go:80
runtime.main
        /usr/local/go/src/runtime/proc.go:204
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1374
Worked fine for me as well, after deleting the postgres statefulset. It just did not want to upgrade that. ```console upgrade.go:123: [debug] preparing upgrade for gitea upgrade.go:131: [debug] performing update for gitea upgrade.go:303: [debug] creating upgraded release for gitea client.go:201: [debug] checking 13 resources for changes client.go:464: [debug] Looks like there are no changes for ServiceAccount "gitea-memcached" client.go:464: [debug] Looks like there are no changes for Service "gitea-postgresql-headless" client.go:464: [debug] Looks like there are no changes for Service "gitea-postgresql" client.go:464: [debug] Looks like there are no changes for Service "gitea-http" client.go:464: [debug] Looks like there are no changes for Service "gitea-ssh" client.go:233: [debug] error updating the resource "gitea-postgresql": cannot patch "gitea-postgresql" with kind StatefulSet: StatefulSet.apps "gitea-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden upgrade.go:369: [debug] warning: Upgrade "gitea" failed: cannot patch "gitea-postgresql" with kind StatefulSet: StatefulSet.apps "gitea-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden Error: UPGRADE FAILED: cannot patch "gitea-postgresql" with kind StatefulSet: StatefulSet.apps "gitea-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden helm.go:81: [debug] cannot patch "gitea-postgresql" with kind StatefulSet: StatefulSet.apps "gitea-postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden helm.sh/helm/v3/pkg/kube.(*Client).Update /home/circleci/helm.sh/helm/pkg/kube/client.go:246 helm.sh/helm/v3/pkg/action.(*Upgrade).performUpgrade /home/circleci/helm.sh/helm/pkg/action/upgrade.go:317 helm.sh/helm/v3/pkg/action.(*Upgrade).Run /home/circleci/helm.sh/helm/pkg/action/upgrade.go:132 main.newUpgradeCmd.func2 /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:155 github.com/spf13/cobra.(*Command).execute /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 github.com/spf13/cobra.(*Command).ExecuteC /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 github.com/spf13/cobra.(*Command).Execute /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895 main.main /home/circleci/helm.sh/helm/cmd/helm/helm.go:80 runtime.main /usr/local/go/src/runtime/proc.go:204 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374 UPGRADE FAILED main.newUpgradeCmd.func2 /home/circleci/helm.sh/helm/cmd/helm/upgrade.go:157 github.com/spf13/cobra.(*Command).execute /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 github.com/spf13/cobra.(*Command).ExecuteC /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 github.com/spf13/cobra.(*Command).Execute /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895 main.main /home/circleci/helm.sh/helm/cmd/helm/helm.go:80 runtime.main /usr/local/go/src/runtime/proc.go:204 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374 ```
zeripath (Migrated from gitea.com) approved these changes 2021-06-07 20:38:11 +00:00
techknowlogick (Migrated from gitea.com) approved these changes 2021-06-15 21:08:43 +00:00
Sign in to join this conversation.
No description provided.