Skip to content

Commit 2f5e753

Browse files
fix: ordering of functionality for setting and evaluating label expressions (argoproj#9661)
* chore(deps): bump docker/login-action from 1 to 2 (#1) Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v1...v2) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump docker/setup-buildx-action from 1 to 2 (#3) Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](docker/setup-buildx-action@v1...v2) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump docker/setup-qemu-action from 1 to 2 (#4) Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](docker/setup-qemu-action@v1...v2) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.24 to 7.0.26 (#5) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.24 to 7.0.26. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.24...v7.0.26) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.75.0 to 0.78.0 (#6) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.75.0 to 0.78.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.75.0...v0.78.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/argoproj/pkg from 0.12.0 to 0.13.2 (#7) Bumps [github.com/argoproj/pkg](https://github.com/argoproj/pkg) from 0.12.0 to 0.13.2. - [Release notes](https://github.com/argoproj/pkg/releases) - [Commits](argoproj/pkg@v0.12.0...v0.13.2) --- updated-dependencies: - dependency-name: github.com/argoproj/pkg dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.78.0 to 0.79.0 (#8) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.78.0 to 0.79.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.78.0...v0.79.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/coreos/go-oidc/v3 from 3.1.0 to 3.2.0 (#9) Bumps [github.com/coreos/go-oidc/v3](https://github.com/coreos/go-oidc) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/coreos/go-oidc/releases) - [Commits](coreos/go-oidc@v3.1.0...v3.2.0) --- updated-dependencies: - dependency-name: github.com/coreos/go-oidc/v3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/aliyun/aliyun-oss-go-sdk (#10) Bumps [github.com/aliyun/aliyun-oss-go-sdk](https://github.com/aliyun/aliyun-oss-go-sdk) from 2.2.2+incompatible to 2.2.3+incompatible. - [Release notes](https://github.com/aliyun/aliyun-oss-go-sdk/releases) - [Changelog](https://github.com/aliyun/aliyun-oss-go-sdk/blob/master/CHANGELOG.md) - [Commits](aliyun/aliyun-oss-go-sdk@v2.2.2...v2.2.3) --- updated-dependencies: - dependency-name: github.com/aliyun/aliyun-oss-go-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/prometheus/client_golang (#11) Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.1 to 1.12.2. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/v1.12.2/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.12.1...v1.12.2) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.79.0 to 0.80.0 (#12) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.79.0 to 0.80.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.79.0...v0.80.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump cloud.google.com/go/storage from 1.22.0 to 1.22.1 (#13) Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.22.0 to 1.22.1. - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@spanner/v1.22.0...storage/v1.22.1) --- updated-dependencies: - dependency-name: cloud.google.com/go/storage dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.80.0 to 0.81.0 (#14) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.80.0 to 0.81.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.80.0...v0.81.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/aliyun/aliyun-oss-go-sdk (#15) Bumps [github.com/aliyun/aliyun-oss-go-sdk](https://github.com/aliyun/aliyun-oss-go-sdk) from 2.2.3+incompatible to 2.2.4+incompatible. - [Release notes](https://github.com/aliyun/aliyun-oss-go-sdk/releases) - [Changelog](https://github.com/aliyun/aliyun-oss-go-sdk/blob/master/CHANGELOG.md) - [Commits](aliyun/aliyun-oss-go-sdk@v2.2.3...v2.2.4) --- updated-dependencies: - dependency-name: github.com/aliyun/aliyun-oss-go-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.26 to 7.0.27 (#16) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.26 to 7.0.27. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.26...v7.0.27) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/spf13/viper from 1.11.0 to 1.12.0 (#17) Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.11.0 to 1.12.0. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](spf13/viper@v1.11.0...v1.12.0) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.81.0 to 0.82.0 (#18) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.81.0 to 0.82.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.81.0...v0.82.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.82.0 to 0.83.0 (#19) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.82.0 to 0.83.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.82.0...v0.83.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (#20) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.7.2. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](stretchr/testify@v1.7.1...v1.7.2) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump actions/setup-python from 3 to 4 (#21) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v3...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.27 to 7.0.28 (#22) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.27 to 7.0.28. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.27...v7.0.28) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.83.0 to 0.84.0 (#23) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.83.0 to 0.84.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.83.0...v0.84.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/argoproj/pkg from 0.13.2 to 0.13.3 (#24) Bumps [github.com/argoproj/pkg](https://github.com/argoproj/pkg) from 0.13.2 to 0.13.3. - [Release notes](https://github.com/argoproj/pkg/releases) - [Commits](argoproj/pkg@v0.13.2...v0.13.3) --- updated-dependencies: - dependency-name: github.com/argoproj/pkg dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/prometheus/common from 0.34.0 to 0.35.0 (#25) Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.34.0 to 0.35.0. - [Release notes](https://github.com/prometheus/common/releases) - [Commits](prometheus/common@v0.34.0...v0.35.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.28 to 7.0.29 (#26) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.28 to 7.0.29. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.28...v7.0.29) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.84.0 to 0.85.0 (#27) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.84.0 to 0.85.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.84.0...v0.85.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (#29) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.2 to 1.7.4. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](stretchr/testify@v1.7.2...v1.7.4) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/argoproj/pkg from 0.13.3 to 0.13.6 (#30) Bumps [github.com/argoproj/pkg](https://github.com/argoproj/pkg) from 0.13.3 to 0.13.6. - [Release notes](https://github.com/argoproj/pkg/releases) - [Commits](argoproj/pkg@v0.13.3...v0.13.6) --- updated-dependencies: - dependency-name: github.com/argoproj/pkg dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump cloud.google.com/go/storage from 1.22.1 to 1.23.0 (#31) Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.22.1 to 1.23.0. - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@pubsub/v1.22.1...pubsub/v1.23.0) --- updated-dependencies: - dependency-name: cloud.google.com/go/storage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 (#32) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.4 to 1.7.5. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](stretchr/testify@v1.7.4...v1.7.5) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.85.0 to 0.86.0 (#33) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.85.0 to 0.86.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.85.0...v0.86.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.29 to 7.0.30 (#34) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.29 to 7.0.30. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.29...v7.0.30) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (#36) Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](stretchr/testify@v1.7.5...v1.8.0) --- updated-dependencies: - dependency-name: github.com/stretchr/testify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump dependabot/fetch-metadata from 1.3.1 to 1.3.3 (#37) Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.3.1 to 1.3.3. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](dependabot/fetch-metadata@v1.3.1...v1.3.3) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.30 to 7.0.31 (#38) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.30 to 7.0.31. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.30...v7.0.31) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/prometheus/common from 0.35.0 to 0.36.0 (#39) Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.35.0 to 0.36.0. - [Release notes](https://github.com/prometheus/common/releases) - [Commits](prometheus/common@v0.35.0...v0.36.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.86.0 to 0.87.0 (#40) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.86.0 to 0.87.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.86.0...v0.87.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/prometheus/common from 0.36.0 to 0.37.0 (#41) Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.36.0 to 0.37.0. - [Release notes](https://github.com/prometheus/common/releases) - [Commits](prometheus/common@v0.36.0...v0.37.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0 (#42) Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.8.1 to 1.9.0. - [Release notes](https://github.com/sirupsen/logrus/releases) - [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md) - [Commits](sirupsen/logrus@v1.8.1...v1.9.0) --- updated-dependencies: - dependency-name: github.com/sirupsen/logrus dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.87.0 to 0.88.0 (#43) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.87.0 to 0.88.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.87.0...v0.88.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump cloud.google.com/go/storage from 1.23.0 to 1.24.0 (#44) Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.23.0 to 1.24.0. - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@pubsub/v1.23.0...pubsub/v1.24.0) --- updated-dependencies: - dependency-name: cloud.google.com/go/storage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.31 to 7.0.32 (#45) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.31 to 7.0.32. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.31...v7.0.32) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.88.0 to 0.89.0 (#46) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.88.0 to 0.89.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.88.0...v0.89.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.89.0 to 0.90.0 (#47) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.89.0 to 0.90.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.89.0...v0.90.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.32 to 7.0.33 (#48) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.32 to 7.0.33. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.32...v7.0.33) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.90.0 to 0.91.0 (#49) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.90.0 to 0.91.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.90.0...v0.91.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/minio/minio-go/v7 from 7.0.33 to 7.0.34 (#50) Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.33 to 7.0.34. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](minio/minio-go@v7.0.33...v7.0.34) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/tidwall/gjson from 1.14.1 to 1.14.2 (#51) Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.14.1 to 1.14.2. - [Release notes](https://github.com/tidwall/gjson/releases) - [Commits](tidwall/gjson@v1.14.1...v1.14.2) --- updated-dependencies: - dependency-name: github.com/tidwall/gjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/prometheus/client_golang (#52) Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.2 to 1.13.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.12.2...v1.13.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.91.0 to 0.92.0 (#53) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.91.0 to 0.92.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.91.0...v0.92.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump cloud.google.com/go/storage from 1.24.0 to 1.25.0 (#54) Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.24.0 to 1.25.0. - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@pubsub/v1.24.0...spanner/v1.25.0) --- updated-dependencies: - dependency-name: cloud.google.com/go/storage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.92.0 to 0.93.0 (#55) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.92.0 to 0.93.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.92.0...v0.93.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/argoproj-labs/argo-dataflow (#56) Bumps [github.com/argoproj-labs/argo-dataflow](https://github.com/argoproj-labs/argo-dataflow) from 0.10.2 to 0.10.3. - [Release notes](https://github.com/argoproj-labs/argo-dataflow/releases) - [Changelog](https://github.com/argoproj-labs/argo-dataflow/blob/main/CHANGELOG.md) - [Commits](argoproj-labs/old-argo-dataflow@v0.10.2...v0.10.3) --- updated-dependencies: - dependency-name: github.com/argoproj-labs/argo-dataflow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/tidwall/gjson from 1.14.2 to 1.14.3 (#57) Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson) from 1.14.2 to 1.14.3. - [Release notes](https://github.com/tidwall/gjson/releases) - [Commits](tidwall/gjson@v1.14.2...v1.14.3) --- updated-dependencies: - dependency-name: github.com/tidwall/gjson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github.com/aliyun/aliyun-oss-go-sdk (#58) Bumps [github.com/aliyun/aliyun-oss-go-sdk](https://github.com/aliyun/aliyun-oss-go-sdk) from 2.2.4+incompatible to 2.2.5+incompatible. - [Release notes](https://github.com/aliyun/aliyun-oss-go-sdk/releases) - [Changelog](https://github.com/aliyun/aliyun-oss-go-sdk/blob/master/CHANGELOG.md) - [Commits](aliyun/aliyun-oss-go-sdk@v2.2.4...v2.2.5) --- updated-dependencies: - dependency-name: github.com/aliyun/aliyun-oss-go-sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google.golang.org/api from 0.93.0 to 0.94.0 (#59) Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.93.0 to 0.94.0. - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](googleapis/google-api-go-client@v0.93.0...v0.94.0) --- updated-dependencies: - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump cloud.google.com/go/storage from 1.25.0 to 1.26.0 (#60) Bumps [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) from 1.25.0 to 1.26.0. - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@pubsub/v1.25.0...spanner/v1.26.0) --- updated-dependencies: - dependency-name: cloud.google.com/go/storage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: breaking updateWorkflowMetadata() into two functions Signed-off-by: Julie Vogelman <[email protected]> * fix: separate the update of workflowMetadata global-params from the setting of the actual metadata Signed-off-by: Julie Vogelman <[email protected]> * fix: move the code around a bit Signed-off-by: Julie Vogelman <[email protected]> * fix: reorder evaluation of labelsFrom Signed-off-by: Julie Vogelman <[email protected]> * fix: evaluate LabelsFrom Signed-off-by: Julie Vogelman <[email protected]> * fix: don't think we need to do substitution of templates here Signed-off-by: Julie Vogelman <[email protected]> * fix: empty commit Signed-off-by: Julie Vogelman <[email protected]> * fix: adding unit test Signed-off-by: Julie Vogelman <[email protected]> * chore: comments Signed-off-by: Julie Vogelman <[email protected]> * fix: empty commit Signed-off-by: Julie Vogelman <[email protected]> * chore: restore generation of Labels/Annotations maps Signed-off-by: Julie Vogelman <[email protected]> * chore: comment Signed-off-by: Julie Vogelman <[email protected]> * fix: should update globalParams too Signed-off-by: Julie Vogelman <[email protected]> * fix: typo Signed-off-by: Julie Vogelman <[email protected]> * fix: empty commit Signed-off-by: Julie Vogelman <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Julie Vogelman <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 4e34979 commit 2f5e753

12 files changed

+133
-54
lines changed

workflow/controller/operator.go

Lines changed: 64 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -482,22 +482,30 @@ func (woc *wfOperationCtx) operate(ctx context.Context) {
482482
}
483483
}
484484

485+
// set Labels and Annotations for the Workflow
486+
// Also, since we're setting Labels and Annotations we need to find any
487+
// parameters formatted as "workflow.labels.<param>" or "workflow.annotations.<param>"
488+
// and perform substitution
485489
func (woc *wfOperationCtx) updateWorkflowMetadata() error {
490+
updatedParams := make(common.Parameters)
486491
if md := woc.execWf.Spec.WorkflowMetadata; md != nil {
487-
if woc.wf.ObjectMeta.Labels == nil {
488-
woc.wf.ObjectMeta.Labels = make(map[string]string)
492+
if woc.wf.Labels == nil {
493+
woc.wf.Labels = make(map[string]string)
489494
}
490495
for n, v := range md.Labels {
491496
woc.wf.Labels[n] = v
492497
woc.globalParams["workflow.labels."+n] = v
498+
updatedParams["workflow.labels."+n] = v
493499
}
494-
if woc.wf.ObjectMeta.Annotations == nil {
495-
woc.wf.ObjectMeta.Annotations = make(map[string]string)
500+
if woc.wf.Annotations == nil {
501+
woc.wf.Annotations = make(map[string]string)
496502
}
497503
for n, v := range md.Annotations {
498504
woc.wf.Annotations[n] = v
499505
woc.globalParams["workflow.annotations."+n] = v
506+
updatedParams["workflow.annotations."+n] = v
500507
}
508+
501509
env := env.GetFuncMap(template.EnvMap(woc.globalParams))
502510
for n, f := range md.LabelsFrom {
503511
r, err := expr.Eval(f.Expression, env)
@@ -510,8 +518,16 @@ func (woc *wfOperationCtx) updateWorkflowMetadata() error {
510518
}
511519
woc.wf.Labels[n] = v
512520
woc.globalParams["workflow.labels."+n] = v
521+
updatedParams["workflow.labels."+n] = v
513522
}
514523
woc.updated = true
524+
525+
// Now we need to do any substitution that involves these labels
526+
err := woc.substituteGlobalVariables(updatedParams)
527+
if err != nil {
528+
return err
529+
}
530+
515531
}
516532
return nil
517533
}
@@ -570,6 +586,23 @@ func (woc *wfOperationCtx) setGlobalParameters(executionParameters wfv1.Argument
570586
woc.globalParams["workflow.parameters."+param.Name] = param.Value.String()
571587
}
572588
}
589+
if woc.wf.Status.Outputs != nil {
590+
for _, param := range woc.wf.Status.Outputs.Parameters {
591+
if param.HasValue() {
592+
woc.globalParams["workflow.outputs.parameters."+param.Name] = param.GetValue()
593+
}
594+
}
595+
}
596+
597+
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
598+
// Set global parameters based on Labels and Annotations, both those that are defined in the execWf.ObjectMeta
599+
// and those that are defined in the execWf.Spec.WorkflowMetadata
600+
// Note: we no longer set globalParams based on LabelsFrom expressions here since they may themselves use parameters
601+
// and thus will need to be evaluated later based on the evaluation of those parameters
602+
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
603+
604+
md := woc.execWf.Spec.WorkflowMetadata
605+
573606
if workflowAnnotations, err := json.Marshal(woc.wf.ObjectMeta.Annotations); err == nil {
574607
woc.globalParams[common.GlobalVarWorkflowAnnotations] = string(workflowAnnotations)
575608
}
@@ -580,15 +613,30 @@ func (woc *wfOperationCtx) setGlobalParameters(executionParameters wfv1.Argument
580613
woc.globalParams[common.GlobalVarWorkflowLabels] = string(workflowLabels)
581614
}
582615
for k, v := range woc.wf.ObjectMeta.Labels {
583-
woc.globalParams["workflow.labels."+k] = v
616+
// if the Label will get overridden by a LabelsFrom expression later, don't set it now
617+
if md != nil {
618+
_, existsLabelsFrom := md.LabelsFrom[k]
619+
if !existsLabelsFrom {
620+
woc.globalParams["workflow.labels."+k] = v
621+
}
622+
} else {
623+
woc.globalParams["workflow.labels."+k] = v
624+
}
584625
}
585-
if woc.wf.Status.Outputs != nil {
586-
for _, param := range woc.wf.Status.Outputs.Parameters {
587-
if param.HasValue() {
588-
woc.globalParams["workflow.outputs.parameters."+param.Name] = param.GetValue()
626+
627+
if md != nil {
628+
for n, v := range md.Labels {
629+
// if the Label will get overridden by a LabelsFrom expression later, don't set it now
630+
_, existsLabelsFrom := md.LabelsFrom[n]
631+
if !existsLabelsFrom {
632+
woc.globalParams["workflow.labels."+n] = v
589633
}
590634
}
635+
for n, v := range md.Annotations {
636+
woc.globalParams["workflow.annotations."+n] = v
637+
}
591638
}
639+
592640
return nil
593641
}
594642

@@ -3532,16 +3580,17 @@ func (woc *wfOperationCtx) setExecWorkflow(ctx context.Context) error {
35323580
woc.markWorkflowFailed(ctx, fmt.Sprintf("failed to set global parameters: %s", err.Error()))
35333581
return err
35343582
}
3583+
3584+
err = woc.substituteGlobalVariables(woc.globalParams)
3585+
if err != nil {
3586+
return err
3587+
}
35353588
if woc.wf.Status.Phase == wfv1.WorkflowUnknown {
35363589
if err := woc.updateWorkflowMetadata(); err != nil {
35373590
woc.markWorkflowError(ctx, err)
35383591
return err
35393592
}
35403593
}
3541-
err = woc.substituteGlobalVariables()
3542-
if err != nil {
3543-
return err
3544-
}
35453594

35463595
// runtime value will be set after the substitution, otherwise will not be reflected from stored wf spec
35473596
woc.setGlobalRuntimeParameters()
@@ -3647,7 +3696,7 @@ func (woc *wfOperationCtx) mergedTemplateDefaultsInto(originalTmpl *wfv1.Templat
36473696
return nil
36483697
}
36493698

3650-
func (woc *wfOperationCtx) substituteGlobalVariables() error {
3699+
func (woc *wfOperationCtx) substituteGlobalVariables(params common.Parameters) error {
36513700
execWfSpec := woc.execWf.Spec
36523701

36533702
// To Avoid the stale Global parameter value substitution to templates.
@@ -3659,7 +3708,7 @@ func (woc *wfOperationCtx) substituteGlobalVariables() error {
36593708
return err
36603709
}
36613710

3662-
resolveSpec, err := template.Replace(string(wfSpec), woc.globalParams, true)
3711+
resolveSpec, err := template.Replace(string(wfSpec), params, true)
36633712
if err != nil {
36643713
return err
36653714
}

workflow/controller/operator_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7067,8 +7067,8 @@ func TestSubstituteGlobalVariablesLabelsAnnotations(t *testing.T) {
70677067
// entire template referenced; value not contained in WorkflowTemplate or Workflow
70687068
workflow: "@testdata/workflow-sub-test-1.yaml",
70697069
workflowTemplate: "@testdata/workflow-template-sub-test-1.yaml",
7070-
expectedMutexName: "{{workflow.labels.mutex-name}}",
7071-
expectedSchedulerName: "{{workflow.annotations.scheduler-name}}",
7070+
expectedMutexName: "{{workflow.labels.mutexName}}",
7071+
expectedSchedulerName: "{{workflow.annotations.schedulerName}}",
70727072
},
70737073
{
70747074
// entire template referenced; value is in Workflow.Labels
@@ -7106,6 +7106,14 @@ func TestSubstituteGlobalVariablesLabelsAnnotations(t *testing.T) {
71067106
expectedMutexName: "myMutex",
71077107
expectedSchedulerName: "myScheduler",
71087108
},
7109+
{
7110+
// this checks that we can use a sprig expression to set a label (using workflowMetadata.labelsFrom)
7111+
// and the result of that label can also be evaluated in the spec
7112+
workflow: "@testdata/workflow-sub-test-6.yaml",
7113+
workflowTemplate: "@testdata/workflow-template-sub-test-2.yaml",
7114+
expectedMutexName: "wfMetadataScheduler",
7115+
expectedSchedulerName: "wfMetadataScheduler",
7116+
},
71097117
}
71107118

71117119
for _, tt := range tests {

workflow/controller/testdata/workflow-sub-test-1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
name: workflow-template-submittable
99
synchronization:
1010
mutex:
11-
name: "{{workflow.labels.mutex-name}}"
12-
schedulerName: "{{workflow.annotations.scheduler-name}}"
11+
name: "{{workflow.labels.mutexName}}"
12+
schedulerName: "{{workflow.annotations.schedulerName}}"

workflow/controller/testdata/workflow-sub-test-2.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ metadata:
44
generateName: workflow-template-hello-world-
55
namespace: test
66
labels:
7-
mutex-name: myMutex
7+
mutexName: myMutex
88
annotations:
9-
scheduler-name: myScheduler
9+
schedulerName: myScheduler
1010
spec:
1111
workflowTemplateRef:
1212
name: workflow-template-submittable
1313
synchronization:
1414
mutex:
15-
name: "{{workflow.labels.mutex-name}}"
16-
schedulerName: "{{workflow.annotations.scheduler-name}}"
15+
name: "{{workflow.labels.mutexName}}"
16+
schedulerName: "{{workflow.annotations.schedulerName}}"

workflow/controller/testdata/workflow-sub-test-3.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ metadata:
44
generateName: workflow-template-hello-world-
55
namespace: test
66
labels:
7-
mutex-name: myMutex
7+
mutexName: myMutex
88
annotations:
9-
scheduler-name: myScheduler
9+
schedulerName: myScheduler
1010
spec:
1111
workflowTemplateRef:
1212
name: workflow-template-submittable
1313
synchronization:
1414
mutex:
15-
name: "{{workflow.labels.mutex-name}}"
16-
schedulerName: "{{workflow.annotations.scheduler-name}}"
15+
name: "{{workflow.labels.mutexName}}"
16+
schedulerName: "{{workflow.annotations.schedulerName}}"
1717
workflowMetadata:
1818
labels:
19-
mutex-name: wfMetadataMutex
19+
mutexName: wfMetadataMutex
2020
annotations:
21-
scheduler-name: wfMetadataScheduler
21+
schedulerName: wfMetadataScheduler

workflow/controller/testdata/workflow-sub-test-4.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ apiVersion: argoproj.io/v1alpha1
22
kind: Workflow
33
metadata:
44
generateName: workflow-template-hello-world-
5-
namespace: test
5+
namespace: argo
66
labels:
7-
mutex-name: myMutex
7+
mutexName: myOverrideMutex
88
annotations:
9-
scheduler-name: myScheduler
9+
schedulerName: myScheduler
1010
spec:
1111
workflowTemplateRef:
1212
name: workflow-template-submittable
1313
synchronization:
1414
mutex:
15-
name: "{{workflow.labels.mutex-name}}"
16-
schedulerName: "{{workflow.annotations.scheduler-name}}"
15+
name: "{{workflow.labels.mutexName}}"
16+
schedulerName: "{{workflow.annotations.schedulerName}}"
1717
workflowMetadata:
1818
annotations:
19-
scheduler-name: wfMetadataScheduler
19+
schedulerName: wfMetadataScheduler

workflow/controller/testdata/workflow-sub-test-5.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ metadata:
44
generateName: workflow-template-hello-world-
55
namespace: test
66
labels:
7-
mutex-name: myMutex
7+
mutexName: myMutex
88
annotations:
9-
scheduler-name: myScheduler
9+
schedulerName: myScheduler
1010
spec:
1111
entrypoint: myTemplate
1212
templates:
@@ -18,5 +18,5 @@ spec:
1818
template: whalesay-template
1919
synchronization:
2020
mutex:
21-
name: "{{workflow.labels.mutex-name}}"
22-
schedulerName: "{{workflow.annotations.scheduler-name}}"
21+
name: "{{workflow.labels.mutexName}}"
22+
schedulerName: "{{workflow.annotations.schedulerName}}"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Workflow
3+
metadata:
4+
generateName: workflow-template-hello-world-
5+
namespace: test
6+
labels:
7+
mutexName: myMutex
8+
annotations:
9+
schedulerName: myScheduler
10+
spec:
11+
workflowTemplateRef:
12+
name: workflow-template-submittable
13+
synchronization:
14+
mutex:
15+
name: "{{workflow.labels.mutexName}}"
16+
schedulerName: "{{workflow.annotations.schedulerName}}"
17+
workflowMetadata:
18+
labelsFrom:
19+
mutexName:
20+
expression: "{{= sprig.quote(sprig.trim( workflow.annotations.schedulerName )) }}"
21+
annotations:
22+
schedulerName: wfMetadataScheduler

workflow/controller/testdata/workflow-template-sub-test-1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ metadata:
44
name: workflow-template-submittable
55
namespace: test
66
labels:
7-
mutex-name: myMutex
7+
mutexName: myMutex
88
annotations:
9-
scheduler-name: myScheduler
9+
schedulerName: myScheduler
1010
spec:
1111
entrypoint: whalesay-template
1212
templates:

workflow/controller/testdata/workflow-template-sub-test-2.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ metadata:
44
name: workflow-template-submittable
55
namespace: test
66
labels:
7-
mutex-name: myMutex
7+
mutexName: myMutex
88
annotations:
9-
scheduler-name: myScheduler
9+
schedulerName: myScheduler
1010
spec:
1111
entrypoint: whalesay-template
1212
templates:
@@ -17,6 +17,6 @@ spec:
1717
args: ['hello']
1818
workflowMetadata:
1919
labels:
20-
mutex-name: wfMetadataTemplateMutex
20+
mutexName: wfMetadataTemplateMutex
2121
annotations:
22-
scheduler-name: wfMetadataTemplateScheduler
22+
schedulerName: wfMetadataTemplateScheduler

0 commit comments

Comments
 (0)