• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mruoss / kompost / 4c806c6743d3bbcc9295e3a82a3df3d2ac99dbf5-PR-24

pending completion
4c806c6743d3bbcc9295e3a82a3df3d2ac99dbf5-PR-24

Pull #24

github

web-flow
chore(deps): update dependency elixir to v1.15.2
Pull Request #24: chore(deps): update dependency elixir to v1.15.2

280 of 473 relevant lines covered (59.2%)

6.03 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/kompost/kompo/postgres/v1alpha1/postgres_database.ex
1
defmodule Kompost.Kompo.Postgres.V1Alpha1.PostgresDatabase do
2
  @moduledoc """
3
  Postgres Database CRD v1alpha1 version.
4
  """
5

6
  import YamlElixir.Sigil
7

8
  use Bonny.API.Version,
9
    hub: true
10

11
  @impl true
12
  def manifest() do
13
    struct!(
14
      defaults(),
15
      name: "v1alpha1",
16
      schema: ~y"""
17
      :openAPIV3Schema:
18
        :type: object
19
        :required: ["spec"]
20
        :properties:
21
          :spec:
22
            type: object
23
            required: ["instanceRef"]
24
            properties:
25
              instanceRef:
26
                type: object
27
                properties:
28
                  namespace:
29
                    type: string
30
                  name:
31
                    type: string
32
              params:
33
                description: "Parameters passed to CREATE TEMPLATE."
34
                type: object
35
                properties:
36
                  template:
37
                    description: "(Optional) The name of the template from which to create the new database."
38
                    type: string
39
                  encoding:
40
                    description: "(Optional) Character set encoding to use in the new database. Specify a string constant (e.g., 'SQL_ASCII'), or an integer encoding number."
41
                    x-kubernetes-int-or-string: true
42
                    anyOf:
43
                      - type: integer
44
                      - type: string
45
                  locale:
46
                    description: "(Optional) This is a shortcut for setting lc_collate and lc_type at once."
47
                    type: string
48
                  lc_collate:
49
                    description: "(Optional) Collation order (LC_COLLATE) to use in the new database."
50
                    type: string
51
                  lc_ctype:
52
                    description: "(Optional) Character classification (LC_CTYPE) to use in the new database."
53
                    type: string
54
                  connection_limit:
55
                    description: "(Optional) How many concurrent connections can be made to this database. -1 (the default) means no limit."
56
                    type: integer
57
                  is_template:
58
                    description: "(Optional) If true, then this database can be cloned by any user with CREATEDB privileges; if false (the default), then only superusers or the owner of the database can clone it."
59
                    type: boolean
60
          :status:
61
            :type: :object
62
            :properties:
63
              sql_db_name:
64
                type: string
65
              users:
66
                type: array
67
                items:
68
                  type: object
69
                  properties:
70
                    username:
71
                      type: string
72
                    secret:
73
                      type: string
74
      """a,
75
      additionalPrinterColumns: [
76
        %{
77
          name: "Postgres DB name",
78
          type: "string",
79
          description: "Name of the database on the Postgres instance",
80
          jsonPath: ".status.sql_db_name"
81
        }
82
      ]
83
    )
84
    |> add_observed_generation_status()
85
    |> add_conditions()
×
86
  end
87
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc