Code Monkey home page Code Monkey logo

Comments (7)

marekjelen avatar marekjelen commented on June 12, 2024

@jorgemoralespou can you help here? I am not as familiar with minishift.

from installcentos.

jorgemoralespou avatar jorgemoralespou commented on June 12, 2024

@ryannix123 If I understand what you're trying to do, is execute the addon on the OpenShift cluster that has been installed via this repository method?

If that is correct, you should get into the OpenShift VM and execute that command without "minishift" prefix, but AFAIK that is not required on a regular cluster but only on a minishift cluster, because how that OpenShift instance is configured by default.

If what you want is help setting up OpenWhisk on minishift, the openwisk addon is a great place to start and ask there, although I guess you're coming from that (https://github.com/minishift/minishift-addons/tree/master/add-ons/openwhisk).

If you give me more details on what you're trying to do I might be able to provide a better answer.

from installcentos.

ryannix123 avatar ryannix123 commented on June 12, 2024

Thanks, @jorgemoralespou Yes, I'm trying to patch my instance with the code above so I can properly deploy OpenWhisk on my single instance of OpenShift.

from installcentos.

ryannix123 avatar ryannix123 commented on June 12, 2024

What is the syntax for patching? Something like this?

oc patch config set --patch '{"admissionConfig": "pluginConfig": {"openshift.io/ImagePolicy": {"configuration": {"apiVersion": "v1","kind": "ImagePolicyConfig", "resolveImages": "AttemptRewrite"}}}}}'

When I try to run this, the message I get back says "the server doesn't have a resource type "config""

from installcentos.

jorgemoralespou avatar jorgemoralespou commented on June 12, 2024

oc is the cli for OpenShift. On the server there is another command, called openshift (soon to be removed) that is admin CLI, but the command patch is removed from that CLI.

Currently the options for a 3.9 environment are:

  • Use sed
  • Use a docker image of openshift:3.7 (or before) to patch the config file, like this:
docker run -v <CONF_DIR>:/config -it --rm \
       openshift/origin:v3.7 \
       /usr/bin/openshift ex config patch /config/master-config.yaml --patch='{"admissionConfig": "pluginConfig": {"openshift.io/ImagePolicy": {"configuration": {"apiVersion": "v1","kind": "ImagePolicyConfig", "resolveImages": "AttemptRewrite"}}}}}'

Replace CONF_DIR with your directory.

Anyways, you need to verify that is the config you need in your 3.9 OpenShift instance. You should ask in the appropriate forum, and not here.

from installcentos.

jcrossley3 avatar jcrossley3 commented on June 12, 2024

@ryannix123 fwiw, you shouldn't need to do this anymore as we reverted our ImageStream use on the master branch. (it's still good to know how, of course)

from installcentos.

ryannix123 avatar ryannix123 commented on June 12, 2024

Terrific. Thanks, @jcrossley3 and @jorgemoralespou

from installcentos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.