Skip to content

Commit

Permalink
- Use modified fork of controller-tools to be able to use
Browse files Browse the repository at this point in the history
Unstructured type as CR field type. See kubernetes-sigs/controller-tools#301
- Leave comment about being able to use only LabelSelector field

Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
  • Loading branch information
muvaf authored and hasheddan committed Aug 9, 2019
1 parent 6d79f35 commit a0d56a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ required = [
name="sigs.k8s.io/controller-runtime"
version="v0.2.0-beta.5"

[[constraint]]
[[override]]
name="sigs.k8s.io/controller-tools"
version = "v0.2.0-beta.5"
source = "https://github.com/muvaf/controller-tools.git"
revision = "301a879da11105676f319f9080278a54b956d07f"

# temp stanzas
[[override]]
Expand Down
3 changes: 3 additions & 0 deletions apis/workload/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ type KubernetesApplicationSpec struct {
// KubernetesApplicationResources.
ResourceSelector *metav1.LabelSelector `json:"resourceSelector"`

// TODO(muvaf): Only MatchLabels field of LabelSelector is used. Incorporate
// MatchExpressions as well when it's available as controller-runtime ListOption

// ClusterSelector selects the clusters to which this application may be
// scheduled. Leave both match labels and expressions empty to match any
// cluster.
Expand Down

0 comments on commit a0d56a8

Please sign in to comment.