Comments (5)
@stencell what version of kubectl
are you using? From the issue description I can see you included the output of kubectl version
however there is no Major
or Minor
version specified in the Client Version
.
I've pushed an "experimental" branch (https://github.com/open-cluster-management/deploy/tree/issue-54) to try to address the issue using the patchesStrategicMerge
option in the kustomization.yaml
file...
If this works you will probably still see an error or warning about the default sa account already existing however it should still be patched and the output of the following command should show the inclusion of the multiclusterhub-operator-pull-secret
in the imagePullSecrets
key:
oc get serviceaccount default -n open-cluster-management -o yaml
from deploy.
Ah, so the kubectl
that was available on this node is the one that ships from RH along with oc
in https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.3.8/openshift-client-linux-4.3.8.tar.gz. Here I think is just a hard link to oc
, so not the "real" kubectl.
from deploy.
It happened to me in my environment:
$ oc version
Client Version: 4.4.0-0.nightly-2020-04-27-013217
Server Version: 4.4.0-0.nightly-2020-04-27-013217
Kubernetes Version: v1.17.1
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:56:40Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.1", GitCommit:"b9b84e0", GitTreeState:"clean", BuildDate:"2020-04-26T20:16:35Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
I guess that's because OpenShift creates a project object when you create a namespace as well as some service accounts by default (default, builder, deployer) so kustomize creates the namespace, then the service account with the proper imagepullsecret, but then it is overwritten by OpenShift.
I've not tested it but maybe you can create the namespace first, wait for the sa to be ready (I've been looking if you can 'wait' for a service account, but I'm afraid it cannot be done as it doesn't have conditions and kubernetes/kubernetes#83094) then apply the rest of the kustomizations.
My 2 cents.
from deploy.
A workaround is to start with kubectl apply --openapi-patch=true -k prereqs/ then run the start.sh script afterwards.
from deploy.
This happened in my environment always and I had been suffering for days.
My workaround was to run it twice by updating the ./start.sh
:
# Why twice? It's because there might be a potential race issue while patching the pull secret
kubectl apply -k prereqs/
sleep 2
kubectl apply -k prereqs/
Note: having the
--openapi-patch=true
didn't help
from deploy.
Related Issues (20)
- [BUG][DEPLOY] Waiting for API group to be available certmanager.k8s.io/v1alpha1 HOT 1
- [BUG][DEPLOY] Cert manager unable to issue certificates HOT 1
- [QUESTION] How to get pull secret for non-Redhat people ? HOT 3
- [Question] Can OCM working without OpenShift Container Platform? HOT 1
- [FEATURE] Provide Policy for ETCD backup and monitor ETCD backup
- [BUG][DEPLOY] Unable to cleanup Klusterlet CRD HOT 3
- [FEATURE] Should prompt users in nuke.sh for confirmation before the script proceeds
- [DOCS] Documentation Link Outdated
- [BUG][DEPLOY] Uninstall script does not remove all services, replicasets, deployments and olms
- [BUG][The start.sh script uses same Downstream Builds SNAPSHOTS version for multiclusterengine operator]
- [BUG][DEPLOY] Uninstall script fails to detect oc 4.10 versions HOT 1
- [BUG][DEPLOY] Unable to install the multi-cluster engine using the provided installation script HOT 5
- [BUG][DEPLOY] Rename "main" branch
- [BUG][DEPLOY] Unable to install acm-custom-registy using start.sh HOT 1
- unable to get output from nginx-ingress external ip
- [BUG][DEPLOY] quay.io/stolostron/kube-rbac-proxy-mce: unauthorized: access to the requested resource is not authorized HOT 1
- [BUG][PRODUCT] HOT 1
- [FEATURE] etcd storage class configuration
- [FEATURE] Is it possible to use the "MultiClusterHub" cluster as managed cluster also?
- [BUG][DEPLOY] MongoDB keeps init and never come up HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deploy.