-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move custom tekton resources into the operator
- Loading branch information
1 parent
a0e5cf7
commit 01233d3
Showing
14 changed files
with
81 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...li/components/embedded/kustomization.yaml → ...nents/tekton-resources/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
resources: | ||
- cosign-verify.yaml | ||
- nix2container-copyto.yaml | ||
- nix2container-image-info.yaml | ||
- rebuild-nativelink.yaml | ||
- skopeo-copy.yaml | ||
- cosign-verify.yaml | ||
- skopeo-check-hashlocked-url.yaml | ||
- nix2container-image-info.yaml | ||
- skopeo-copy.yaml | ||
- trigger.yaml | ||
- update-image-tags.yaml | ||
- capacitor.yaml | ||
# - nativelink-gateways.yaml # Gateways are handled in Pulumi via the | ||
# NativeLinkGateways resource. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package components | ||
|
||
import ( | ||
_ "embed" | ||
"fmt" | ||
|
||
"github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/yaml" | ||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" | ||
) | ||
|
||
type Capacitor struct { | ||
Dependencies []pulumi.Resource | ||
} | ||
|
||
// These are vendored yaml files which we don't port to Pulumi so that we can | ||
// potentially adjust/reuse them in more generic contexts. We embed them in the | ||
// executable to keep the cli portable. | ||
// | ||
//go:embed embedded/capacitor.yaml | ||
var capacitorYaml string | ||
|
||
// Install sets up the Capacitor dashboard. | ||
func (component *Capacitor) Install( | ||
ctx *pulumi.Context, | ||
name string, | ||
) ([]pulumi.Resource, error) { | ||
capacitor, err := yaml.NewConfigGroup( | ||
ctx, | ||
name, | ||
&yaml.ConfigGroupArgs{ | ||
YAML: []string{capacitorYaml}, | ||
}, | ||
pulumi.DependsOn(component.Dependencies), | ||
) | ||
if err != nil { | ||
return nil, fmt.Errorf("%w: %w", errPulumi, err) | ||
} | ||
|
||
return []pulumi.Resource{capacitor}, nil | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters