faint-motherboard-95438
12/07/2018, 1:29 AMIssuer
, ClusterIssuer
, Certificate
, etc) that pulumi don’t know about (or at least I didn’t find the library that do) and I don’t know what to do from here. Should I create `CustomResource`s for those myself ? But if so I miss the needed knowledge to make it properly (I tried and got something kind of working but there’s things weird, like it doesn’t detect changes in the specs of some components I’ve made).creamy-potato-29402
12/07/2018, 1:32 AMapiextensions.CustomResource
with the right stuff in it?creamy-potato-29402
12/07/2018, 1:32 AMcreamy-potato-29402
12/07/2018, 1:32 AMcreamy-potato-29402
12/07/2018, 1:33 AMcreamy-potato-29402
12/07/2018, 1:33 AMfaint-motherboard-95438
12/07/2018, 1:37 AMexport default class ClusterIssuer extends pulumi.CustomResource {
readonly apiVersion: pulumi.Output<string>
readonly kind: pulumi.Output<string>
readonly metadata: pulumi.Output<any>
private readonly __inputs
/**
* Create a certmanager.v1alpha1.ClusterIssuer resource with
* the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor (name, args, opts) {
let inputs = {}
inputs['apiVersion'] = '<http://certmanager.k8s.io/v1alpha1|certmanager.k8s.io/v1alpha1>'
inputs['kind'] = 'ClusterIssuer'
inputs['metadata'] = args && args.metadata || undefined
// super(`kubernetes:${inputs.apiVersion}:${inputs.kind}`, name, inputs, opts)
super('kubernetes:<http://certmanager.k8s.io/v1alpha1:ClusterIssuer|certmanager.k8s.io/v1alpha1:ClusterIssuer>', name, inputs, opts)
this.__inputs = args
}
/**
* Get the state of an existing `ClusterIssuer` resource,
* as identified by `id`.
* Typically this ID is of the form <namespace>/<name> ;
* if <namespace> is omitted, then (per Kubernetes convention)
* the ID becomes default/<name>.
*
* Pulumi will keep track of this resource using `name` as the Pulumi ID.
*
* @param name _Unique_ name used to register this resource with Pulumi.
* @param id An ID for the Kubernetes resource to retrive. Takes the form
* <namespace>/<name> or <name>.
*/
static get (name, id) {
return new ClusterIssuer(name, undefined, { id })
}
getInputs () { return this.__inputs }
}
creamy-potato-29402
12/07/2018, 1:37 AMcreamy-potato-29402
12/07/2018, 1:37 AMfaint-motherboard-95438
12/07/2018, 1:38 AMfaint-motherboard-95438
12/07/2018, 1:38 AMcreamy-potato-29402
12/07/2018, 1:38 AMcreamy-potato-29402
12/07/2018, 1:38 AMfaint-motherboard-95438
12/07/2018, 1:39 AMargs
parameter) a pulumi up
don’t detect it and does not want to refresh the resource ?faint-motherboard-95438
12/07/2018, 1:40 AMcreamy-potato-29402
12/07/2018, 1:46 AMcreamy-potato-29402
12/07/2018, 1:47 AMsuper
?creamy-potato-29402
12/07/2018, 1:48 AMfaint-motherboard-95438
12/07/2018, 1:53 AMfaint-motherboard-95438
12/07/2018, 1:54 AM'kubernetes:<http://certmanager.k8s.io/v1alpha1:ClusterIssuer|certmanager.k8s.io/v1alpha1:ClusterIssuer>'
I just guessed the string based on other resources in the library, don’t know if that’s importantfaint-motherboard-95438
12/08/2018, 1:28 AMcreamy-potato-29402
12/08/2018, 1:29 AMfaint-motherboard-95438
12/08/2018, 1:34 AMinputs
in the constructor
:
inputs['spec'] = args && args.spec || undefined
inputs['status'] = args && args.status || undefined
I think after that, it worked as expected.creamy-potato-29402
12/08/2018, 1:35 AMcreamy-potato-29402
12/08/2018, 1:35 AMfaint-motherboard-95438
12/08/2018, 1:36 AMcert-manager
in typescript if that makes sense to do it, or will it be quickly outdated if you are able to generate everything from any chart soonimportant-carpenter-15282
12/08/2018, 4:37 PMfaint-motherboard-95438
12/09/2018, 1:01 AMimportant-carpenter-15282
12/09/2018, 6:44 PMfaint-motherboard-95438
12/11/2018, 9:35 AMbetter-rainbow-14549
12/13/2018, 4:16 PMfaint-motherboard-95438
12/14/2018, 1:38 PMbetter-rainbow-14549
12/14/2018, 4:22 PMbetter-rainbow-14549
12/14/2018, 4:22 PMbetter-rainbow-14549
12/14/2018, 4:22 PM