Code Monkey home page Code Monkey logo

Comments (7)

gnarea avatar gnarea commented on August 14, 2024

Hey folks. Any idea whether this is supported or how I can use it?

from spinnaker-for-gcp.

demobox avatar demobox commented on August 14, 2024

Thanks for opening this, @gnarea - apologies for the delayed response!

because spinnaker-for-gcp doesn't seem to support specifying Spring Cloud Config values

Could you provide a bit more detail about what you tried to do? You should have full access to the configuration of the instances Spinnaker for GCP sets up for you, and should also be able to use any Spinnaker OSS version. So it would be helpful to know what you tried and what didn't work, or where it wasn't clear how to do what the docs were asking you to do.

Thanks!

from spinnaker-for-gcp.

gnarea avatar gnarea commented on August 14, 2024

Hey @demobox. Thanks for getting back to me!

I didn't get far at all as I was lost from the very beginning. It all boils down to a very simple question: Where do I set spring.cloud.config.server.git when I use Spinnaker for GCP?

The docs say the following early on:

To enable external configuration via the Config Server, add Spring Cloud Config configuration properties, which are under spring.cloud.config.server, and include settings for the backend you wish to use. If you deploy Spinnaker manually, you might place this configuration in a YAML file called spinnakerconfig.yml, alongside your spinnaker.yml file.

I have no idea what they mean by deploying Spinnaker "manually" (I only know of one way to deploy Spinnaker and that's hal deploy apply) or whether Spinnaker for GCP would be classed as "deploying Spinnaker manually" (I wouldn't think so); either way, neither of the two files above exist according to find $HOME -name spinnakerconfig.yml -or -name spinnaker.yml.

I tried adding the following to my .hal/config:

spring:
  profiles:
    include: git
  cloud:
    config:
      server:
        git:
          uri: https://github.com/example/spinnaker-config
          refresh-rate: 10

But push_and_apply.sh failed with the following error:

ERROR Could not translate your halconfig: Unrecognized field
  "spring" (class com.netflix.spinnaker.halyard.config.model.v1.node.Halconfig),
  not marked as ignorable (3 known properties: "deploymentConfigurations",
  "halyardVersion", "currentDeployment"])
at [Source: UNKNOWN; line: -1, column: -1] (through reference chain:
  com.netflix.spinnaker.halyard.config.model.v1.node.Halconfig["spring"])

from spinnaker-for-gcp.

wilddog64 avatar wilddog64 commented on August 14, 2024

I think the document ask you to push spinnakerconfig.yml and spinnaker.yml side by side in the same directory, not put the content in spinnaker.yml

from spinnaker-for-gcp.

gnarea avatar gnarea commented on August 14, 2024

from spinnaker-for-gcp.

wilddog64 avatar wilddog64 commented on August 14, 2024

from spinnaker-for-gcp.

gnarea avatar gnarea commented on August 14, 2024

Oh, that was added last week: spinnaker/spinnaker.github.io@b93e33a#diff-5fd2f4edaf75d04a9eea3d6ef989a46e

So in that case I have the info I need.

Thanks!

from spinnaker-for-gcp.

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.