Skip to content

Commit

Permalink
[KO-267] Using common config schema repo (#252)
Browse files Browse the repository at this point in the history
* [KO-267] Using common config schema repo
  • Loading branch information
tanmayja authored Sep 28, 2023
1 parent 19ec639 commit f6cdb0a
Show file tree
Hide file tree
Showing 33 changed files with 24 additions and 72,729 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
go-version: 1.19
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "pkg/configschema/schemas"]
path = pkg/configschema/schemas
url = https://github.com/aerospike/schemas
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ pipeline {
checkout([
$class: 'GitSCM',
branches: scm.branches,
extensions: scm.extensions + [[$class: 'CleanBeforeCheckout']],
extensions: scm.extensions + [[$class: 'CleanBeforeCheckout']] +
[[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: false,
recursiveSubmodules: true,
reference: '',
trackingSubmodules: false]],
userRemoteConfigs: scm.userRemoteConfigs
])
}
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ enable-pre-commit:
pip3 install pre-commit
pre-commit install

.PHONY: submodules
submodules: ## Pull and update git submodules recursively
git pull --recurse-submodules
git submodule update --init --recursive

# Generate bundle manifests and metadata, then validate generated files.
# For OpenShift bundles run
# CHANNELS=stable DEFAULT_CHANNEL=stable OPENSHIFT_VERSION=v4.6 IMG=docker.io/aerospike/aerospike-kubernetes-operator-nightly:3.0.0 make bundle
Expand Down
Loading

0 comments on commit f6cdb0a

Please sign in to comment.