Last active
January 22, 2021 06:56
-
-
Save iam-veeramalla/1f169a4e5100f8034bff1194b15b7bf2 to your computer and use it in GitHub Desktop.
gitops-operator build process
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
operator-sdk build docker.io/abhishekf5/gitops-operator:rhsso --image-builder docker | |
docker push docker.io/abhishekf5/gitops-operator:rhsso | |
Update csv file | |
1. Container image | |
2. Image | |
operator-sdk bundle create docker.io/abhishekf5/gitops-operator-bundle:rhsso | |
docker push docker.io/abhishekf5/gitops-operator-bundle:rhsso | |
git clone https://github.com/operator-framework/operator-registry.git | |
make build | |
/opt/workspace/operator-registry/bin/opm index add --bundles docker.io/abhishekf5/gitops-operator-bundle:rhsso --tag docker.io/abhishekf5/gitops-operator-index:rhsso --build-tool=docker | |
docker push docker.io/abhishekf5/gitops-backend-operator-index:rhsso | |
create a new catalog_source for this build | |
vim /opt/workspace/gitops-operator-stuff/catalog_source.yaml | |
``` | |
apiVersion: operators.coreos.com/v1alpha1 | |
kind: CatalogSource | |
metadata: | |
name: gitops-service-source-av | |
namespace: openshift-marketplace | |
spec: | |
displayName: 'Gitops Service by Red Hat' | |
image: 'docker.io/abhishekf5/gitops-operator-index:rhsso' | |
publisher: 'Red Hat Developer' | |
sourceType: grpc | |
``` | |
oc create -f /opt/workspace/gitops-operator-stuff/catalog_source.yaml | |
Go to operator hub and create the operator and instance :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment