Skip to content

Commit 3e16152

Browse files
committed
Update GCP Marketplace deployer with proper image templating and schema configuration
1 parent e6cad4e commit 3e16152

File tree

5 files changed

+41
-12
lines changed

5 files changed

+41
-12
lines changed

deploy/gcp.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function(version='v0.0.1-alpha.3')
1616
name: '$name',
1717
namespace: '$namespace',
1818
version: version,
19-
image: 'ghcr.io/parca-dev/parca-agent:' + version,
19+
image: '$imageRepo:$imageTag',
2020
// This assumes there's a running parca in the cluster.
2121
stores: ['parca.parca.svc.cluster.local:7070'],
2222
insecure: true,

deploy/gcp/Dockerfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

deploy/gcp/deployer/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM gcr.io/cloud-marketplace-tools/k8s/deployer_envsubst/onbuild
2+
3+
#COPY /tmp/$CHART_NAME.tar.gz /data/chart/
4+
#COPY /tmp/test/$CHART_NAME.tar.gz /data-test/chart/
5+
#COPY /tmp/apptest/schema.yaml /data-test/
6+
COPY schema.yaml /data/

deploy/gcp/manifest/manifest.yaml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ spec:
124124
valueFrom:
125125
fieldRef:
126126
fieldPath: spec.nodeName
127-
image: ghcr.io/parca-dev/parca-agent:v0.44.0
127+
image: $imageRepo:$imageTag
128128
name: parca-agent
129129
ports:
130130
- containerPort: 7071

deploy/gcp/schema.yaml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
11
x-google-marketplace:
22
schemaVersion: v2
3-
43
applicationApiVersion: v1beta1
54
# The published version is required and MUST match the tag
65
# of the deployer image
7-
publishedVersion: '0.44.0'
6+
publishedVersion: 'v0.44.0'
87
publishedVersionMetadata:
98
releaseNote: >-
10-
A first release.
11-
# The images property will be filled in during part 2
12-
images: {}
9+
Initial release of Parca Agent for Google Cloud Marketplace.
10+
Parca Agent is an always-on sampling profiler that uses eBPF to capture
11+
raw profiling data with very low overhead.
12+
releaseTypes:
13+
- Feature
14+
recommended: true
15+
images:
16+
'':
17+
properties:
18+
imageRepo:
19+
type: REPO_WITH_REGISTRY
20+
imageTag:
21+
type: TAG
22+
deployerServiceAccount:
23+
description: >-
24+
The deployer service account requires cluster-level permissions to create
25+
ClusterRole and ClusterRoleBinding resources for Parca Agent.
26+
roles:
27+
- type: ClusterRole
28+
rulesType: CUSTOM
29+
rules:
30+
- apiGroups: ['rbac.authorization.k8s.io']
31+
resources: ['clusterroles', 'clusterrolebindings']
32+
verbs: ['*']
1333

1434
properties:
1535
name:
@@ -20,10 +40,14 @@ properties:
2040
type: string
2141
x-google-marketplace:
2242
type: NAMESPACE
23-
replicas:
24-
type: integer
25-
title: Nginx Replica Count
26-
description: The number of nginx replicas to deploy
43+
bearerToken:
44+
type: string
45+
title: Bearer Token
46+
description: >-
47+
Optional bearer token for authenticating with the remote Parca server.
48+
Leave empty if your Parca server does not require authentication.
49+
x-google-marketplace:
50+
type: MASKED_FIELD
2751

2852
required:
2953
- name

0 commit comments

Comments
 (0)