-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharmcraft.yaml
82 lines (72 loc) · 2.25 KB
/
charmcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: github-profiles-automator
type: charm
title: GitHub Profiles Automator charm
summary: A charm for automating the management of Kubeflow Profiles from a GitHub repository
description: |
A charm to automatically sync Kubeflow Profiles from information a GitHub repository.
This charm is responsible for monitoring a file from a GitHub repo that represents
which Profiles and Contributors should exist in a cluster. Then, via a reconciliation loop
the charm will update the Profiles and RoleBindings and AuthorizationPolicies in the
cluster to align with this representation.
It is useful for cluster administrators who want to automatically update
the profiles on the cluster, based on a single source of truth.
base: [email protected]
platforms:
amd64:
config:
options:
repository:
default: ""
description: |
The URL of the repository to fetch. Must be configured for the charm to
operate.
type: string
git-revision:
default: "HEAD"
description: |
The git revision to check out.
type: string
sync-period:
default: 60
description: |
How long to wait between sync attempts.
type: int
pmr-yaml-path:
default: "pmr.yaml"
description: |
The relative path to the .yaml file inside the GitHub repository that
contains the PMR information
type: string
ssh-key-secret-id:
type: secret
description: |
A configuration option to store the secret ID needed to access the SSH key for the GitHub
repository
containers:
git-sync:
resource: git-sync-image
mounts:
- storage: content-from-git
location: /git
resources:
git-sync-image:
type: oci-image
description: OCI image for the 'git-sync' container
upstream-source: registry.k8s.io/git-sync/git-sync:v4.4.0
storage:
content-from-git:
type: filesystem
parts:
charm:
charm-python-packages: [setuptools]
# Until rustc 1.76 is available via apt we can remove the lines below
# https://github.com/canonical/charmcraft/issues/1722
build-snaps:
- rustup
build-packages:
- libffi-dev
- libssl-dev
- pkg-config
override-build: |
rustup default stable
craftctl default