Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
Signed-off-by: sadath-12 <[email protected]>
  • Loading branch information
sadath-12 committed Jan 9, 2024
1 parent d685ffe commit 43b8866
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/validate-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
check-version:
runs-on: ubuntu-22.04
steps:
- name: Install git
run: |
apt-get update
apt-get install -y git
- uses: actions/checkout@v3
- name: Check for CRD changes and version update
run: |
Expand All @@ -23,10 +27,13 @@ jobs:
fi
# Check for version variable changes
old_version=$(git show ${{ github.event.pull_request.base.sha }}:pkg/k8s/apis/cilium.io/v1alpha1/register.go | grep 'CustomResourceDefinitionSchemaVersion' | awk -F'"' '{print $2}')
new_version=$(git show HEAD:pkg/k8s/apis/cilium.io/v1alpha1/register.go | grep 'CustomResourceDefinitionSchemaVersion' | awk -F'"' '{print $2}')
echo "old_version=$old_version"
echo "new_version=$new_version"
if [ "$old_version" != "$new_version" ]; then
version_changed=1
fi
Expand Down
2 changes: 1 addition & 1 deletion pkg/k8s/apis/cilium.io/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
// TPCRDName is the full name of the TracingPolicy CRD.
TPCRDName = TPKindDefinition + "/" + CRDVersion

CustomResourceDefinitionSchemaVersion = "0.10.4"
CustomResourceDefinitionSchemaVersion = "0.10.1"


// TPNamespacedCRDName is the full name of the TracingPolicy CRD.
Expand Down

0 comments on commit 43b8866

Please sign in to comment.