Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy: Allow v1 kubernetes deployments #13171

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

SimonRichardson
Copy link
Member

@SimonRichardson SimonRichardson commented Jul 15, 2021

The following ensures that we can deploy v1 charms that resolve with
focal API resolution. This broke when cleaning up how we handle series
(for good), but we accidentally broke v1 charms for kubernetes.

The solution is check for kubernetes charms and v1 format, force the
charm series to kuberenetes.

QA steps

$ cat <<EOF >bundle.yaml
bundle: kubernetes
applications:
  prometheus:
    charm: prometheus-k8s
    scale: 2
  grafana:
    charm: grafana-k8s
    scale: 1
relations:
    - - prometheus
      - grafana
EOF

$ juju bootstrap microk8s
$ juju deploy ./bundle.yaml

The following ensures that we can deploy v1 charms that resolve with
focal API resolution. This broke when cleaning up how we handle series
(for good), but we accidentally broke v1 charms for kubernetes.

The solution is check for kubernetes charms and v1 format, force the
charm series to kuberenetes.

Replication is easy:

    cat <<EOF >bundle.yaml
    bundle: kubernetes
    applications:
      prometheus:
        charm: prometheus-k8s
        scale: 2
      grafana:
        charm: grafana-k8s
        scale: 1
    relations:
      - - prometheus
        - grafana
    EOF

    juju bootstrap microk8s
    juju deploy bundle.yaml

Signed-off-by: Simon Richardson <simon.richardson@canonical.com>
Copy link
Member

@manadart manadart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@SimonRichardson
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit 7c97141 into juju:2.9 Jul 16, 2021
@SimonRichardson SimonRichardson deleted the deploy-v1-kubernetes branch July 16, 2021 09:01
jujubot added a commit that referenced this pull request Jul 22, 2021
#13187

Merge from 2.9 to bring forward:
- #13184 from manadart/2.9-net-info-iaas-addr-results
- #13176 from SimonRichardson/juju-inspect
- #13185 from SimonRichardson/logging-unmarshalling-fix
- #13181 from SimonRichardson/debug-log-space-labels
- #13182 from achilleasa/2.9-fix-error-in-equinix-credential-detection
- #13179 from SimonRichardson/update-charm-error-messages
- #13178 from manadart/2.9-k9s-no-bootstrap-series
- #13175 from manadart/2.9-net-info-ingress-sort
- #13174 from SimonRichardson/export-bundle-local-charms
- #13170 from manadart/2.9-address-sorting
- #13171 from SimonRichardson/deploy-v1-kubernetes
- #13172 from wallyworld/azure-instance-lookup
- #13167 from jujubot/increment-to-2.9.10
- #13169 from manadart/2.9-space-address-conversion
- #13162 from hmlanigan/fix-test-network
- #13166 from wallyworld/azure-bespoke-serviceprincipal
- #13168 from ycliuhw/fix/lp-1936253
- #13164 from tlm/lp1933548-unit-logging
- #13163 from SimonRichardson/deploy-panic-fix
- #13160 from SimonRichardson/index-label-logs

Conflicts resolved in:
- apiserver/facades/agent/uniter/networkinfoiaas.go
- core/charm/format.go
- core/charm/format_test.go
- go.mod
- go.sum
- provider/azure/config_test.go
- provider/azure/environ.go
- provider/azure/environ_test.go
- provider/azure/environprovider.go
- scripts/win-installer/setup.iss
- snap/snapcraft.yaml
- tests/suites/network/network_health.sh
- version/version.go
- worker/uniter/runner/jujuc/mocks/context_mock.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants