Skip to content

Commit

Permalink
Merge branch 'main' into add-namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
casibbald authored Nov 14, 2024
2 parents 21f7575 + 64b5e44 commit f934494
Show file tree
Hide file tree
Showing 17 changed files with 996 additions and 1,795 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ossf
on:
branch_protection_rule:
push:
branches: [ main ]
branches: [ main-disabled ]
schedule:
# Weekly on Saturdays.
- cron: '30 1 * * 6'
Expand Down Expand Up @@ -46,4 +46,4 @@ jobs:
- name: "Upload SARIF results to code scanning"
uses: github/codeql-action/upload-sarif@04daf014b50eaf774287bf3f0f1869d4b4c4b913 # v2.21.7
with:
sarif_file: results.sarif
sarif_file: results.sarif
52 changes: 26 additions & 26 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
path: /tmp/${{ matrix.docker-image }}.tar

ci-upload-images:
name: CI Upload Images
name: CI Upload Images - Disabled
runs-on: ubuntu-latest
# Make sure we only upload images if tests etc have passed
needs: [ci-go, ci-static, ci-js, ci-build-gitops-image, ci-generate-tag]
Expand All @@ -164,21 +164,21 @@ jobs:
with:
name: ${{ matrix.docker-image }}
path: /tmp
- name: Authenticate to Google Cloud
id: gcloud-auth
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
with:
service_account: ${{ secrets.service_account }}
workload_identity_provider: ${{ secrets.workload_identity_provider }}
- name: Login to gcloud for docker
run: gcloud --quiet auth configure-docker ${{ env.CI_CONTAINER_REGISTRY }}
- name: Push images to gcloud
run: |
docker load --input /tmp/${{ matrix.docker-image }}.tar
docker push "${{ env.CI_CONTAINER_REPOSITORY }}/${{ matrix.docker-image }}:${{ needs.ci-generate-tag.outputs.tag }}"
# - name: Authenticate to Google Cloud
# id: gcloud-auth
# uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
# with:
# service_account: ${{ secrets.service_account }}
# workload_identity_provider: ${{ secrets.workload_identity_provider }}
# - name: Login to gcloud for docker
# run: gcloud --quiet auth configure-docker ${{ env.CI_CONTAINER_REGISTRY }}
# - name: Push images to gcloud
# run: |
# docker load --input /tmp/${{ matrix.docker-image }}.tar
# docker push "${{ env.CI_CONTAINER_REPOSITORY }}/${{ matrix.docker-image }}:${{ needs.ci-generate-tag.outputs.tag }}"

ci-upload-binary:
name: Upload Binary
name: Upload Binary - Disabled
runs-on: ${{matrix.os}}
needs: [ci-go, ci-static, ci-js, ci-build-gitops-image]
strategy:
Expand All @@ -201,15 +201,15 @@ jobs:
- name: build
run: |
make gitops
- name: publish to s3
uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4.0.0
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- run: |
aws s3 cp bin/gitops s3://weave-gitops/gitops-${{matrix.os}}-${{steps.gitsha.outputs.sha}}
aws s3 cp s3://weave-gitops/gitops-${{matrix.os}}-${{steps.gitsha.outputs.sha}} s3://weave-gitops/gitops-${{matrix.os}}
# - name: publish to s3
# uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4.0.0
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: us-east-2
# - run: |
# aws s3 cp bin/gitops s3://weave-gitops/gitops-${{matrix.os}}-${{steps.gitsha.outputs.sha}}
# aws s3 cp s3://weave-gitops/gitops-${{matrix.os}}-${{steps.gitsha.outputs.sha}} s3://weave-gitops/gitops-${{matrix.os}}

