Skip to content

Instantly share code, notes, and snippets.

@abutcher
Created March 7, 2019 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abutcher/9f73753d75a968f74bad85f6df71ca89 to your computer and use it in GitHub Desktop.
Save abutcher/9f73753d75a968f74bad85f6df71ca89 to your computer and use it in GitHub Desktop.
$ make deploy
go generate ./pkg/... ./cmd/...
hack/update-bindata.sh
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go crd
[debug] name="BaseDomain"
[debug] type="string"
[debug] JSONPath=".spec.baseDomain"
[debug] name="Installed"
[debug] type="boolean"
[debug] JSONPath=".status.installed"
[debug] name="Age"
[debug] type="date"
[debug] JSONPath=".metadata.creationTimestamp"
[debug] name="Hive"
[debug] type="string"
[debug] JSONPath=".spec.hiveImage"
[debug] name="Installer"
[debug] type="string"
[debug] JSONPath=".status.installerImage"
[debug] name="Release"
[debug] type="string"
[debug] JSONPath=".spec.releaseImage"CRD files generated, files can be found under path /home/abutcher/go/src/github.com/openshift/hive/config/crds.
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go rbac
RBAC manifests generated under 'config/rbac' directory
cp config/crds/hive_v1alpha1_hiveconfig.yaml config/manifests/01_hiveconfig_crd.yaml
cp config/crds/hive_v1alpha1_clusterdeployment.yaml config/manifests/01_clusterdeployment_crd.yaml
cp config/crds/hive_v1alpha1_dnszone.yaml config/manifests/01_dnszone_crd.yaml
cp config/rbac/rbac_role.yaml config/manifests/01_rbac_role.yaml
cp config/rbac/rbac_role_binding.yaml config/manifests/01_rbac_role_binding.yaml
cp config/rbac/hiveadmission_rbac_role.yaml config/manifests/01_hiveadmission_rbac_role.yaml
cp config/rbac/hiveadmission_rbac_role_binding.yaml config/manifests/01_hiveadmission_rbac_role_binding.yaml
# Deploy the operator manifests:
mkdir -p overlays/deploy
cp overlays/template/* overlays/deploy
if [[ "`uname`" == "Darwin" ]]; then \
sed -i "" -e "s|IMAGE_REF|registry.svc.ci.openshift.org/openshift/hive-v4.0:hive|" overlays/deploy/image_patch.yaml; \
else \
sed -i -e "s|IMAGE_REF|registry.svc.ci.openshift.org/openshift/hive-v4.0:hive|" overlays/deploy/image_patch.yaml; \
fi
echo registry.svc.ci.openshift.org/openshift/hive-v4.0:hive
registry.svc.ci.openshift.org/openshift/hive-v4.0:hive
kustomize build overlays/deploy | kubectl apply -f -
Error: loadResMapFromBasesAndResources: SemiResources: loadResMapFromBasesAndResources: rawResources failed to read Resources: id '"noGroup_v1_List|noNamespace|noPrefix|noName"' already used
error: no objects passed to apply
make: *** [Makefile:84: deploy] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment