Skip to content

Commit

Permalink
fix: http cache options (#19)
Browse files Browse the repository at this point in the history
* http cache options

* chore: self mutation

Signed-off-by: github-actions <[email protected]>

---------

Signed-off-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
jensens and github-actions authored Aug 12, 2024
1 parent 03314ae commit cf49306
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const project = new cdk.JsiiProject({
distName: 'cdk8s-plone',
module: 'cdk8s_plone',
},
// publishToGo: {
// moduleName: 'github.com/bluedynamics/cdk8s-plone-go',
// },
npmProvenance: true,
npmAccess: NpmAccess.PUBLIC,
});
Expand Down
46 changes: 23 additions & 23 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/httpcache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Helm } from 'cdk8s';
import { Construct } from 'constructs';
import { Plone } from './plone';

export interface PloneHttpCacheOptions {
export interface PloneHttpcacheOptions {
/**
* plone chart
* @default - none
Expand Down Expand Up @@ -38,7 +38,7 @@ export class PloneHttpcache extends Construct {

public readonly httpcacheServiceName: string;

constructor(scope: Construct, id: string, options: PloneHttpCacheOptions) {
constructor(scope: Construct, id: string, options: PloneHttpcacheOptions) {
super(scope, id);
let varnishVcl: string;
if (!options.varnishVcl) {
Expand All @@ -49,7 +49,6 @@ export class PloneHttpcache extends Construct {
vclPath = options.varnishVclFile;
}
varnishVcl = fs.readFileSync(vclPath, 'utf8');
throw new Error(varnishVcl);
} else {
varnishVcl = options.varnishVcl;
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { Plone, PloneOptions, PloneBaseOptions } from './plone';
export { PloneHttpcache, PloneHttpCacheOptions } from './httpcache';
export { PloneHttpcache, PloneHttpcacheOptions } from './httpcache';

0 comments on commit cf49306

Please sign in to comment.