ci-publish-js-lib:
name: Publish js library
Expand Down Expand Up @@ -257,7 +257,7 @@ jobs:
- ci-go
- ci-static
- ci-js
- ci-build-gitops-image
# - ci-build-gitops-image
if: github.event_name != 'push'
steps:
- run: echo "All done"
Expand All @@ -267,8 +267,8 @@ jobs:
name: PR CI Pipeline
runs-on: ubuntu-latest
needs:
- ci-upload-images
- ci-upload-binary
# - ci-upload-images
# - ci-upload-binary
- ci-publish-js-lib
steps:
- run: echo "All done"
Expand Down
33 changes: 33 additions & 0 deletions api/core/core.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
Expand Down Expand Up @@ -900,6 +901,7 @@
"conditions": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Condition"
}
},
Expand Down Expand Up @@ -978,6 +980,7 @@
"objects": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Object"
}
}
Expand Down Expand Up @@ -1011,6 +1014,7 @@
"entries": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1InventoryEntry"
}
}
Expand Down Expand Up @@ -1058,6 +1062,7 @@
"kinds": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GroupVersionKind"
}
},
Expand All @@ -1072,6 +1077,7 @@
"objects": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Object"
}
}
Expand Down Expand Up @@ -1103,6 +1109,7 @@
"logs": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1LogEntry"
}
},
Expand Down Expand Up @@ -1184,6 +1191,7 @@
"children": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1InventoryEntry"
}
}
Expand Down Expand Up @@ -1220,6 +1228,7 @@
"events": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Event"
}
}
Expand All @@ -1231,12 +1240,14 @@
"crds": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Crd"
}
},
"errors": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ListError"
}
}
Expand All @@ -1248,12 +1259,14 @@
"deployments": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Deployment"
}
},
"errors": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ListError"
}
}
Expand All @@ -1265,6 +1278,7 @@
"namespaces": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Namespace"
}
}
Expand Down Expand Up @@ -1296,18 +1310,21 @@
"objects": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Object"
}
},
"errors": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ListError"
}
},
"searchedNamespaces": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ClusterNamespaceList"
}
}
Expand All @@ -1319,6 +1336,7 @@
"policies": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1PolicyObj"
}
},
Expand All @@ -1332,6 +1350,7 @@
"errors": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ListError"
}
}
Expand Down Expand Up @@ -1369,6 +1388,7 @@
"violations": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1PolicyValidation"
}
},
Expand All @@ -1382,6 +1402,7 @@
"errors": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ListError"
}
}
Expand All @@ -1393,12 +1414,14 @@
"crds": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Crd"
}
},
"errors": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ListError"
}
}
Expand All @@ -1410,12 +1433,14 @@
"deployments": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Deployment"
}
},
"errors": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ListError"
}
}
Expand Down Expand Up @@ -1485,6 +1510,7 @@
"inventory": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1GroupVersionKind"
}
},
Expand Down Expand Up @@ -1558,6 +1584,7 @@
"standards": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1PolicyStandard"
}
},
Expand All @@ -1567,6 +1594,7 @@
"parameters": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1PolicyParam"
}
},
Expand Down Expand Up @@ -1645,6 +1673,7 @@
"labels": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1PolicyTargetLabel"
}
},
Expand Down Expand Up @@ -1704,6 +1733,7 @@
"occurrences": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1PolicyValidationOccurrence"
}
},
Expand All @@ -1713,6 +1743,7 @@
"parameters": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1PolicyValidationParam"
}
}
Expand Down Expand Up @@ -1752,6 +1783,7 @@
"objects": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ObjectRef"
}
},
Expand All @@ -1769,6 +1801,7 @@
"objects": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ObjectRef"
}
},
Expand Down
1 change: 1 addition & 0 deletions api/core/types.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"details": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/protobufAny"
}
}
Expand Down
2 changes: 1 addition & 1 deletion buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: f52d4f76a8434cc5966798b1d3b4f110
commit: 553fd4b4b3a640be9b69a3fa0c17b383
- remote: buf.build
owner: grpc-ecosystem
repository: grpc-gateway
Expand Down
Loading

0 comments on commit f934494

Please sign in to comment.