-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #449 from iamniting/sdk-4.12
[release-4.12] create a mechanism to deploy odf using operator-sdk
- Loading branch information
Showing
17 changed files
with
557 additions
and
521 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
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 |
---|---|---|
|
@@ -23,3 +23,6 @@ testbin/* | |
*.swp | ||
*.swo | ||
*~ | ||
|
||
# catalog manifests | ||
catalog/odf.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# The base image which contain rm and sed command | ||
FROM cirros as builder | ||
|
||
# Copy catalog files | ||
COPY catalog /configs | ||
|
||
# Remove odf bundle from the files | ||
RUN rm -f /configs/odf.yaml | ||
|
||
# Remove odf bundle details from the index file | ||
RUN sed -i '1,11d' /configs/index.yaml | ||
|
||
|
||
# The base image is expected to contain | ||
# /bin/opm (with a serve subcommand) and /bin/grpc_health_probe | ||
FROM quay.io/operator-framework/opm:v1.26.0 | ||
|
||
# Configure the entrypoint and command | ||
ENTRYPOINT ["/bin/opm"] | ||
CMD ["serve", "/configs"] | ||
|
||
# Copy declarative config root into image at /configs | ||
COPY --from=builder /configs /configs | ||
|
||
# Set DC-specific label for the location of the DC root directory in the image | ||
LABEL operators.operatorframework.io.index.configs.v1=/configs |
Oops, something went wrong.