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

mruoss / kompost / ec08a1d38fca5d088ebcc50484574728b5927c07-PR-99

03 Aug 2024 09:11PM UTC coverage: 54.25%. Remained the same
ec08a1d38fca5d088ebcc50484574728b5927c07-PR-99

Pull #99

github

web-flow
chore(deps): update dependency postgrex to ~> 0.19.0
Pull Request #99: chore(deps): update dependency postgrex to ~> 0.19.0

300 of 553 relevant lines covered (54.25%)

95.42 hits per line

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

0.0
/lib/kompost/kompo/postgres/v1alpha1/postgres_instance.ex
1
defmodule Kompost.Kompo.Postgres.V1Alpha1.PostgresInstance do
2
  @moduledoc """
3
  Postgres Instance 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
            anyOf:
24
            - required: ["hostname", "port", "username", "passwordSecretRef"]
25
            - required: ["hostname", "port", "username", "plainPassword"]
26
            properties:
27
              hostname:
28
                type: string
29
              port:
30
                type: integer
31
              username:
32
                type: string
33
              passwordSecretRef:
34
                type: object
35
                required: ["name", "key"]
36
                properties:
37
                  name:
38
                    type: string
39
                  key:
40
                    type: string
41
              plainPassword:
42
                type: string
43
                description: "It's not safe to save passwords in plaintext. Consider using passwordSecretRef instead."
44
              ssl:
45
                type: object
46
                properties:
47
                  enabled:
48
                    type: boolean
49
                    description: "Set to true if ssl should be used."
50
                  verify:
51
                    type: string
52
                    description: "'verify_none' or 'verify_peer'. Defaults to 'verify_none'"
53
                  ca:
54
                    type: string
55
                    description: "CA certificates used to validate the server cert against."
56
      """a
57
    )
58
    |> add_observed_generation_status()
59
    |> add_conditions()
×
60
  end
61
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