Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package polaris for openSUSE:Factory checked in at 2025-04-25 22:57:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/polaris (Old) and /work/SRC/openSUSE:Factory/.polaris.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "polaris" Fri Apr 25 22:57:34 2025 rev:37 rq:1272507 version:9.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/polaris/polaris.changes 2025-01-05 15:28:55.332001895 +0100 +++ /work/SRC/openSUSE:Factory/.polaris.new.30101/polaris.changes 2025-04-25 22:57:34.787715862 +0200 @@ -1,0 +2,14 @@ +Thu Apr 24 15:25:25 UTC 2025 - Johannes Kastl <opensuse_buildserv...@ojkastl.de> + +- Update to version 9.6.3: + * INS-933 - pullPolicyNotAlways is crashing webhook mutations + (#1115) + * Bump golang.org/x/net from 0.33.0 to 0.36.0 (#1108) + * Bump k8s.io/client-go from 0.32.0 to 0.32.2 (#1103) + * Bump k8s.io/apimachinery from 0.32.0 to 0.32.2 (#1102) + * Bump sigs.k8s.io/controller-runtime from 0.19.3 to 0.20.2 + (#1101) + * fixed pdbMinAvailableGreaterThanHPAMinReplicas and added + validation for pdbMinAvailableEqualToHPAMinReplicas. (#1073) + +------------------------------------------------------------------- Old: ---- polaris-9.6.1.obscpio New: ---- polaris-9.6.3.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ polaris.spec ++++++ --- /var/tmp/diff_new_pack.wovGwC/_old 2025-04-25 22:57:35.787757769 +0200 +++ /var/tmp/diff_new_pack.wovGwC/_new 2025-04-25 22:57:35.791757937 +0200 @@ -17,7 +17,7 @@ Name: polaris -Version: 9.6.1 +Version: 9.6.3 Release: 0 Summary: Validation of best practices in your Kubernetes clusters License: Apache-2.0 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.wovGwC/_old 2025-04-25 22:57:35.827759446 +0200 +++ /var/tmp/diff_new_pack.wovGwC/_new 2025-04-25 22:57:35.827759446 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/FairwindsOps/polaris</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">9.6.1</param> + <param name="revision">9.6.3</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> </service> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.wovGwC/_old 2025-04-25 22:57:35.851760451 +0200 +++ /var/tmp/diff_new_pack.wovGwC/_new 2025-04-25 22:57:35.855760619 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/FairwindsOps/polaris</param> - <param name="changesrevision">80e6f7214ee611feb8a0ad2f8be6e58f822b868b</param></service></servicedata> + <param name="changesrevision">d7d30ac6116e301af0ddf785e0e0fb4c5157ec23</param></service></servicedata> (No newline at EOF) ++++++ polaris-9.6.1.obscpio -> polaris-9.6.3.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/ISSUE_TEMPLATE/bug.yaml new/polaris-9.6.3/.github/ISSUE_TEMPLATE/bug.yaml --- old/polaris-9.6.1/.github/ISSUE_TEMPLATE/bug.yaml 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/ISSUE_TEMPLATE/bug.yaml 1970-01-01 01:00:00.000000000 +0100 @@ -1,58 +0,0 @@ -name: Bug Report -description: File a bug report -labels: [bug, triage] -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to fill out this bug report! Please fill the form below. - - type: textarea - id: what-happened - attributes: - label: What happened? - description: What happened? - validations: - required: true - - type: textarea - id: expected - attributes: - label: What did you expect to happen? - description: What is the expected or desired behavior? - validations: - required: true - - type: textarea - id: reproducible - attributes: - label: How can we reproduce this? - description: Please share the steps that we can take to reproduce this. Also include any relevant configuration. - validations: - required: true - - type: input - id: version - attributes: - label: Version - description: The version of the tool that you are using. If a helm chart, please share the name of the chart. - validations: - required: true - - type: checkboxes - id: search - attributes: - label: Search - options: - - label: I did search for other open and closed issues before opening this. - required: true - - type: checkboxes - id: terms - attributes: - label: Code of Conduct - description: By submitting this issue, you agree to follow the CODE_OF_CONDUCT in this repository. - options: - - label: I agree to follow this project's Code of Conduct - required: true - - type: textarea - id: ctx - attributes: - label: Additional context - description: Anything else you would like to add - validations: - required: false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/ISSUE_TEMPLATE/feature_request.md new/polaris-9.6.3/.github/ISSUE_TEMPLATE/feature_request.md --- old/polaris-9.6.1/.github/ISSUE_TEMPLATE/feature_request.md 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/ISSUE_TEMPLATE/feature_request.md 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: [triage, enhancement] -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/ISSUE_TEMPLATE/other.md new/polaris-9.6.3/.github/ISSUE_TEMPLATE/other.md --- old/polaris-9.6.1/.github/ISSUE_TEMPLATE/other.md 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/ISSUE_TEMPLATE/other.md 1970-01-01 01:00:00.000000000 +0100 @@ -1,8 +0,0 @@ ---- -name: Other -about: For misc. tasks like research or continued conversation -title: '' -labels: [triage] -assignees: '' - ---- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/actions/setup-polaris/Dockerfile new/polaris-9.6.3/.github/actions/setup-polaris/Dockerfile --- old/polaris-9.6.1/.github/actions/setup-polaris/Dockerfile 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/actions/setup-polaris/Dockerfile 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -# The action uses an own Dockerfile on purpose because the root Dockerfile takes way too long to build for an action - -FROM alpine:3.17 - -RUN apk add --no-cache \ - bash \ - ca-certificates \ - curl \ - wget \ - tar \ - jq - -COPY get_polaris.sh /get_polaris.sh - -ENTRYPOINT ["/get_polaris.sh"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/actions/setup-polaris/action.yaml new/polaris-9.6.3/.github/actions/setup-polaris/action.yaml --- old/polaris-9.6.1/.github/actions/setup-polaris/action.yaml 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/actions/setup-polaris/action.yaml 1970-01-01 01:00:00.000000000 +0100 @@ -1,22 +0,0 @@ -name: 'Install polaris' -description: 'Download a specific polaris version' - -inputs: - version: - description: 'version of polaris' - required: true - default: 'latest' - -runs: - using: 'docker' - image: './Dockerfile' - args: - - ${{ inputs.version }} - -outputs: - version: - description: 'Version of polaris installed' - -branding: - icon: 'download-cloud' - color: 'gray-dark' \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/actions/setup-polaris/get_polaris.sh new/polaris-9.6.3/.github/actions/setup-polaris/get_polaris.sh --- old/polaris-9.6.1/.github/actions/setup-polaris/get_polaris.sh 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/actions/setup-polaris/get_polaris.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ -#!/bin/bash -if [[ -z "$INPUT_VERSION" ]]; then - echo "Missing polaris version information" - exit 1 -fi -POLARIS_URL=https://github.com/FairwindsOps/polaris/releases/download/$INPUT_VERSION/polaris_linux_amd64.tar.gz -polaris version | grep "$INPUT_VERSION" &> /dev/null -if [ $? == 0 ]; then - echo "Polaris $INPUT_VERSION is already installed! Exiting gracefully." - exit 0 -else - echo "Installing polaris to path from " $POLARIS_URL -fi -TARGET_FILE="polaris.tar.gz" -curl -LJ -o $TARGET_FILE $POLARIS_URL -mkdir polaris -tar -xzf $TARGET_FILE -C polaris -rm $TARGET_FILE -echo "polaris" >> $GITHUB_PATH -echo "version=$INPUT_VERSION" >> $GITHUB_OUTPUT \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/dependabot.yml new/polaris-9.6.3/.github/dependabot.yml --- old/polaris-9.6.1/.github/dependabot.yml 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/dependabot.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ -## DO NOT EDIT - Managed by Terraform -version: 2 -updates: - - package-ecosystem: "docker" - directory: "/" - schedule: - interval: "weekly" - - - package-ecosystem: "npm" - directory: "/docs" - schedule: - interval: "weekly" - open-pull-requests-limit: 0 - ignore: - - dependency-name: "*" - - - package-ecosystem: "gomod" - directory: "/" - schedule: - interval: "weekly" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/pull_request_template.md new/polaris-9.6.3/.github/pull_request_template.md --- old/polaris-9.6.1/.github/pull_request_template.md 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/pull_request_template.md 1970-01-01 01:00:00.000000000 +0100 @@ -1,14 +0,0 @@ - -This PR fixes # - -## Checklist -* [ ] I have signed the CLA -* [ ] I have updated/added any relevant documentation - -## Description -### What's the goal of this PR? - -### What changes did you make? - -### What alternative solution should we consider, if any? - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/workflows/stale.yml new/polaris-9.6.3/.github/workflows/stale.yml --- old/polaris-9.6.1/.github/workflows/stale.yml 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/workflows/stale.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -name: 'Close stale issues and PRs' -on: - schedule: - - cron: '32 1 * * *' - -permissions: - issues: write - pull-requests: write - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v4 - with: - exempt-issue-labels: pinned - stale-pr-label: stale - stale-issue-label: stale diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.github/workflows/test_setup.yml new/polaris-9.6.3/.github/workflows/test_setup.yml --- old/polaris-9.6.1/.github/workflows/test_setup.yml 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.github/workflows/test_setup.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,27 +0,0 @@ -name: Test setup-polaris -on: - pull_request: - branches: [ master ] - -jobs: - build-int: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Setup polaris - uses: ./.github/actions/setup-polaris - with: - version: 4.2.0 - - name: Use command - run: polaris version - - build-ext: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Setup polaris - uses: fairwindsops/polaris/.github/actions/setup-polaris@master - with: - version: 4.2.0 - - name: Use command - run: polaris version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/.gitignore new/polaris-9.6.3/.gitignore --- old/polaris-9.6.1/.gitignore 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/.gitignore 1970-01-01 01:00:00.000000000 +0100 @@ -1,33 +0,0 @@ -# goreleaser is run via a wrapper that creates .goreleaser.yml from .goreleaser.yml.envsubst -.goreleaser.yml -# dist -# # Binaries for programs and plugins -.go-version -*.exe -*.exe~ -*.dll -*.so -*.dylib -polaris - -!cmd/polaris -!deploy/helm/polaris - -# Test binary, build with `go test -c` -*.test - -# Output of the go coverage tool -/*.out - -Tiltfile -main -.DS_Store - -dist -.vscode - -*-test.yaml - -node_modules -/dist -docs/README.md diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/go.mod new/polaris-9.6.3/go.mod --- old/polaris-9.6.1/go.mod 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/go.mod 2025-04-21 22:07:12.000000000 +0200 @@ -18,10 +18,10 @@ github.com/thoas/go-funk v0.9.3 gomodules.xyz/jsonpatch/v2 v2.4.0 gopkg.in/yaml.v3 v3.0.1 - k8s.io/api v0.32.0 - k8s.io/apimachinery v0.32.0 - k8s.io/client-go v0.32.0 - sigs.k8s.io/controller-runtime v0.19.3 + k8s.io/api v0.32.3 + k8s.io/apimachinery v0.32.3 + k8s.io/client-go v0.32.3 + sigs.k8s.io/controller-runtime v0.20.4 sigs.k8s.io/yaml v1.4.0 ) @@ -30,7 +30,8 @@ github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/emicklei/go-restful/v3 v3.12.1 // indirect - github.com/evanphx/json-patch/v5 v5.9.0 // indirect + github.com/evanphx/json-patch/v5 v5.9.11 // indirect + github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect @@ -64,14 +65,13 @@ github.com/samber/lo v1.47.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/x448/float16 v0.8.4 // indirect - golang.org/x/crypto v0.31.0 // indirect - golang.org/x/exp v0.0.0-20241215155358-4a5509556b9e // indirect - golang.org/x/net v0.33.0 // indirect + golang.org/x/net v0.36.0 // indirect golang.org/x/oauth2 v0.24.0 // indirect - golang.org/x/sys v0.28.0 // indirect - golang.org/x/term v0.27.0 // indirect - golang.org/x/text v0.21.0 // indirect + golang.org/x/sys v0.30.0 // indirect + golang.org/x/term v0.29.0 // indirect + golang.org/x/text v0.22.0 // indirect golang.org/x/time v0.8.0 // indirect + golang.org/x/tools v0.28.0 // indirect google.golang.org/protobuf v1.35.2 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/go.sum new/polaris-9.6.3/go.sum --- old/polaris-9.6.1/go.sum 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/go.sum 2025-04-21 22:07:12.000000000 +0200 @@ -17,14 +17,16 @@ github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/evanphx/json-patch v5.9.0+incompatible h1:fBXyNpNMuTTDdquAq/uisOr2lShz4oaXpDTX2bLe7ls= github.com/evanphx/json-patch v5.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch/v5 v5.9.0 h1:kcBlZQbplgElYIlo/n1hJbls2z/1awpXxpRi0/FOJfg= -github.com/evanphx/json-patch/v5 v5.9.0/go.mod h1:VNkHZ/282BpEyt/tObQO8s5CMPmYYq14uClGH4abBuQ= +github.com/evanphx/json-patch/v5 v5.9.11 h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU= +github.com/evanphx/json-patch/v5 v5.9.11/go.mod h1:3j+LviiESTElxA4p3EMKAB9HXj3/XEtnUf6OZxqIQTM= github.com/fairwindsops/controller-utils v0.3.4 h1:t1qulL2GVDVUJTIE4icpBy3KnsxFTavnNAbFnd60blc= github.com/fairwindsops/controller-utils v0.3.4/go.mod h1:9/hOHX70/LG40RgtFAjtXFiMWEpItqm6Scf+obRFB2Y= github.com/fairwindsops/insights-plugins/plugins/workloads v0.0.0-20241211185107-d14f77fb8b16 h1:y3+g/C4Tfb3g7I4iusxibAeN/OASP+W8R32NrpC9Mu0= github.com/fairwindsops/insights-plugins/plugins/workloads v0.0.0-20241211185107-d14f77fb8b16/go.mod h1:KN0OLQN6jYlxba9O7qHnfF44Ry6viGKE2DZZyRa/2Zk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -46,6 +48,8 @@ github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= +github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= github.com/google/gnostic-models v0.6.9 h1:MU/8wDLif2qCXZmzncUQ/BOfxWfthHi63KqpoNbWqVw= github.com/google/gnostic-models v0.6.9/go.mod h1:CiWsm0s6BSQd1hRn8/QmxqB6BesYcbSZxsz9b0KuDBw= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -99,10 +103,10 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM= -github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo= -github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= -github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= +github.com/onsi/ginkgo/v2 v2.22.0 h1:Yed107/8DjTr0lKCNt7Dn8yQ6ybuDRQoMGrNFKzMfHg= +github.com/onsi/ginkgo/v2 v2.22.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo= +github.com/onsi/gomega v1.36.1 h1:bJDPBO7ibjxcbHMgSCoo4Yj18UWbKDlLwX1x9sybDcw= +github.com/onsi/gomega v1.36.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -158,10 +162,6 @@ golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= -golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= -golang.org/x/exp v0.0.0-20241215155358-4a5509556b9e h1:4qufH0hlUYs6AO6XmZC3GqfDPGSXHVXUFR6OND+iJX4= -golang.org/x/exp v0.0.0-20241215155358-4a5509556b9e/go.mod h1:qj5a5QZpwLU2NLQudwIN5koi3beDhSAlJwa67PuM98c= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= @@ -171,16 +171,16 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI= -golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs= -golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= -golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= +golang.org/x/net v0.36.0 h1:vWF2fRbw4qslQsQzgFqZff+BItCvGFQqKzKIzx1rmoA= +golang.org/x/net v0.36.0/go.mod h1:bFmbeoIPfrw4sMHNhb4J9f6+tPziuGjq7Jk/38fxi1I= golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE= golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= +golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -192,18 +192,18 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= -golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= +golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= -golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= +golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU= +golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= -golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM= +golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY= golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg= golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -232,22 +232,22 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.32.0 h1:OL9JpbvAU5ny9ga2fb24X8H6xQlVp+aJMFlgtQjR9CE= -k8s.io/api v0.32.0/go.mod h1:4LEwHZEf6Q/cG96F3dqR965sYOfmPM7rq81BLgsE0p0= -k8s.io/apiextensions-apiserver v0.31.0 h1:fZgCVhGwsclj3qCw1buVXCV6khjRzKC5eCFt24kyLSk= -k8s.io/apiextensions-apiserver v0.31.0/go.mod h1:b9aMDEYaEe5sdK+1T0KU78ApR/5ZVp4i56VacZYEHxk= -k8s.io/apimachinery v0.32.0 h1:cFSE7N3rmEEtv4ei5X6DaJPHHX0C+upp+v5lVPiEwpg= -k8s.io/apimachinery v0.32.0/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= -k8s.io/client-go v0.32.0 h1:DimtMcnN/JIKZcrSrstiwvvZvLjG0aSxy8PxN8IChp8= -k8s.io/client-go v0.32.0/go.mod h1:boDWvdM1Drk4NJj/VddSLnx59X3OPgwrOo0vGbtq9+8= +k8s.io/api v0.32.3 h1:Hw7KqxRusq+6QSplE3NYG4MBxZw1BZnq4aP4cJVINls= +k8s.io/api v0.32.3/go.mod h1:2wEDTXADtm/HA7CCMD8D8bK4yuBUptzaRhYcYEEYA3k= +k8s.io/apiextensions-apiserver v0.32.1 h1:hjkALhRUeCariC8DiVmb5jj0VjIc1N0DREP32+6UXZw= +k8s.io/apiextensions-apiserver v0.32.1/go.mod h1:sxWIGuGiYov7Io1fAS2X06NjMIk5CbRHc2StSmbaQto= +k8s.io/apimachinery v0.32.3 h1:JmDuDarhDmA/Li7j3aPrwhpNBA94Nvk5zLeOge9HH1U= +k8s.io/apimachinery v0.32.3/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= +k8s.io/client-go v0.32.3 h1:RKPVltzopkSgHS7aS98QdscAgtgah/+zmpAogooIqVU= +k8s.io/client-go v0.32.3/go.mod h1:3v0+3k4IcT9bXTc4V2rt+d2ZPPG700Xy6Oi0Gdl2PaY= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 h1:hcha5B1kVACrLujCKLbr8XWMxCxzQx42DY8QKYJrDLg= k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7/go.mod h1:GewRfANuJ70iYzvn+i4lezLDAFzvjxZYK1gn1lWcfas= k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0= k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/controller-runtime v0.19.3 h1:XO2GvC9OPftRst6xWCpTgBZO04S2cbp0Qqkj8bX1sPw= -sigs.k8s.io/controller-runtime v0.19.3/go.mod h1:j4j87DqtsThvwTv5/Tc5NFRyyF/RF0ip4+62tbTSIUM= +sigs.k8s.io/controller-runtime v0.20.4 h1:X3c+Odnxz+iPTRobG4tp092+CvBU9UK0t/bRf+n0DGU= +sigs.k8s.io/controller-runtime v0.20.4/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY= sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE= sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8/go.mod h1:mdzfpAEoE6DHQEN0uh9ZbOCuHbLK5wOm7dK4ctXE9Tg= sigs.k8s.io/structured-merge-diff/v4 v4.5.0 h1:nbCitCK2hfnhyiKo6uf2HxUPTCodY6Qaf85SbDIaMBk= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/pkg/mutation/mutate.go new/polaris-9.6.3/pkg/mutation/mutate.go --- old/polaris-9.6.1/pkg/mutation/mutate.go 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/pkg/mutation/mutate.go 2025-04-21 22:07:12.000000000 +0200 @@ -161,7 +161,6 @@ node.Value = "" case yaml.SequenceNode: return nil, errors.Errorf("parent node is array, use /*/ or /0/../%v/ instead of .%v to access its item(s) first", len(node.Content)-1, currentSelector) - default: return nil, errors.Errorf("parent node is of unknown kind %v", node.Kind) } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/pkg/validator/pdb_hpa_validator.go new/polaris-9.6.3/pkg/validator/pdb_hpa_validator.go --- old/polaris-9.6.1/pkg/validator/pdb_hpa_validator.go 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/pkg/validator/pdb_hpa_validator.go 2025-04-21 22:07:12.000000000 +0200 @@ -69,12 +69,12 @@ } } - if attachedHPA.Spec.MinReplicas != nil && pdbMinAvailable >= int(*attachedHPA.Spec.MinReplicas) { + if attachedHPA.Spec.MinReplicas != nil && pdbMinAvailable > int(*attachedHPA.Spec.MinReplicas) { return false, []jsonschema.ValError{ { PropertyPath: "spec.minAvailable", InvalidValue: pdbMinAvailable, - Message: fmt.Sprintf("The minAvailable value in the PodDisruptionBudget(%s) is %d, which is greater or equal than the minReplicas value in the HorizontalPodAutoscaler(%s) (%d)", attachedPDB.Name, pdbMinAvailable, attachedHPA.Name, *attachedHPA.Spec.MinReplicas), + Message: fmt.Sprintf("The minAvailable value in the PodDisruptionBudget(%s) is %d, which is greater than the minReplicas value in the HorizontalPodAutoscaler(%s) (%d)", attachedPDB.Name, pdbMinAvailable, attachedHPA.Name, *attachedHPA.Spec.MinReplicas), }, }, nil } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/pkg/validator/schema.go new/polaris-9.6.3/pkg/validator/schema.go --- old/polaris-9.6.1/pkg/validator/schema.go 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/pkg/validator/schema.go 2025-04-21 22:07:12.000000000 +0200 @@ -341,12 +341,23 @@ podCopy := *test.Resource.PodSpec podCopy.InitContainers = []corev1.Container{} podCopy.Containers = []corev1.Container{*test.Container} - containerIndex := funk.IndexOf(test.Resource.PodSpec.Containers, func(value corev1.Container) bool { - return value.Name == test.Container.Name - }) + containerIndex := -1 + if !test.IsInitContainer { + containerIndex = funk.IndexOf(test.Resource.PodSpec.Containers, func(value corev1.Container) bool { + return value.Name == test.Container.Name + }) + } else { + containerIndex = funk.IndexOf(test.Resource.PodSpec.InitContainers, func(value corev1.Container) bool { + return value.Name == test.Container.Name + }) + } prefix = getJSONSchemaPrefix(test.Resource.Kind) if prefix != "" { - prefix += "/containers/" + strconv.Itoa(containerIndex) + if test.IsInitContainer { + prefix += "/initContainers/" + strconv.Itoa(containerIndex) + } else { + prefix += "/containers/" + strconv.Itoa(containerIndex) + } } passes, issues, err = check.CheckPodSpec(&podCopy) } else { @@ -359,12 +370,23 @@ passes, issues, err = check.CheckPodTemplate(test.Resource.PodTemplate) prefix = getJSONSchemaPrefix(test.Resource.Kind) } else if check.Target == config.TargetContainer { - containerIndex := funk.IndexOf(test.Resource.PodSpec.Containers, func(value corev1.Container) bool { - return value.Name == test.Container.Name - }) + containerIndex := -1 + if !test.IsInitContainer { + containerIndex = funk.IndexOf(test.Resource.PodSpec.Containers, func(value corev1.Container) bool { + return value.Name == test.Container.Name + }) + } else { + containerIndex = funk.IndexOf(test.Resource.PodSpec.InitContainers, func(value corev1.Container) bool { + return value.Name == test.Container.Name + }) + } prefix = getJSONSchemaPrefix(test.Resource.Kind) if prefix != "" { - prefix += "/containers/" + strconv.Itoa(containerIndex) + if test.IsInitContainer { + prefix += "/initContainers/" + strconv.Itoa(containerIndex) + } else { + prefix += "/containers/" + strconv.Itoa(containerIndex) + } } passes, issues, err = check.CheckContainer(test.Container) } else if check.Validator.SchemaURI != "" { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/test/checks/pdbMinAvailableGreaterThanHPAMinReplicas/failure.equals.yaml new/polaris-9.6.3/test/checks/pdbMinAvailableGreaterThanHPAMinReplicas/failure.equals.yaml --- old/polaris-9.6.1/test/checks/pdbMinAvailableGreaterThanHPAMinReplicas/failure.equals.yaml 2025-01-02 17:01:37.000000000 +0100 +++ new/polaris-9.6.3/test/checks/pdbMinAvailableGreaterThanHPAMinReplicas/failure.equals.yaml 1970-01-01 01:00:00.000000000 +0100 @@ -1,43 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: zookeeper -spec: - template: - metadata: - labels: - app.kubernetes.io/name: zookeeper - foo: bar - spec: - containers: - - name: zookeeper - image: zookeeper ---- -apiVersion: policy/v1 -kind: PodDisruptionBudget -metadata: - name: zookeeper-pdb -spec: - minAvailable: 5 - selector: - matchLabels: - app.kubernetes.io/name: zookeeper ---- -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: zookeeper-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: zookeeper - minReplicas: 5 - maxReplicas: 7 - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 50 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polaris-9.6.1/test/checks/pdbMinAvailableGreaterThanHPAMinReplicas/success.equals.yaml new/polaris-9.6.3/test/checks/pdbMinAvailableGreaterThanHPAMinReplicas/success.equals.yaml --- old/polaris-9.6.1/test/checks/pdbMinAvailableGreaterThanHPAMinReplicas/success.equals.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/polaris-9.6.3/test/checks/pdbMinAvailableGreaterThanHPAMinReplicas/success.equals.yaml 2025-04-21 22:07:12.000000000 +0200 @@ -0,0 +1,43 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: zookeeper +spec: + template: + metadata: + labels: + app.kubernetes.io/name: zookeeper + foo: bar + spec: + containers: + - name: zookeeper + image: zookeeper +--- +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: zookeeper-pdb +spec: + minAvailable: 5 + selector: + matchLabels: + app.kubernetes.io/name: zookeeper +--- +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: zookeeper-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: zookeeper + minReplicas: 5 + maxReplicas: 7 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 50 ++++++ polaris.obsinfo ++++++ --- /var/tmp/diff_new_pack.wovGwC/_old 2025-04-25 22:57:36.179774197 +0200 +++ /var/tmp/diff_new_pack.wovGwC/_new 2025-04-25 22:57:36.183774364 +0200 @@ -1,5 +1,5 @@ name: polaris -version: 9.6.1 -mtime: 1735833697 -commit: 80e6f7214ee611feb8a0ad2f8be6e58f822b868b +version: 9.6.3 +mtime: 1745266032 +commit: d7d30ac6116e301af0ddf785e0e0fb4c5157ec23 ++++++ vendor.tar.gz ++++++ /work/SRC/openSUSE:Factory/polaris/vendor.tar.gz /work/SRC/openSUSE:Factory/.polaris.new.30101/vendor.tar.gz differ: char 5, line 1