OBJECT

KubernetesMutateResource

link GraphQL Schema definition

  • type KubernetesMutateResource {
  • # Create kubernetes resource, specified by kind
  • #
  • # Arguments
  • # context: KRM context
  • # dryRun: Submit request without persisting the resource
  • # json: Raw JSON input as expected by KRM API
  • # kind: Resource kind - also accepts singular, plural or short
  • # names of types
  • # kindMajorVersion: Major version number of resource kind schema
  • # resource: GraphQL JSON representation of resource, which is
  • # slightly different from KRM form
  • # yaml: Raw YAML input as expected by KRM API
  • create(
  • context: KubernetesResourceContextInput,
  • dryRun: Boolean,
  • json: JSON,
  • kind: String!,
  • kindMajorVersion: Int,
  • resource: JSON,
  • yaml: String
  • ): KubernetesResourceInterface
  • # Delete kubernetes resource, specified by kind and name
  • #
  • # Arguments
  • # context: KRM context
  • # dryRun: Submit request without persisting the resource
  • # json: Raw JSON input as expected by KRM API
  • # kind: Resource kind - also accepts singular, plural or short
  • # names of types
  • # kindMajorVersion: Major version number of resource kind schema
  • # resource: GraphQL JSON representation of resource, which is
  • # slightly different from KRM form
  • # yaml: Raw YAML input as expected by KRM API
  • delete(
  • context: KubernetesResourceContextInput,
  • dryRun: Boolean,
  • json: JSON,
  • kind: String!,
  • kindMajorVersion: Int,
  • resource: JSON,
  • yaml: String
  • ): KubernetesMutateDeleteResponse
  • # Patch kubernetes resource, specified by kind and name
  • #
  • # Arguments
  • # context: KRM context
  • # dryRun: Submit request without persisting the resource
  • # json: Raw JSON input as expected by KRM API
  • # kind: Resource kind - also accepts singular, plural or short
  • # names of types
  • # kindMajorVersion: Major version number of resource kind schema
  • # name: Name of the resource that is being updated
  • # patchType: The type of the patch being provided
  • # resource: GraphQL JSON representation of resource, which is
  • # slightly different from KRM form
  • # yaml: Raw YAML input as expected by KRM API
  • patch(
  • context: KubernetesResourceContextInput,
  • dryRun: Boolean,
  • json: JSON,
  • kind: String!,
  • kindMajorVersion: Int,
  • name: String!,
  • patchType: KubernetesPatchType!,
  • resource: JSON,
  • yaml: String
  • ): KubernetesResourceInterface
  • # Update kubernetes resource, specified by kind and name
  • #
  • # Arguments
  • # context: KRM context
  • # dryRun: Submit request without persisting the resource
  • # json: Raw JSON input as expected by KRM API
  • # kind: Resource kind - also accepts singular, plural or short
  • # names of types
  • # kindMajorVersion: Major version number of resource kind schema
  • # resource: GraphQL JSON representation of resource, which is
  • # slightly different from KRM form
  • # yaml: Raw YAML input as expected by KRM API
  • update(
  • context: KubernetesResourceContextInput,
  • dryRun: Boolean,
  • json: JSON,
  • kind: String!,
  • kindMajorVersion: Int,
  • resource: JSON,
  • yaml: String
  • ): KubernetesResourceInterface
  • # Upsert (create or update) kubernetes resource, specified by kind
  • #
  • # Arguments
  • # context: KRM context
  • # dryRun: Submit request without persisting the resource
  • # json: Raw JSON input as expected by KRM API
  • # kind: Resource kind - also accepts singular, plural or short
  • # names of types
  • # kindMajorVersion: Major version number of resource kind schema
  • # resource: GraphQL JSON representation of resource, which is
  • # slightly different from KRM form
  • # yaml: Raw YAML input as expected by KRM API
  • upsert(
  • context: KubernetesResourceContextInput,
  • dryRun: Boolean,
  • json: JSON,
  • kind: String!,
  • kindMajorVersion: Int,
  • resource: JSON,
  • yaml: String
  • ): KubernetesResourceInterface
  • }