OBJECT

KubernetesResourceRelationships

any relationship may be available from a generic kubernetes resource

link GraphQL Schema definition

  • type KubernetesResourceRelationships implements KubernetesResourceConnectingRelationship, KubernetesResourceConnectorRelationship, KubernetesResourceControllerRelationship, KubernetesResourceControllingRelationship {
  • # For resources that connect other resources to somewhere else, e.g. Pods are
  • # connected through a Service, this provides a link to the connected resources
  • #
  • # Arguments
  • # after: relay-compatible cursor for paging
  • # first: relay-compatible page size
  • connecting(after: String, first: Int): KubernetesResourceInterfaceConnection
  • # For resources that are connected through another resource, e.g. Pods are
  • # connected through a Service, this provides a link to the connecting resource(s)
  • connector: [KubernetesResourceInterface!]
  • # For resources that define a metadata.ownerReference, this contains a link to the
  • # reference which has controller: true
  • controller: KubernetesResourceInterface
  • # For resource types that manage other resources, this provides a paged link to
  • # the managed resources
  • #
  • # Arguments
  • # after: relay-compatible cursor for paging
  • # first: relay-compatible page size
  • controlling(after: String, first: Int): KubernetesResourceInterfaceConnection
  • # When present, a link to the Entity that represents this Kubernetes resource
  • entity: Entity
  • # Query events involving this resource
  • events: [KubernetesKindEvent!]
  • # For types that create a new context, specifies the context
  • managedContext: KubernetesResourceContext
  • # Query this resource's namespace if it is namespace-scoped
  • namespace: KubernetesKindNamespace
  • # For types that create a new context, query resourceKinds in that context
  • #
  • # Arguments
  • # after: relay-compatible cursor for paging
  • # context: KRM context
  • # first: relay-compatible page size
  • # kind: Filter by specific instances
  • queryKubernetesResourceKinds(
  • after: String,
  • context: KubernetesResourceContextInput,
  • first: Int,
  • kind: [String!]
  • ): KubernetesResourceKindConnection!
  • # For types that create a new context, query resources by kind in that context
  • #
  • # Arguments
  • # after: relay-compatible cursor for paging
  • # context: KRM context
  • # fieldSelector: Filter by field selector - see
  • # https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/
  • # first: relay-compatible page size
  • # kind: Resource kind - also accepts singular, plural or short
  • # names of types
  • # kindMajorVersion: Major version number of resource kind
  • # labelSelector: Filter by label selector - see
  • # https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  • # name: Filter by resource name
  • queryKubernetesResources(
  • after: String,
  • context: KubernetesResourceContextInput,
  • fieldSelector: String,
  • first: Int,
  • kind: String!,
  • kindMajorVersion: Int,
  • labelSelector: String,
  • name: [String!]
  • ): KubernetesResourceConnection
  • # permits access to this same resource via a strong GraphQL type
  • # via its KubernetesResourceInterface, permitting access to the specific type
  • # using a query fragment casting to the type such as KuberntesKindPod etc
  • resourceInterface: KubernetesResourceInterface!
  • }