require "kubernetes"

module ContainerMom
  # Define Kubernetes resources we need
  Kubernetes.define_resource "secrets",
    group: "",
    type: Kubernetes::Resource(JSON::Any),
    kind: "Secret",
    version: "v1"

  Kubernetes.define_resource "configmaps",
    group: "",
    type: Kubernetes::Resource(JSON::Any),
    kind: "ConfigMap",
    version: "v1"

  Kubernetes.define_resource "jobs",
    group: "batch",
    type: Kubernetes::Resource(JSON::Any),
    kind: "Job",
    version: "v1"

  Kubernetes.define_resource "deployments",
    group: "apps",
    type: Kubernetes::Resource(JSON::Any),
    kind: "Deployment",
    version: "v1"

  Kubernetes.define_resource "services",
    group: "",
    type: Kubernetes::Resource(JSON::Any),
    kind: "Service",
    version: "v1"

  Kubernetes.define_resource "ingresses",
    group: "networking.k8s.io",
    type: Kubernetes::Resource(JSON::Any),
    kind: "Ingress",
    version: "v1"
end
