Comments (5)
I've started working on this.
from airshipctl.
New Related Change: https://review.opendev.org/710084
Authored By: Kostyantyn Kalynovskyi ([email protected])
from airshipctl.
New Related Change: https://review.opendev.org/709252
Authored By: Kostyantyn Kalynovskyi ([email protected])
from airshipctl.
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.
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)
- Support multiple versions of clusterctl HOT 5
- AIAP: Document the requirements for the infrastructure builder image HOT 4
- AIAP: Create a multi-node `infra-builder` image HOT 3
- AIAP: Using the `.git` suffix on repository names causes runner pod failure HOT 2
- AIAP: support non test GPG keys HOT 5
- Provide Calico CNI IPv4/v6/Dual Stack Support in Airshipctl HOT 2
- AIAP : Support for DualStack IPv6 HOT 2
- Install latest docker version within build_gate.sh script HOT 1
- Enable extraction of target/workload cluster artifacts HOT 3
- AIAP: Shift gates to use AIAP HOT 3
- AIAP: Documentation redirect HOT 3
- source|target version replacement for qcow_bundle is missing. HOT 4
- AIAP : Add support for IPV6 infra to test Airship-in-a-pod in Zuul Gates HOT 2
- 10_build_gate.sh fails to locate ensure-docker ansible role HOT 3
- `make manifests` target doesn't work HOT 1
- Create zuul job which performs make generate/make manifests HOT 1
- Develop new kubeconfig workflow HOT 2
- Allow to resume phase plan execution from a certain phase HOT 2
- Fail to create kubeval-validator image. HOT 2
- namespace-v1.json is missing when running "airshipctl plan validate deploy-gating" HOT 3
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 airshipctl.