@pattform/api-kit 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/AppComponent.d.ts
CHANGED
package/dist/AppComponent.js
CHANGED
|
@@ -151,11 +151,15 @@ class AppComponent extends pulumi.ComponentResource {
|
|
|
151
151
|
const cloudFlareProvider = new cloudflare.Provider(`pattform-app-cloudflare-${appName}-${env}`, {
|
|
152
152
|
apiToken: cloudFrontToken,
|
|
153
153
|
});
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
// A zone created in the same program (args.zoneId) can't be looked
|
|
155
|
+
// up by name yet, so its id is passed in instead.
|
|
156
|
+
const cloudflareZone = args.zoneId
|
|
157
|
+
? { id: pulumi.output(args.zoneId) }
|
|
158
|
+
: cloudflare.getZoneOutput({
|
|
159
|
+
name: args.domain
|
|
160
|
+
}, {
|
|
161
|
+
provider: cloudFlareProvider,
|
|
162
|
+
});
|
|
159
163
|
// ACM validates domain ownership with one deterministic CNAME per
|
|
160
164
|
// apex, shared across every cert for that domain. When another
|
|
161
165
|
// stack already manages the apex (e.g. the apex/www site while this
|
|
@@ -46,9 +46,11 @@ class ContainerComponent extends pulumi.ComponentResource {
|
|
|
46
46
|
});
|
|
47
47
|
// Form the repository URL
|
|
48
48
|
const repoUrl = pulumi.concat(gcpRegion, "-docker.pkg.dev/", gcpProject, "/", this.repository.repositoryId);
|
|
49
|
-
const imageRef =
|
|
50
|
-
? pulumi.
|
|
51
|
-
:
|
|
49
|
+
const imageRef = args.image
|
|
50
|
+
? pulumi.output(args.image)
|
|
51
|
+
: imageRefFromConfig
|
|
52
|
+
? pulumi.interpolate `${repoUrl}/${args.imageName}@${imageRefFromConfig}`
|
|
53
|
+
: pulumi.interpolate `${repoUrl}/${args.imageName}:latest`;
|
|
52
54
|
// Default Spring Boot probe paths (can be overridden via args)
|
|
53
55
|
const defaultReadinessPath = (_d = args.readinessPath) !== null && _d !== void 0 ? _d : "/actuator/health/readiness";
|
|
54
56
|
const defaultLivenessPath = (_e = args.livenessPath) !== null && _e !== void 0 ? _e : "/actuator/health/liveness";
|