devops-toolkit/dot-gitops@v0.2.14
gitops-fleet

gitops-fleet

gitops-fleet
devops-toolkit/dot-gitops@v0.2.14gitops-fleet
Type

Composition

Referenced XRD

GitOps

Source Codegithub.com/vfarcic/devops-toolkit-crossplane/tree/master/packages/gitops
Resources (2)

The following resources are composed to implement the referenced Composite Resource Definition (XRD).

Kind
Group
Version

ProviderConfig

kubernetes.crossplane.io
v1alpha1

Object

kubernetes.crossplane.io
v1alpha1
YAML
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
  name: gitops-fleet
  creationTimestamp: null
  labels:
    initiate-by: manager
    provider: fleet
spec:
  compositeTypeRef:
    apiVersion: devopstoolkitseries.com/v1alpha1
    kind: GitOps
  patchSets:
    - name: metadata
      patches:
        - fromFieldPath: metadata.labels
  resources:
    - name: kubernetes
      base:
        apiVersion: kubernetes.crossplane.io/v1alpha1
        kind: ProviderConfig
        spec:
          credentials:
            source: InjectedIdentity
      patches:
        - fromFieldPath: spec.id
          toFieldPath: metadata.name
          transforms:
            - type: string
              string:
                fmt: gitops-%s
      readinessChecks:
        - type: None
    - name: cluster
      base:
        apiVersion: kubernetes.crossplane.io/v1alpha1
        kind: Object
        spec:
          forProvider:
            manifest:
              apiVersion: fleet.cattle.io/v1alpha1
              kind: Cluster
      patches:
        - fromFieldPath: spec.id
          toFieldPath: metadata.name
          transforms:
            - type: string
              string:
                fmt: gitops-%s-cluster
        - fromFieldPath: spec.id
          toFieldPath: spec.providerConfigRef.name
          transforms:
            - type: string
              string:
                fmt: gitops-%s
        - fromFieldPath: spec.parameters.kubeConfig.secretNamespace
          toFieldPath: spec.forProvider.manifest.metadata.namespace
        - fromFieldPath: spec.id
          toFieldPath: spec.forProvider.manifest.metadata.labels.cluster
        - fromFieldPath: spec.parameters.environment
          toFieldPath: spec.forProvider.manifest.metadata.labels.env
        - fromFieldPath: spec.parameters.kubeConfig.secretName
          toFieldPath: spec.forProvider.manifest.spec.kubeConfigSecret
Discover the building blocks for your internal cloud platform.
© 2024 Upbound, Inc.
Solutions