GithubHelp home page GithubHelp logo

Comments (5)

teoyaomiqui avatar teoyaomiqui commented on July 30, 2024

I've started working on this.

from airshipctl.

airshipbot avatar airshipbot commented on July 30, 2024

New Related Change: https://review.opendev.org/710084
Authored By: Kostyantyn Kalynovskyi ([email protected])

from airshipctl.

airshipbot avatar airshipbot commented on July 30, 2024

New Related Change: https://review.opendev.org/709252
Authored By: Kostyantyn Kalynovskyi ([email protected])

from airshipctl.

alanmeadows avatar alanmeadows commented on July 30, 2024

I'd also advocate that for instance, https://review.opendev.org/#/c/693238/21/pkg/cluster/initinfra/infra.go L84 another example that would benefit from centralization in the Bundle itself.

from airshipctl.

teoyaomiqui avatar teoyaomiqui commented on July 30, 2024

Introduce heavier bundle filtering

https://review.opendev.org/#/c/709252/ this patch set introduces annotationselector and label selector objects, and not just strings. I would like to have small discussion about this. Document labeling appears to be more a little more complex than we expected.
Small labels like

airshipt.org/ephemral: "true"
airshipit.org/target: "true"
airshipit.org/deploy: "true"

doesn't seem to be sufficient

what i've run into, is for example, you have baremetalhost object for ephemeral host. Do we deploy it to ephemeral cluster? I think its better not, because there is no consumer for that document, we don't want metal.io to redeploy it, or do anything with it. Do we deploy it to Target cluster? I am sure, some of the environments, may not have a spare server, and should like ephemeral host to be redeployed as compute or control-plane node. This is the first example, we may hit much more in the future.

So in this example, we have a document, that belongs to ephemeral and target cluster at the same time, but it should not be passed to k8s cluster of ephemeral cluster. This kind of complexity, leads to multiplying labels:

target: true
deploy-ephemeral: true
deploy-target:false
...

many more to come (and to keep in mind, that label is a string, not a boolean, so we create filters based on strings, == "True" or =="true", which is not very good looking.

Maybe we should introduce an object, document-meta, which would be stored in document annotations hold information for this:

type DocumentMeta struct {
  cluster map[string]ClusterMeta
}
type ClusterMeta struct {
  DeployToK8s bool `json:"deploy"`
}

I am not sure about how this will work with kustomize annotation transformers though.

But because i see very much expansion and upcoming changes to how we label/annotate and filter documents, i thought it would be better to abstract from using strings and relay on standalone objects instead.

from airshipctl.

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.