forked from cloudnative-pg/cloudnative-pg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: sync api to api repo (cloudnative-pg#5679)
Trigger the `sync-api` workflow on the `API` repository when pushing to the `main` branch. Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
- Loading branch information
Showing
3 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Sync API | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
trigger-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Invoke repository dispatch | ||
uses: peter-evans/repository-dispatch@v3 | ||
with: | ||
token: ${{ secrets.REPO_GHA_PAT }} | ||
repository: cloudnative-pg/api | ||
event-type: sync-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
Copyright The CloudNativePG Contributors | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package v1 | ||
|
||
// IMPORTANT: | ||
// This file contains the functions that need to be copied from the api/v1 package to the cloudnative-pg/api | ||
// repository. This is currently required because the controller-gen tool cannot generate DeepCopyInto for the | ||
// regexp type. This will be removed once the controller-gen tool supports this feature. | ||
|
||
// DeepCopyInto needs to be manually added for the controller-gen compiler to work correctly, given that it cannot | ||
// generate the DeepCopyInto for the regexp type. | ||
// The method is empty because we don't want to transfer the cache when invoking DeepCopyInto. | ||
func (receiver synchronizeReplicasCache) DeepCopyInto(*synchronizeReplicasCache) {} |