-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update klusterlet crd Signed-off-by: zhujian <[email protected]> * Fix ci Signed-off-by: zhujian <[email protected]> Signed-off-by: zhujian <[email protected]>
- Loading branch information
Showing
85 changed files
with
3,587 additions
and
2,616 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
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,29 @@ | ||
#!/bin/bash | ||
# Copyright Contributors to the Open Cluster Management project | ||
|
||
KLUSTERLET_CRD_FILE="./vendor/open-cluster-management.io/api/operator/v1/0000_00_operator.open-cluster-management.io_klusterlets.crd.yaml" | ||
CLUSTER_MANAGER_CRD_FILE="./vendor/open-cluster-management.io/api/operator/v1/0000_01_operator.open-cluster-management.io_clustermanagers.crd.yaml" | ||
|
||
ALL_FILES=("./pkg/cmd/join/scenario/join/klusterlets.crd.yaml" | ||
"./pkg/cmd/init/scenario/init/clustermanagers.crd.yaml" | ||
) | ||
|
||
cp "$KLUSTERLET_CRD_FILE" "${ALL_FILES[0]}" | ||
cp "$CLUSTER_MANAGER_CRD_FILE" "${ALL_FILES[1]}" | ||
|
||
COMMUNITY_COPY_HEADER_FILE="$PWD/build/copyright-header.txt" | ||
|
||
if [ ! -f "$COMMUNITY_COPY_HEADER_FILE" ]; then | ||
echo "File $COMMUNITY_COPY_HEADER_FILE not found!" | ||
exit 1 | ||
fi | ||
COMMUNITY_COPY_HEADER_STRING=$(cat "$COMMUNITY_COPY_HEADER_FILE") | ||
|
||
for FILE in "${ALL_FILES[@]}" | ||
do | ||
if [ -f "$FILE" ] && ! grep -q "$COMMUNITY_COPY_HEADER_STRING" "$FILE"; then | ||
echo "# $COMMUNITY_COPY_HEADER_STRING" > tempfile; | ||
cat "$FILE" >> tempfile; | ||
mv tempfile "$FILE"; | ||
fi | ||
done |
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
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
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
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
36 changes: 35 additions & 1 deletion
36
.../addon/v1alpha1/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
56 changes: 55 additions & 1 deletion
56
...api/addon/v1alpha1/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.